Skip to content

Commit 7a06ec3

Browse files
committed
fixup: stop before sending timestamps
1 parent 39e7a35 commit 7a06ec3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/tinybench-plugin/src/shared.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ export abstract class BaseBenchRunner {
5252
return fn();
5353
} finally {
5454
const runEnd = InstrumentHooks.currentTimestamp();
55-
this.sendBenchmarkMarkers(runStart, runEnd);
5655
InstrumentHooks.stopBenchmark();
5756
InstrumentHooks.setExecutedBenchmark(process.pid, uri);
57+
this.sendBenchmarkMarkers(runStart, runEnd);
5858
}
5959
}
6060

@@ -68,9 +68,9 @@ export abstract class BaseBenchRunner {
6868
return await fn();
6969
} finally {
7070
const runEnd = InstrumentHooks.currentTimestamp();
71-
this.sendBenchmarkMarkers(runStart, runEnd);
7271
InstrumentHooks.stopBenchmark();
7372
InstrumentHooks.setExecutedBenchmark(process.pid, uri);
73+
this.sendBenchmarkMarkers(runStart, runEnd);
7474
}
7575
}
7676

0 commit comments

Comments
 (0)