-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
87 lines (69 loc) · 2.22 KB
/
Copy pathjustfile
File metadata and controls
87 lines (69 loc) · 2.22 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
set dotenv-load := true
common_flags := "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G Ninja"
common_flags_debug := common_flags + " -DCMAKE_BUILD_TYPE=Debug"
common_flags_release := common_flags + " -DCMAKE_BUILD_TYPE=Release"
CMAKE := "cmake"
prepare:
#!/usr/bin/env bash
source env.sh
echo $PROJ
git fetch --all
git pull
git submodule update --init
config: prepare
#!/usr/bin/env bash
source env.sh
{{CMAKE}} -B build -S . {{common_flags_release}} -DENABLE_LSMTREE=ON
config-debug: prepare
#!/usr/bin/env bash
source env.sh
{{CMAKE}} -B build -S . {{common_flags_debug}} -DENABLE_LSMTREE=ON
build:
#!/usr/bin/env bash
source env.sh
{{CMAKE}} --build build -j
import "scripts/memcached/memcached.just"
import "scripts/phoenix/phoenix.just"
import "scripts/masstree/masstree.just"
import "scripts/lsmtree/lsmtree.just"
test-all: config build
#!/usr/bin/env bash
source env.sh
set -e
echo -e "======== Warning: Run All Tests ========"
read -p "Press enter to clear previous test results (if exists)"
rm temp results -rf
mkdir -p temp results
echo -e "\n\033[31m* Please ensure you have >= 48 cores *\033[0m\n"
read -p "Press enter to continue"
# Disable all warnings
touch temp/.unattended
touch temp/.lsmtree-warning
touch temp/.masstree-warning
touch temp/.phoenix-warning
touch temp/.memcached-warning
just test-masstree
just test-memcached
just test-lsmtree
just test-phoenix
just generate_all_results
generate_all_results:
#!/usr/bin/env bash
source env.sh
mkdir -p results/img
if [[ ! -f datasets/fault_injection.tar.gz ]]; then
echo -e "\n\033[31m* Please ensure fault_injection.tar.gz placed in 'datasets' folder *\033[0m\n"
read -p "Press enter to continue"
fi
cd results && tar -xzvf ../datasets/fault_injection.tar.gz && cd ..
python3 scripts/tail-latency.py
python3 scripts/validation-latency.py
python3 scripts/throughput.py
python3 scripts/detection-rate.py
mv *.pdf *.png results/img/
echo "All test results generated."
echo "You can find test outputs in 'results/img' folder:"
echo "Fig.6: throughput.{pdf|png}"
echo "Fig.7: tail-latency.{pdf|png}"
echo "Fig.8: validation-cdf.{pdf|png}"
echo "Fig.9: detection-rate.{pdf|png}"