README.md
This file
Path
benchmarks/fetch/README.md
19 lines · 527 bytes · Markdown
Last changed by
chore(benchmark): add app.fetch() overhead benchmark (#5117)Yusuke Wadabefore adoptionc285f9a
History of this fileTake it
chore(benchmark): add app.fetch() overhead benchmark (#5117)Yusuke Wadabefore adoptionc285f9a
lines 1–19why, one step back1# fetch benchmark23Measure `app.fetch()` overhead in-process.45```sh6bun bench.mts7node bench.mts8```910Compare working tree vs a git ref (default: `main`):1112```sh13./compare.sh14./compare.sh v4.12.015RUNTIME=node ./compare.sh16ROUNDS=5 ./compare.sh17```1819`compare.sh` runs each variant in a fresh process and reverses the variant order on every round, so that same-process JIT/GC warm-up and execution order do not bias the results. The summary reports the median of the per-round averages along with the raw values of every round.