1brc/zig/get_perf.sh

16 lines
250 B
Bash
Raw Permalink Normal View History

2024-06-28 09:13:36 +01:00
#!/bin/bash
rm all.svg perf.data out.perf out.folded
zig build -Doptimize=ReleaseSafe
perf record -a -g -- ./zig-out/bin/zig
perf script > out.perf
stackcollapse-perf.pl out.perf > out.folded
flamegraph.pl out.folded > all.svg
firefox all.svg