-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbenchmark.sh
More file actions
executable file
·27 lines (23 loc) · 858 Bytes
/
Copy pathbenchmark.sh
File metadata and controls
executable file
·27 lines (23 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# This is for bigdecimal crate
# See: https://github.com/akubera/bigdecimal-rs?tab=readme-ov-file#compile-time-configuration
export RUST_BIGDECIMAL_DEFAULT_PRECISION=1000
cargo build -r
BIN_PATH=./target/release/pi_series
RUNS=1000
hyperfine --export-markdown result.md --export-json results.json --shell=none \
"$BIN_PATH $RUNS raw-bbp" \
"$BIN_PATH $RUNS rs-decimal-bbp" \
"$BIN_PATH $RUNS big-decimal-bbp" \
"$BIN_PATH $RUNS rug-bbp" \
"$BIN_PATH $RUNS dashu-bbp" \
"$BIN_PATH $RUNS big-float-bbp" \
"$BIN_PATH $RUNS astro-float-bbp" \
"$BIN_PATH $RUNS fastnum-bbp" \
"$BIN_PATH $RUNS decimal-rs-bbp" \
"$BIN_PATH $RUNS prim-fpdec-bbp" \
"$BIN_PATH $RUNS malachite-bbp" \
"$BIN_PATH $RUNS fixed-num-bbp" \
"python main.py C $RUNS" \
"python main.py PY $RUNS"
python plot_results.py