-
Notifications
You must be signed in to change notification settings - Fork 0
/
do_sup_experiments.sh
51 lines (41 loc) · 1.31 KB
/
do_sup_experiments.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
#!/bin/bash -e
run_n_times(){
number=$1
shift
for n in $(seq $number); do
$@
sleep 2
done
}
export GMPT_TRIESIZE=320000
export GMPT_KEYTYPE_LEN=40 # hex len = $ * 2 + 1
export GMPT_KEYTYPE_NUM=320000
n1=$GMPT_TRIESIZE
n2=$GMPT_KEYTYPE_LEN
BUILD_PATH=./build
GO_ETH_PATH=./go-ethereum/trie
REPEAT=10
rm test_sup_experiments.log
rm test_dense.log
rm test_sparse.log
for n in $(seq 5); do
echo test_key_type...
run_n_times $REPEAT $BUILD_PATH/experiments "--gtest_filter=EXPERIMENTS.KeyTypeSparse" >> test_sparse.log
run_n_times $REPEAT $BUILD_PATH/experiments "--gtest_filter=EXPERIMENTS.KeyTypeDense" >> test_dense.log
n2=`expr $n2 / 2`
echo $n2
export GMPT_KEYTYPE_LEN=$n2
done
# for n in $(seq 7); do
# # $BUILD_PATH/utils "--gtest_filter=Util.args" "--gtest_also_run_disabled_tests"
# echo test_trie_size...
# run_n_times $REPEAT $BUILD_PATH/experiments "--gtest_filter=EXPERIMENTS.TrieSizeEthtxn" >> test_sup_experiments.log
# pushd $GO_ETH_PATH
# go test -run ^TestEthTrieSize$ -count=$REPEAT >> ../../test_sup_experiments.log
# popd
# n1=`expr $n1 + 40000 `
# echo $n1
# export GMPT_TRIESIZE=$n1
# done
# echo test_async...
# run_n_times $REPEAT $BUILD_PATH/experiments "--gtest_filter=EXPERIMENTS.AsyncMemcpyEthtxn" >> test_sup_experiments.log