Skip to content

Commit

Permalink
Added a little comment explaining moe
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed Aug 14, 2021
1 parent 870246b commit 9db6918
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions benchmark/benchmark.js
Expand Up @@ -339,6 +339,7 @@ function getWorst(results) {
const secondWorst = sorted[1].stats;

// basically, it's only the best if the two means plus their moe are disjoint
// (moe = margin of error; https://benchmarkjs.com/docs#stats_moe)
if (worst.mean - worst.moe - secondWorst.moe > secondWorst.mean) {
return sorted[0];
}
Expand Down

0 comments on commit 9db6918

Please sign in to comment.