aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-09 11:13:07 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-09 14:58:57 -0500
commit3edb8bd910dc8cfda7cbd372651dfe2a4d4967cb (patch)
tree643472db86d88f06803f3261693f0c15a76f5505 /bin
parent596730bf19f04a97ef835b27466998b50f26e230 (diff)
downloadvt100-rust-3edb8bd910dc8cfda7cbd372651dfe2a4d4967cb.tar.gz
vt100-rust-3edb8bd910dc8cfda7cbd372651dfe2a4d4967cb.zip
add more benchmarks
Diffstat (limited to 'bin')
-rwxr-xr-xbin/perf4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/perf b/bin/perf
index 6accd27..76bc563 100755
--- a/bin/perf
+++ b/bin/perf
@@ -9,8 +9,8 @@ if ! grep -q debug Cargo.toml; then
debug = true
EOF
fi
-cargo build --release --example perf
-perf record -F99 --call-graph dwarf,16384 target/release/examples/perf --ignored > /dev/null
+cargo build --release --example "$1"
+perf record -F99 --call-graph dwarf,16384 target/release/examples/"$1" --ignored > /dev/null
perf script > perf.script
perl ~/coding/src/FlameGraph/stackcollapse-perf.pl perf.script > perf.collapsed
perl ~/coding/src/FlameGraph/flamegraph.pl perf.collapsed > perf.svg