Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
benchmark: Tweak getRes() calculations. [jddalton]
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Jan 18, 2011
1 parent b71e52e commit f5c6398
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions benchmark.js
Expand Up @@ -268,7 +268,7 @@
function getRes(unit) {
var measured,
start,
count = 40,
count = 80,
divisor = 1e3,
sample = [];

Expand Down Expand Up @@ -297,10 +297,10 @@
break;
}
}
// trim mean by 10%
// trim mean by 20%
if ((getMean(sample) / divisor) <= resLimit) {
sample.sort();
sample = sample.slice(4, -4);
sample = sample.slice(16, -16);
}
// convert to seconds
return getMean(sample) / divisor;
Expand Down

0 comments on commit f5c6398

Please sign in to comment.