22 lines
513 B
Bash
Executable File
22 lines
513 B
Bash
Executable File
#!/usr/bin/env sh
|
|
set -eu
|
|
|
|
repo_root="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
|
|
cd "$repo_root"
|
|
|
|
out="${DOSH_BENCH_REPORT:-target/dosh-bench/report.md}"
|
|
iters="${DOSH_BENCH_ITERS:-10}"
|
|
server="${DOSH_BENCH_SERVER:-${1:-local}}"
|
|
label="${DOSH_BENCH_LABEL:-$(uname -s) $(uname -m)}"
|
|
|
|
cargo build --release >/dev/null
|
|
mkdir -p "$(dirname "$out")"
|
|
|
|
exec target/release/dosh-bench \
|
|
--server "$server" \
|
|
--iterations "$iters" \
|
|
--label "$label" \
|
|
--markdown \
|
|
--output "$out" \
|
|
${DOSH_BENCH_ARGS:-}
|