-
Notifications
You must be signed in to change notification settings - Fork 0
/
do_bulk.sh
38 lines (32 loc) · 928 Bytes
/
do_bulk.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
#!/bin/bash -e
run_n_times(){
number=$1
shift
for n in $(seq $number); do
$@
sleep 2
done
}
OUTPUT_FILE=bulk.log
BUILD_PATH=./build
GO_ETH_PATH=./go-ethereum/trie
REPEAT=5
GO_REPEAT=5
export GMPT_YCSB_DATA_VOLUME=1280000
rm $OUTPUT_FILE
rm ./data/bulk.csv
# TODO: geth's code can only modified
l="1280000 640000 320000 80000 10000"
for n in $l; do
echo test...$n...
export GMPT_YCSB_DATA_VOLUME=$n
$BUILD_PATH/utils "--gtest_filter=Util.args" "--gtest_also_run_disabled_tests"
run_n_times $REPEAT $BUILD_PATH/experiments "--gtest_filter=EXPERIMENTS.InsertBulk" >> $OUTPUT_FILE
pushd $GO_ETH_PATH
go test -run ^TestInsertYCSB$ -count=$GO_REPEAT -timeout 0 >> ../../$OUTPUT_FILE
# for i in $(seq 10); do
# CASE_ETHT_DATA_VOLUME=$n go test -run ^TestGMPTTransactionProcessing$ -count=1 -timeout 0 >> ../../$OUTPUT_FILE
# sleep 2
# done
popd
done