diff --git a/benchmark/index.js b/benchmark/index.js
index f13aa41..aded7a9 100644
--- a/benchmark/index.js
+++ b/benchmark/index.js
@@ -11,8 +11,8 @@ $("#run").click(function() {
}
function appendResult(klass, title, url, inputSize, parseTime) {
- var KB = 1024;
- var MS_IN_S = 1000;
+ var KB = 1024,
+ MS_IN_S = 1000;
resultsTable.append(
"
"
@@ -56,17 +56,17 @@ $("#run").click(function() {
* 2. To minimize random errors.
*/
- var runCount = parseInt($("#run-count").val(), 10);
+ var runCount = parseInt($("#run-count").val(), 10),
+ options = {
+ cache: $("#cache").is(":checked"),
+ optimize: $("#optimize").val()
+ };
+
if (isNaN(runCount) || runCount <= 0) {
alert("Number of runs must be a positive integer.");
return;
}
- var options = {
- cache: $("#cache").is(":checked"),
- optimize: $("#optimize").val()
- };
-
Runner.run(benchmarks, runCount, options, {
readFile: function(file) {
return $.ajax({