Skip to content

Commit 654fc93

Browse files
committed
use warmupIterations intead of fetching manually
1 parent 398bbb2 commit 654fc93

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

benchmarks/preview-server/src/local-vs-2.1.7-canary.2.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const pathToLocalCliScript = path.resolve(
1717

1818
const bench = new Bench({
1919
iterations: 30,
20+
warmupIterations: 5,
2021
});
2122

2223
const localServer = await runServer(pathToLocalCliScript);
@@ -29,9 +30,6 @@ bench
2930
await fetch(`${canaryServer.url}/preview/magic-links/notion-magic-link`);
3031
});
3132

32-
await fetch(`${localServer.url}/preview/magic-links/notion-magic-link`);
33-
await fetch(`${canaryServer.url}/preview/magic-links/notion-magic-link`);
34-
3533
await bench.run();
3634

3735
localServer.subprocess.kill();

0 commit comments

Comments
 (0)