diff --git a/src/task.ts b/src/task.ts index 378567b..b08d7b9 100644 --- a/src/task.ts +++ b/src/task.ts @@ -73,7 +73,7 @@ export default class Task extends EventTarget { } await this.bench.teardown(this, 'run'); - samples.sort(); + samples.sort((a,b)=> a - b); { const min = samples[0]!;