Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions bench/pm-bench-phases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,17 @@ run_phase() {

echo -e " ${CYAN}$pm${NC} · $phase"
export PROJECT_DIR UTOO_CACHE BUN_CACHE
# `--warmup 1`: untimed iteration before the timed runs so each PM enters
# its measurement window with DNS resolver cached, TLS session ticket
# primed, and the CDN edge POP populated. Without this, the first PM in
# the per-phase loop pays the cold-network tax (~+1s on p0) which the
# 3-run `--runs` mean cannot fully amortize, biasing the first PM
# systematically slow vs PMs that follow it. `--prepare` resets the
# filesystem state (lockfile / cache / node_modules) on every iteration
# — warmup included — so warmup leaves no on-disk artifact behind.
Comment thread
elrrrrrrr marked this conversation as resolved.
Resolved
if ! hyperfine \
--runs "$RUNS" \
--warmup 1 \
--prepare "bash $prep_script" \
--export-json "$json" \
--show-output \
Expand Down
Loading