-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.benchmarks.sh
executable file
·80 lines (53 loc) · 2.47 KB
/
run.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
69
70
71
72
73
74
75
76
77
78
79
80
#!/bin/bash
##!/usr/bin/env bash
shopt -s extglob
shopt -s extquote
# shopt -s xpg_echo
set -f
echo -e "\n"
# AES-128-CBC with AES-NI disabled
OPENSSL_ia32cap="~0x200000200000000" openssl speed -elapsed -evp aes-128-cbc
echo -e "\n"
# AES-128-CBC with AES-NI enabled
openssl speed -elapsed -evp aes-128-cbc
echo -e "\n"
# AES-256-CBC with AES-NI disabled
OPENSSL_ia32cap="~0x200000200000000" openssl speed -elapsed -evp aes-256-cbc
echo -e "\n"
# AES-256-CBC with AES-NI enabled
openssl speed -elapsed -evp aes-256-cbc
echo -e "\n"
cd /cipher-benchmarks/darkproto-proposal/aes-primitives/
echo -e "$(pwd)\n"
cargo +nightly bench -v --no-fail-fast --workspace --benches --all-features --frozen --locked --offline -Z unstable-options --keep-going
echo -e "\n"
cd /cipher-benchmarks/darkproto-proposal/aes-benchmarks/
echo -e "$(pwd)\n"
cargo +nightly bench -v --no-fail-fast --workspace --benches --all-features --frozen --locked --offline -Z unstable-options --keep-going
echo -e "\n"
cd /cipher-benchmarks/darkproto-proposal/block-ciphers/
echo -e "$(pwd)\n"
cargo +nightly bench -v --no-fail-fast --workspace --benches --all-features --frozen --locked --offline -Z unstable-options --keep-going
echo -e "\n"
cd /cipher-benchmarks/darkproto-proposal/AEADs/
echo -e "$(pwd)\n"
cargo +nightly bench -v --no-fail-fast --workspace --benches --all-features --frozen --locked --offline -Z unstable-options --keep-going
echo -e "\n"
cd /cipher-benchmarks/darkproto-proposal/stream-ciphers/
echo -e "$(pwd)\n"
cargo +nightly bench -v --no-fail-fast --workspace --benches --all-features --frozen --locked --offline -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 bench -v --no-fail-fast --workspace --benches --all-features --frozen --locked --offline -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 bench -v --no-fail-fast --workspace --benches --all-features --frozen --locked --offline -Z unstable-options --keep-going
echo -e "\n"
cd /cipher-benchmarks/darkproto-proposal/threshold-crypto/
echo -e "$(pwd)\n"
cargo +nightly bench -v --no-fail-fast --workspace --benches --all-features --frozen --locked --offline -Z unstable-options --keep-going
echo -e "Successfully finished!!!\n"