forked from drandreaskrueger/chainhammer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·58 lines (50 loc) · 1.27 KB
/
run.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
52
53
54
55
56
57
echo
echo =============================
echo = chainhammer - example run =
echo =============================
echo
echo study this, to understand the moving parts of chainhammer
echo to run it yourself with variations of network and parameters
echo
echo start like this:
echo
echo " source env/bin/activate"
echo " unbuffer testrpc-py &> tests/logs/testrpc-py.log &"
echo " ./run.sh"
echo
echo
echo virtualenv
source env/bin/activate
echo
echo
echo start listener tps.py, log into file log/tps.py.log
# ./tps.py
# TODO how to kill this when the below finished plus 10 extra blocks?
echo
echo
echo smartContract deploy.py, log into file log/deploy.py.log
# it writes a file which triggers the wait loop in tps.py to end
# ./deploy.py
echo
echo
echo hammer transactions send.py, log into file log/send.py.log
# ./send.py threaded2 23
# TODO write blockFrom and blockTo into file, for diagrams
echo
echo
echo show the listener output on screen:
# tail -f log/tps.py.log
# TODO how to kill this and CONTINUE when the above finished?
#
echo
echo
echo read blocks from node1 into SQL db
# cd chainreader
# ./blocksDB_create.py temp.db
echo
echo
echo make time series diagrams from SQL db
# ./blocksDB_diagramming.py temp.db TEMP
# TODO pass in exact blocknumbers of experiment
echo
echo