Skip to content

Commit

Permalink
fix: fastest/slowest benchmark labels (fix vitest-dev#2006)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmccurdy committed Sep 8, 2022
1 parent 90ffa6d commit 6981c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/runtime/run.ts
Expand Up @@ -347,7 +347,7 @@ async function runBenchmarkSuit(suite: Suite) {
suite.result!.state = 'pass'

benchmarkInstance.tasks
.sort((a, b) => b.result!.mean - a.result!.mean)
.sort((a, b) => a.result!.mean - b.result!.mean)
.forEach((cycle, idx) => {
const benchmark = benchmarkMap[cycle.name || '']
benchmark.result!.state = 'pass'
Expand Down

0 comments on commit 6981c79

Please sign in to comment.