Skip to content

Commit

Permalink
Run a 1000 iterations for the load tests.
Browse files Browse the repository at this point in the history
Previously I had capped this to 10 to test the CI more easily.
  • Loading branch information
dsocolobsky committed Dec 6, 2024
1 parent 11c6696 commit 5f6d547
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions .github/scripts/flamegraph.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

iterations=10
iterations=1000
value=10000000
account=0x33c6b73432B3aeA0C1725E415CC40D04908B85fd
end_val=$((172 * $iterations * $value))
Expand All @@ -9,12 +9,9 @@ ethrex_l2 test load --path /home/runner/work/ethrex/ethrex/test_data/private_key

start_time=$(date +%s)
output=$(cast balance $account --rpc-url=http://localhost:1729 2>&1)
retries=0
while [[ $output -le $end_val && $retries -lt 30 ]]; do
while [[ $output -le $end_val ]]; do
sleep 5
output=$(cast balance $account --rpc-url=http://localhost:1729 2>&1)
echo "balance was $output still not reached value of $end_val (retry $retries/30)"
((retries++))
done
end_time=$(date +%s)
elapsed_time=$((end_time - start_time))
Expand Down
7 changes: 2 additions & 5 deletions .github/scripts/flamegraph_reth.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

iterations=10
iterations=1000
value=10000000
account=0x33c6b73432B3aeA0C1725E415CC40D04908B85fd
end_val=$((172 * $iterations * $value))
Expand All @@ -9,12 +9,9 @@ ethrex_l2 test load --path /home/runner/work/ethrex/ethrex/test_data/private_key

start_time=$(date +%s)
output=$(cast balance $account --rpc-url=http://localhost:1729 2>&1)
retries=0
while [[ $output -le $end_val && $retries -lt 30 ]]; do
while [[ $output -le $end_val ]]; do
sleep 5
output=$(cast balance $account --rpc-url=http://localhost:1729 2>&1)
echo "balance was $output still not reached value of $end_val (retry $retries/30)"
((retries++))
done
end_time=$(date +%s)
elapsed_time=$((end_time - start_time))
Expand Down

0 comments on commit 5f6d547

Please sign in to comment.