bench/page-init

This commit is contained in:
Mitchell Hashimoto
2024-02-22 19:51:38 -08:00
parent 424f121104
commit 7ad94caaeb
7 changed files with 95 additions and 5 deletions

14
src/bench/page-init.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
#
# This is a trivial helper script to help run the page init benchmark.
# You probably want to tweak this script depending on what you're
# trying to measure.
# Uncomment to test with an active terminal state.
# ARGS=" --terminal"
hyperfine \
--warmup 10 \
-n alloc \
"./zig-out/bin/bench-page-init --mode=alloc${ARGS} </tmp/ghostty_bench_data"