summaryrefslogtreecommitdiffstats
path: root/third_party/rust/wasmparser/compare-with-main.sh
blob: eed367bfab684a689a544abfcd007b04bbcceccd (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash
set -e

# switch to main branch and record its bench results
git checkout main && \
cargo bench --bench benchmark -- --noplot --save-baseline before

# record current bench results
git checkout - && \
cargo bench --bench benchmark -- --noplot --baseline before