Skip to content

Commit 22a10ed

Browse files
committed
Modify time that we bench for
1 parent c34c4bb commit 22a10ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bench/bench.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ function benchmark(name, setup, action) {
1010

1111
// Warm up the JIT.
1212
var start = Date.now();
13-
while ((Date.now() - start) < 10000 /* 10 seconds */) {
13+
while ((Date.now() - start) < 5000 /* 5 seconds */) {
1414
action();
1515
}
1616

1717
var stats = new Stats("ms");
1818

1919
console.profile(name);
2020
var start = Date.now();
21-
while ((Date.now() - start) < 20000 /* 20 seconds */) {
21+
while ((Date.now() - start) < 30000 /* 30 seconds */) {
2222
var thisIterationStart = window.performance.now();
2323
action();
2424
stats.take(window.performance.now() - thisIterationStart);

0 commit comments

Comments
 (0)