-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.benchmarks.sh
executable file
·68 lines (49 loc) · 2.71 KB
/
build.benchmarks.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
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
#!/bin/bash
##!/usr/bin/env bash
shopt -s extglob
shopt -s extquote
# shopt -s xpg_echo
set -f
echo -e "\n"
cd /cipher-benchmarks/darkproto-proposal/aes-primitives/
echo -e "$(pwd)\n"
cargo +nightly build -v --workspace --benches --all-features --release -Z unstable-options --keep-going
cargo +nightly bench -v --no-run --no-fail-fast --workspace --benches --all-features -Z unstable-options --keep-going
echo -e "\n"
cd /cipher-benchmarks/darkproto-proposal/aes-benchmarks/
echo -e "$(pwd)\n"
cargo +nightly build -v --workspace --benches --all-features --release -Z unstable-options --keep-going
cargo +nightly bench -v --no-run --no-fail-fast --workspace --benches --all-features -Z unstable-options --keep-going
echo -e "\n"
cd /cipher-benchmarks/darkproto-proposal/block-ciphers/
echo -e "$(pwd)\n"
cargo +nightly build -v --workspace --benches --all-features --release -Z unstable-options --keep-going
cargo +nightly bench -v --no-run --no-fail-fast --workspace --benches --all-features -Z unstable-options --keep-going
echo -e "\n"
cd /cipher-benchmarks/darkproto-proposal/AEADs/
echo -e "$(pwd)\n"
cargo +nightly build -v --workspace --benches --all-features --release -Z unstable-options --keep-going
cargo +nightly bench -v --no-run --no-fail-fast --workspace --benches --all-features -Z unstable-options --keep-going
echo -e "\n"
cd /cipher-benchmarks/darkproto-proposal/stream-ciphers/
echo -e "$(pwd)\n"
cargo +nightly build -v --workspace --benches --all-features --release -Z unstable-options --keep-going
cargo +nightly bench -v --no-run --no-fail-fast --workspace --benches --all-features -Z unstable-options --keep-going
echo -e "\n"
cd /cipher-benchmarks/darkproto-proposal/RSA/
echo -e "$(pwd)\n"
patch --verbose --backup ./benches/key.rs ../.patches/RSA.key.rs.patch
cargo +nightly build -v --workspace --benches --all-features --release -Z unstable-options --keep-going
cargo +nightly bench -v --no-run --no-fail-fast --workspace --benches --all-features -Z unstable-options --keep-going
echo -e "\n"
cd /cipher-benchmarks/darkproto-proposal/elliptic-curves/
echo -e "$(pwd)\n"
patch --verbose --backup ./p256/benches/field.rs ../.patches/EC.p256.field.rs.patch
cargo +nightly build -v --workspace --benches --all-features --release -Z unstable-options --keep-going
cargo +nightly bench -v --no-run --no-fail-fast --workspace --benches --all-features -Z unstable-options --keep-going
echo -e "\n"
cd /cipher-benchmarks/darkproto-proposal/threshold-crypto/
echo -e "$(pwd)\n"
cargo +nightly build -v --workspace --benches --all-features --release -Z unstable-options --keep-going
cargo +nightly bench -v --no-run --no-fail-fast --workspace --benches --all-features -Z unstable-options --keep-going
echo -e "Successfully finished!!!\n"