Skip to content

Commit 69d9418

Browse files
Revert "examples: switch one of the examples to runSync"
This reverts commit ccf5cf9.
1 parent aa43c5d commit 69d9418

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/with-typescript-esm/bench/tinybench/index.bench.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import { registerFoobarbazBenchmarks } from "./foobarbaz.bench";
55

66
export const bench = withCodSpeed(new Bench());
77

8-
(() => {
8+
(async () => {
99
registerFiboBenchmarks(bench);
1010
registerFoobarbazBenchmarks(bench);
1111

12-
bench.runSync();
12+
await bench.run();
1313
console.table(bench.table());
1414
})();

packages/tinybench-plugin/benches/sample.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ bench
3434
parsePr({ body: LONG_BODY, title: "test", number: 124 });
3535
});
3636

37-
(() => {
37+
(async () => {
3838
bench.runSync();
3939
console.table(bench.table());
4040

0 commit comments

Comments
 (0)