swc/crates/swc_ecma_codegen/scripts/bench.sh
2021-11-10 19:00:54 +09:00

9 lines
174 B
Bash

#!/usr/bin/env bash
set -eux
rm -rf ../../target/release/bench-*
cargo bench --no-run --bench with_parse
# TODO:
#sudo flamegraph -- "../../target/release/bench-* --bench"