forked from probe-lab/zikade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runner.sh
39 lines (37 loc) · 1.23 KB
/
runner.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
#!/usr/bin/env bash
mkdir -p cache/gopath/{bin,src}
echo '*' > cache/.gitignore
docker run --rm -ti \
-e HOME=/tmp \
-v "$(pwd)/cache/gopath:/go" \
-v "$(pwd):/code" \
-w "/code" \
--user "$(id -u):$(id -g)" \
golang \
#This will run our evaluation for peer routing
# It will produce the first column of figures in Fig 1
# Output will be written to the csv_results folder
go test \
-test.v \
-test.timeout 99999s \
-test.bench '^\QBenchmark_PIR_for_Routing_Table\E$' \
-test.run '^$' \
./pir/... && \
#This will run our evaluation for provider advertisements
# It will produce the second column of figures in Fig 1
# Output will be written to the csv_results folder
go test \
-test.v \
-test.timeout 99999s \
-test.bench '^\QBenchmark_PIR_for_Provider_Routing\E$' \
-test.run '^$' \
./pir/... && \
#This will evaluate the normalized RT and the original RT
# for difference in the number of hops (i.e. convergence),
# as decribed in S5.2 'Routing table with normalized buckets'
# Output will go to stdout
go test \
-test.v \
-test.timeout 99999s \
-test.run '^\QTestRoutingNormVsTrie\E$' \
./internal/coord/