Skip to content

Commit bf7fc8b

Browse files
chore: test by inverting hooks/frame to replicate main
1 parent b915b4f commit bf7fc8b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/tinybench-plugin/src/instrumented.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,14 @@ class InstrumentedBenchRunner extends BaseBenchRunner {
4848
await mongoMeasurement.start(uri);
4949

5050
global.gc?.();
51-
await this.wrapWithInstrumentHooksAsync(
52-
this.wrapFunctionWithFrame(fn, true),
53-
uri
51+
this.wrapFunctionWithFrame(
52+
() => this.wrapWithInstrumentHooksAsync(fn, uri),
53+
true
5454
);
55+
// await this.wrapWithInstrumentHooksAsync(
56+
// this.wrapFunctionWithFrame(fn, true),
57+
// uri
58+
// );
5559

5660
await mongoMeasurement.stop(uri);
5761
await fnOpts?.afterEach?.call(task, "run");

0 commit comments

Comments
 (0)