-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
105 lines (93 loc) · 2.77 KB
/
justfile
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
95
96
97
98
99
100
101
102
103
104
105
help:
just --list
check:
cargo clippy
cargo fmt --check --all
fmt:
cargo fmt --all
test:
just check
cargo test
maelstrom-echo:
cargo build --bin echo && \
maelstrom test -w echo \
--bin "$CARGO_TARGET_DIR/debug/echo" \
--node-count 1 \
--time-limit 10
maelstrom-unique-ids:
cargo build --bin unique-ids && \
maelstrom test -w unique-ids \
--bin "$CARGO_TARGET_DIR/debug/unique-ids" \
--time-limit 30 \
--rate 1000 \
--node-count 3 \
--availability total \
--nemesis partition
maelstrom-broadcast-a:
cargo build --bin broadcast && \
maelstrom test -w broadcast \
--bin "$CARGO_TARGET_DIR/debug/broadcast" \
--node-count 1 \
--time-limit 20 \
--rate 10
maelstrom-broadcast-b:
cargo build --bin broadcast && \
maelstrom test -w broadcast \
--bin "$CARGO_TARGET_DIR/debug/broadcast" \
--node-count 5 \
--time-limit 20 \
--rate 10
maelstrom-broadcast-c:
cargo build --bin broadcast && \
maelstrom test -w broadcast \
--bin "$CARGO_TARGET_DIR/debug/broadcast" \
--node-count 5 \
--time-limit 20 \
--rate 10 \
--nemesis partition
maelstrom-broadcast-d:
cargo build --bin broadcast && \
maelstrom test -w broadcast \
--bin "$CARGO_TARGET_DIR/debug/broadcast" \
--node-count 25 \
--time-limit 20 \
--rate 100 \
--latency 100 && \
echo -e "\nRelevant metrics:" && \
grep -A 5 -E "(:servers|:stable-latencies)" store/latest/jepsen.log \
| grep -A 5 -E "(:msgs-per-op|:stable-latencies)" && \
echo -e "\nObjectives:" && \
echo "- messages per operation < 30" && \
echo "- median latency < 400ms" && \
echo "- maximum latency < 600ms"
maelstrom-broadcast-e:
cargo build --bin broadcast && \
BROADCAST_DELAY_MS=1000 maelstrom test -w broadcast \
--bin "$CARGO_TARGET_DIR/debug/broadcast" \
--node-count 25 \
--time-limit 20 \
--rate 100 \
--latency 100 && \
echo -e "\nRelevant metrics:" && \
grep -A 5 -E "(:servers|:stable-latencies)" store/latest/jepsen.log \
| grep -A 5 -E "(:msgs-per-op|:stable-latencies)" && \
echo -e "\nObjectives:" && \
echo "- messages per operation < 20" && \
echo "- median latency < 1s" && \
echo "- maximum latency < 2s"
maelstrom-g-counter:
cargo build --bin g-counter && \
maelstrom test -w g-counter \
--bin "$CARGO_TARGET_DIR/debug/g-counter" \
--node-count 3 \
--rate 100 \
--time-limit 20 \
--nemesis partition
maelstrom-kafka-a:
cargo build --bin kafka && \
maelstrom test -w kafka \
--bin "$CARGO_TARGET_DIR/debug/kafka" \
--node-count 1 \
--concurrency 2n \
--time-limit 20 \
--rate 1000