Last active
December 22, 2021 01:24
-
-
Save softminus/4a83758ea50c8445fe7ed47ff48738ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "listunspent 200k-send" | |
./qa/zcash/performance-measurements.sh time listunspent 200k-send | sed 1d | jq '.[]|.runningtime' | tee listunspent_200k-send | |
echo -n "listunspent 200k-send average is " | |
awk '{sum+=sprintf("%f",$1)}END{printf "%.6f\n",sum/NR}' listunspent_200k-send | |
echo | |
echo "runninglistunspent 200k-recv" | |
./qa/zcash/performance-measurements.sh time listunspent 200k-recv | sed 1d | jq '.[]|.runningtime' | tee listunspent_200k-recv | |
echo -n "listunspent 200k-recv average is " | |
awk '{sum+=sprintf("%f",$1)}END{printf "%.6f\n",sum/NR}' listunspent_200k-recv | |
echo | |
echo "loadwallet 200k-send" | |
./qa/zcash/performance-measurements.sh time loadwallet 200k-send | sed 1d | jq '.[]|.runningtime' | tee loadwallet_200k-send | |
echo -n "loadwallet 200k-send average is " | |
awk '{sum+=sprintf("%f",$1)}END{printf "%.6f\n",sum/NR}' loadwallet_200k-send | |
echo | |
echo "loadwallet 200k-recv" | |
./qa/zcash/performance-measurements.sh time loadwallet 200k-recv | sed 1d | jq '.[]|.runningtime' | tee loadwallet_200k-recv | |
echo -n "loadwallet 200k-recv average is " | |
awk '{sum+=sprintf("%f",$1)}END{printf "%.6f\n",sum/NR}' loadwallet_200k-recv | |
echo | |
echo "connectblockslow" | |
./qa/zcash/performance-measurements.sh time connectblockslow | sed -n '2,$p' | jq '.[]|.runningtime' | tee connectblockslow | |
echo -n "connectblockslow average is " | |
awk '{sum+=sprintf("%f",$1)}END{printf "%.6f\n",sum/NR}' connectblockslow | |
echo | |
echo "verifyequihash" | |
./qa/zcash/performance-measurements.sh time verifyequihash | jq '.[]|.runningtime' | tee verifyequihash | |
echo -n "verifyequihash average is " | |
awk '{sum+=sprintf("%f",$1)}END{printf "%.6f\n",sum/NR}' verifyequihash | |
echo | |
echo "verifyjoinsplit" | |
./qa/zcash/performance-measurements.sh time verifyjoinsplit | jq '.[]|.runningtime' | tee verifyjoinsplit | |
echo -n "verifyjoinsplit average is " | |
awk '{sum+=sprintf("%f",$1)}END{printf "%.6f\n",sum/NR}' verifyjoinsplit | |
echo | |
echo "createjoinsplit" | |
./qa/zcash/performance-measurements.sh time createjoinsplit | jq '.[]|.runningtime' | tee createjoinsplit | |
echo -n "createjoinsplit average is " | |
awk '{sum+=sprintf("%f",$1)}END{printf "%.6f\n",sum/NR}' createjoinsplit | |
echo | |
echo "verifysaplingoutput" | |
./qa/zcash/performance-measurements.sh time verifysaplingoutput | jq '.[]|.runningtime' | tee verifysaplingoutput | |
echo -n "verifysaplingoutput average is " | |
awk '{sum+=sprintf("%f",$1)}END{printf "%.6f\n",sum/NR}' verifysaplingoutput | |
echo | |
echo "createsaplingoutput" | |
./qa/zcash/performance-measurements.sh time createsaplingoutput | jq '.[]|.runningtime' | tee createsaplingoutput | |
echo -n "createsaplingoutput average is " | |
awk '{sum+=sprintf("%f",$1)}END{printf "%.6f\n",sum/NR}' createsaplingoutput | |
echo | |
echo "verifysaplingspend" | |
./qa/zcash/performance-measurements.sh time verifysaplingspend | jq '.[]|.runningtime' | tee verifysaplingspend | |
echo -n "verifysaplingspend average is " | |
awk '{sum+=sprintf("%f",$1)}END{printf "%.6f\n",sum/NR}' verifysaplingspend | |
echo | |
echo "createsaplingspend" | |
./qa/zcash/performance-measurements.sh time createsaplingspend | jq '.[]|.runningtime' | tee createsaplingspend | |
echo -n "createsaplingspend average is " | |
awk '{sum+=sprintf("%f",$1)}END{printf "%.6f\n",sum/NR}' createsaplingspend | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment