From da2082a569efc9d15710593326c8a2ea90935231 Mon Sep 17 00:00:00 2001 From: Rafael Weinstein Date: Mon, 30 Dec 2013 13:07:43 -0800 Subject: [PATCH] Revert "run benchmarks longer" This reverts commit cb75c036e7fa3976eb9bff656b325e1ae3c4bb20. --- benchmark/benchmark.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/benchmark/benchmark.js b/benchmark/benchmark.js index 2da0fce..0789d8d 100644 --- a/benchmark/benchmark.js +++ b/benchmark/benchmark.js @@ -71,8 +71,8 @@ BenchmarkRunner.INIT = 0; BenchmarkRunner.ESTIMATE = 1; BenchmarkRunner.TESTING = 2; - BenchmarkRunner.maxTime = 1000; - BenchmarkRunner.maxRuns = 100; + BenchmarkRunner.maxTime = 400; + BenchmarkRunner.maxRuns = 50; var hasPerformance = typeof global.performance === 'object' && typeof global.performance.now === 'function' @@ -108,7 +108,7 @@ this.benchmark.setupVariant(this.variants[this.variant]); // Run the test once before timing. - this.runSeries(BenchmarkRunner.INIT, 3); + this.runSeries(BenchmarkRunner.INIT, 1); }, variantComplete: function(duration) { @@ -166,7 +166,7 @@ switch (this.state) { case BenchmarkRunner.INIT: // Run the test twice to estimate its time. - this.runSeries(BenchmarkRunner.ESTIMATE, 5); + this.runSeries(BenchmarkRunner.ESTIMATE, 2); break; case BenchmarkRunner.ESTIMATE: @@ -201,4 +201,4 @@ global.BenchmarkRunner = BenchmarkRunner; global.Benchmark = Benchmark; -})(this); +})(this); \ No newline at end of file