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