-
Notifications
You must be signed in to change notification settings - Fork 2
/
perf.sh
executable file
·21 lines (15 loc) · 1.78 KB
/
perf.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /usr/bin/env bash
exec > $1
exec 2>&1
set -o xtrace
PERF=$HOME/.cargo/target/release/perf
date; time cargo +nightly bench || exit $?
date; time cargo +nightly run --release --bin perf --features=perf -- --omap --loads 1000000 --gets 1000000 --dels 10000 --sets 100000 || exit $?
date; time cargo +nightly run --release --bin perf --features=perf -- --rc-omap --loads 1000000 --gets 1000000 --dels 10000 --sets 100000 || exit $?
date; time cargo +nightly run --release --bin perf --features=perf -- --arc-omap --loads 1000000 --gets 1000000 --dels 10000 --sets 100000 || exit $?
date; time cargo +nightly run --release --bin perf --features=perf -- --mdb-omap --loads 1000000 --gets 1000000 --dels 10000 --sets 100000 || exit $?
date; time cargo run --release --bin perf --features=perf -- --loads 1000000 --readers 2 --writers 1 --gets 10000 --dels 10000 --sets 10000 || exit $?
date; valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes cargo +nightly run --release --bin perf --features=perf -- --omap --loads 1000000 --readers 2 --writers 1 --gets 10000 --dels 10000 --sets 10000 || exit $?
date; valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes cargo +nightly run --release --bin perf --features=perf -- --rc-omap --loads 1000000 --readers 2 --writers 1 --gets 10000 --dels 10000 --sets 10000 || exit $?
date; valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes cargo +nightly run --release --bin perf --features=perf -- --arc-omap --loads 1000000 --readers 2 --writers 1 --gets 10000 --dels 10000 --sets 10000 || exit $?
date; valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes cargo +nightly run --release --bin perf --features=perf -- --mdb-omap --loads 1000000 --readers 4 --writers 4 --gets 10000 --dels 10000 --sets 10000 || exit $?