~asayers/livesort

ref: 5a56699c1c09d4b43aef428518c4086b06cee391 livesort/bench.sh -rwxr-xr-x 452 bytes
5a56699cAlex Sayers Include the installed version in the benchmark script 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
#!/bin/bash -eu
cargo b --release
export LC_ALL=C
FILE=Cargo.lock
livesort_installed="livesort -c <$FILE"
livesort_head="./target/release/livesort -c <$FILE"
sort="sort <$FILE | uniq -c"
cmp <(eval $livesort_head) <(eval $sort) && echo "sanity check (HEAD): ok" >&2
cmp <(eval $livesort_installed) <(eval $sort) && echo "sanity check (installed): ok" >&2
cbdr sample "sort:$sort" "livesort_installed:$livesort_installed" "livesort_HEAD:$livesort_head"