Skip to content

Commit bc232dd

Browse files
committed
feat: add warmup in the tinybench compat layer
1 parent 76fa68a commit bc232dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/tinybench/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export function withCodSpeed(bench: Bench): Bench {
1212
bench.run = async () => {
1313
for (const task of bench.tasks) {
1414
const uri = callingFile + "::" + task.name;
15+
await task.warmup();
1516
measurement.startInstrumentation();
1617
await task.fn();
1718
measurement.stopInstrumentation(uri);

0 commit comments

Comments
 (0)