File tree Expand file tree Collapse file tree 3 files changed +13
-29
lines changed Expand file tree Collapse file tree 3 files changed +13
-29
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ # This script sends 1000 transactions to a test account, per defined private key
4
+ # then polls the account balance until the expected balance has been reached
5
+ # and then kills the process. It also measures the elapsed time of the test and
6
+ # outputs it to Github Action's outputs.
7
+
3
8
iterations=1000
4
9
value=10000000
5
10
account=0x33c6b73432B3aeA0C1725E415CC40D04908B85fd
@@ -17,9 +22,9 @@ end_time=$(date +%s)
17
22
elapsed_time=$(( end_time - start_time))
18
23
minutes=$(( elapsed_time / 60 ))
19
24
seconds=$(( elapsed_time % 60 ))
20
- echo " Balance of $output reached in $minutes min $seconds s, killing process ethrex "
25
+ echo " Balance of $output reached in $minutes min $seconds s, killing process"
21
26
22
- sudo pkill ethrex && while pgrep -l " cargo-flamegraph" ; do echo " waiting for reth to exit... " ; sleep 1; done ;
27
+ sudo pkill " $PROGRAM " && while pgrep -l " cargo-flamegraph" ; do echo " waiting for $PROGRAM to exit... " ; sleep 1; done ;
23
28
24
29
# We need this for the following job, to add to the static page
25
30
echo " time=$minutes minutes $seconds seconds" >> " $GITHUB_OUTPUT "
Original file line number Diff line number Diff line change 20
20
flamegraph-ethrex :
21
21
name : Generate Flamegraph for Ethrex
22
22
runs-on : ubuntu-latest
23
+ env :
24
+ PROGRAM : ethrex
23
25
outputs :
24
26
time : ${{steps.generate-flamegraph-ethrex.outputs.time}}
25
27
steps :
65
67
echo "waiting to execute load test..."
66
68
sleep 30 &&
67
69
echo "executing load test..."
68
- bash .github/scripts/flamegraph .sh &&
70
+ bash /home/runner/work/ethrex/ethrex/ .github/scripts/flamegraph_watcher .sh &&
69
71
echo "Load test finished"
70
72
71
73
- name : Generate SVG
84
86
flamegraph-reth :
85
87
name : Generate Flamegraph for Reth
86
88
runs-on : ubuntu-latest
89
+ env :
90
+ PROGRAM : reth
87
91
outputs :
88
92
time : ${{steps.generate-flamegraph-reth.outputs.time}}
89
93
steps :
@@ -135,7 +139,7 @@ jobs:
135
139
--txpool.basefee-max-size 1000000000000 --txpool.queued-max-count 1000000000 &
136
140
echo "waiting to execute load test..."
137
141
sleep 180 &&
138
- bash /home/runner/work/ethrex/ethrex/.github/scripts/flamegraph_reth .sh &&
142
+ bash /home/runner/work/ethrex/ethrex/.github/scripts/flamegraph_watcher .sh &&
139
143
echo "Load test finished"
140
144
141
145
- name : Generate SVG
You can’t perform that action at this time.
0 commit comments