-
Notifications
You must be signed in to change notification settings - Fork 13
/
bench2.sh
24 lines (22 loc) · 954 Bytes
/
bench2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/bash
set -eo pipefail
test_data="$1"
cp "${test_data}" ./data.txt
crabz -f bgzf -l6 ./data.txt > ./data.txt.gz
hyperfine \
--warmup 2 \
--runs 3 \
--export-markdown decompression.md \
--parameter-list num_threads 0,4,8,16 \
'./target/release/crabz -d -p {num_threads} -f bgzf ./data.txt.gz > ./data.out.txt' \
'bgzip -d -c -@ {num_threads} ./data.txt.gz > ./data.out.txt'
hyperfine \
--warmup 2 \
--runs 3 \
--export-markdown compression.md \
--parameter-list num_threads 2,4,8,16,32 \
--parameter-list comp_level 2,6,9 \
'./target/release/crabz -p {num_threads} -P 0 -l {comp_level} -f bgzf ./data.txt > ./data.out.txt.gz' \
'bgzip -c -@ {num_threads} -l {comp_level} ./data.txt > ./data.out.txt.gz' \
'./target/release/crabz -p {num_threads} -P 0 -l {comp_level} -f gzip ./data.txt > ./data.out.txt.gz' \
'pigz -c -p {num_threads} -{comp_level} ./data.txt > ./data.out.txt.gz'