-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbench_rainhash_bs.sh
More file actions
executable file
·94 lines (88 loc) · 5.37 KB
/
bench_rainhash_bs.sh
File metadata and controls
executable file
·94 lines (88 loc) · 5.37 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
echo "Scheme - Sig1 (ms), Sig2 (ms), Sig3 (ms), Ver (ms), Comm (KB), BS (KB)" > bench_log.txt
echo "--------------------------------------------------------" >> bench_log.txt
git submodule update --init --recursive
cd vole
# Getting conservative bench
chmod +x clean.sh
./clean.sh
chmod +x build_consv_bs_keccak.sh
./build_consv_bs_keccak.sh >> ../bench_log_misc.txt 2>&1
cd ..
cd vole-keccak-then-mayo-sys
cargo clean
cd ..
cd blind-signatures-conservative
cargo clean
# cargo test test_and_bench_sign_loop_conservative_128sv1 --no-run >> ../bench_log_misc.txt 2>&1
# RUST_MIN_STACK=9999999999 cargo test test_and_bench_sign_loop_conservative_128sv1 -- --nocapture | sed -n '/MAYO/p' >> ../bench_log.txt
# RUST_MIN_STACK=9999999999 cargo test test_and_bench_sign_loop_conservative_128fv1 -- --nocapture | sed -n '/MAYO/p' >> ../bench_log.txt
# echo "--------------------------------------------------------" >> ../bench_log.txt
# RUST_MIN_STACK=9999999999 cargo test test_and_bench_sign_loop_conservative_192sv1 -- --nocapture | sed -n '/MAYO/p' >> ../bench_log.txt
# RUST_MIN_STACK=9999999999 cargo test test_and_bench_sign_loop_conservative_192fv1 -- --nocapture | sed -n '/MAYO/p' >> ../bench_log.txt
# echo "--------------------------------------------------------" >> ../bench_log.txt
# RUST_MIN_STACK=9999999999 cargo test test_and_bench_sign_loop_conservative_256sv1 -- --nocapture | sed -n '/MAYO/p' >> ../bench_log.txt
# RUST_MIN_STACK=9999999999 cargo test test_and_bench_sign_loop_conservative_256fv1 -- --nocapture | sed -n '/MAYO/p' >> ../bench_log.txt
# cd ..
# echo "--------------------------------------------------------" >> bench_log.txt
# echo "--------------------------------------------------------" >> bench_log.txt
# cd vole
# # Getting conservative deg-16 bench
# ./clean.sh
# chmod +x build_consv_bs_keccak_deg16.sh
# ./build_consv_bs_keccak_deg16.sh >> ../bench_log_misc.txt 2>&1
# cd ..
# cd vole-keccak-deg16-then-mayo-sys
# cargo clean
# cd ..
# cd blind-signatures-conservative-deg16
# cargo clean
# cargo test test_and_bench_sign_loop_conservative_128sv1 --no-run >> ../bench_log_misc.txt 2>&1
# RUST_MIN_STACK=9999999999 cargo test test_and_bench_sign_loop_conservative_128sv1 -- --nocapture | sed -n '/MAYO/p' >> ../bench_log.txt
# RUST_MIN_STACK=9999999999 cargo test test_and_bench_sign_loop_conservative_128fv1 -- --nocapture | sed -n '/MAYO/p' >> ../bench_log.txt
# echo "--------------------------------------------------------" >> ../bench_log.txt
# RUST_MIN_STACK=9999999999 cargo test test_and_bench_sign_loop_conservative_192sv1 -- --nocapture | sed -n '/MAYO/p' >> ../bench_log.txt
# RUST_MIN_STACK=9999999999 cargo test test_and_bench_sign_loop_conservative_192fv1 -- --nocapture | sed -n '/MAYO/p' >> ../bench_log.txt
# echo "--------------------------------------------------------" >> ../bench_log.txt
# RUST_MIN_STACK=9999999999 cargo test test_and_bench_sign_loop_conservative_256sv1 -- --nocapture | sed -n '/MAYO/p' >> ../bench_log.txt
# RUST_MIN_STACK=9999999999 cargo test test_and_bench_sign_loop_conservative_256fv1 -- --nocapture | sed -n '/MAYO/p' >> ../bench_log.txt
cd ..
# echo "--------------------------------------------------------" >> bench_log.txt
# echo "--------------------------------------------------------" >> bench_log.txt
cd vole
# Getting conservative rainhash bench
./clean.sh
chmod +x build_consv_bs_rainhash.sh
./build_consv_bs_rainhash.sh >> ../bench_log_misc.txt 2>&1
cd ..
cd vole-rainhash-then-mayo-sys
cargo clean
cd ..
cd blind-signatures-conservative-rain
cargo clean
cargo test test_and_bench_sign_loop_conservative_rain_128sv1 --no-run >> ../bench_log_misc.txt 2>&1
RUST_MIN_STACK=9999999999 cargo test test_and_bench_sign_loop_conservative_rain_128sv1 -- --nocapture | sed -n '/MAYO/p' >> ../bench_log.txt
RUST_MIN_STACK=9999999999 cargo test test_and_bench_sign_loop_conservative_rain_128fv1 -- --nocapture | sed -n '/MAYO/p' >> ../bench_log.txt
# cd ..
# echo "--------------------------------------------------------" >> bench_log.txt
# echo "--------------------------------------------------------" >> bench_log.txt
# cd vole
# # Getting optimized bench
# ./clean.sh
# chmod +x build_opti_bs.sh
# ./build_opti_bs.sh >> ../bench_log_misc.txt 2>&1
# cd ..
# cd vole-mayo-sys
# cargo clean
# cd ..
# cd blind-signatures
# cargo clean
# cargo test test_and_bench_sign_loop_optimized_128sv1 --no-run >> ../bench_log_misc.txt 2>&1
# RUST_MIN_STACK=9999999999 cargo test test_and_bench_sign_loop_optimized_128sv1 -- --nocapture | sed -n '/MAYO/p' >> ../bench_log.txt
# RUST_MIN_STACK=9999999999 cargo test test_and_bench_sign_loop_optimized_128fv1 -- --nocapture | sed -n '/MAYO/p' >> ../bench_log.txt
# echo "--------------------------------------------------------" >> ../bench_log.txt
# RUST_MIN_STACK=9999999999 cargo test test_and_bench_sign_loop_optimized_192sv1 -- --nocapture | sed -n '/MAYO/p' >> ../bench_log.txt
# RUST_MIN_STACK=9999999999 cargo test test_and_bench_sign_loop_optimized_192fv1 -- --nocapture | sed -n '/MAYO/p' >> ../bench_log.txt
# echo "--------------------------------------------------------" >> ../bench_log.txt
# RUST_MIN_STACK=9999999999 cargo test test_and_bench_sign_loop_optimized_256sv1 -- --nocapture | sed -n '/MAYO/p' >> ../bench_log.txt
# RUST_MIN_STACK=9999999999 cargo test test_and_bench_sign_loop_optimized_256fv1 -- --nocapture | sed -n '/MAYO/p' >> ../bench_log.txt
# echo "--------------------------------------------------------" >> ../bench_log.txt