forked from xxsqwe/notry
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·51 lines (36 loc) · 1.18 KB
/
Copy pathrun.sh
File metadata and controls
executable file
·51 lines (36 loc) · 1.18 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
#!/bin/bash
rm performance
rustup install nightly-2022-06-22
rustup default nightly-2022-06-22
echo "Library Test"
cargo test --release
echo "compiling executables"
cargo build --release --examples
echo "Test DAKEA key exchange"
./target/release/examples/coord localhost&
./target/release/examples/rachet localhost bob alice&
sleep 0.75
./target/release/examples/rachet localhost alice bob init >> performance
echo "Test the Signal key exchange"
cd libsignal/rust/protocol/
cargo build --release --examples
../../target/release/examples/ratchet >> ../../../performance
cd ../../../
echo "avow 1 transcript"
echo "Generating keys(via key exchange)"
./target/release/examples/avow 1 >> performance
echo "1 script avowed"
echo "avow 10 transcript"
echo "Generating keys(via key exchange)"
./target/release/examples/avow 10 >> performance
echo "10 scripts avowed"
echo "avow 100 transcript"
echo "Generating keys(via key exchange)"
./target/release/examples/avow 100 >> performance
echo "100 scripts avowed"
echo "avow 1000 transcript"
echo "Generating keys(via key exchange)"
./target/release/examples/avow 1000 >> performance
echo "1000 scripts avowed"
echo "plotting results"
python3 plot.py