Skip to content

Commit e4a4ec8

Browse files
committed
perf: run CPU profile on constant count so that time numbers can be compared between runs
1 parent c0a99ee commit e4a4ec8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/benchmarks/src/tree/tree_benchmark.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,9 @@ export function main() {
139139
return function(_) {
140140
window.console.profile(name);
141141
var duration = 0;
142+
var downCount = 200;
142143
var count = 0;
143-
while(duration < 5000) {
144+
while(downCount--) {
144145
var start = window.performance.now();
145146
create(_);
146147
duration += window.performance.now() - start;

0 commit comments

Comments
 (0)