Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Revert "run benchmarks longer"
Browse files Browse the repository at this point in the history
This reverts commit cb75c03.
  • Loading branch information
rafaelw committed Dec 30, 2013
1 parent cb75c03 commit da2082a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -201,4 +201,4 @@
global.BenchmarkRunner = BenchmarkRunner;
global.Benchmark = Benchmark;

})(this);
})(this);

0 comments on commit da2082a

Please sign in to comment.