Add benchmark for attempting decryption of notes

This commit is contained in:
Jack Grigg
2016-11-17 19:09:45 +13:00
parent bd87e8c2d3
commit 0fbab55b1b
4 changed files with 35 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ function zcashd_valgrind_stop {
case "$1" in
*)
case "$2" in
verifyjoinsplit)
verifyjoinsplit|trydecryptnotes)
zcashd_start
RAWJOINSPLIT=$(zcash_rpc zcsamplejoinsplit)
zcashd_stop
@@ -88,6 +88,9 @@ case "$1" in
validatelargetx)
zcash_rpc zcbenchmark validatelargetx 5
;;
trydecryptnotes)
zcash_rpc zcbenchmark trydecryptnotes 1000 "\"$RAWJOINSPLIT\""
;;
*)
zcashd_stop
echo "Bad arguments."
@@ -116,6 +119,9 @@ case "$1" in
verifyequihash)
zcash_rpc zcbenchmark verifyequihash 1
;;
trydecryptnotes)
zcash_rpc zcbenchmark trydecryptnotes 1 "\"$RAWJOINSPLIT\""
;;
*)
zcashd_massif_stop
echo "Bad arguments."
@@ -145,6 +151,9 @@ case "$1" in
verifyequihash)
zcash_rpc zcbenchmark verifyequihash 1
;;
trydecryptnotes)
zcash_rpc zcbenchmark trydecryptnotes 1 "\"$RAWJOINSPLIT\""
;;
*)
zcashd_valgrind_stop
echo "Bad arguments."