Introduce zcsamplejoinsplit for creating a raw joinsplit description, and use it to construct the joinsplit for the performance tests that verify joinsplits.

This commit is contained in:
Sean Bowe
2016-07-19 15:49:11 -06:00
parent d20d866d89
commit 1737627c4e
4 changed files with 49 additions and 18 deletions

View File

@@ -52,6 +52,17 @@ function zcashd_valgrind_stop {
cat valgrind.out
}
# Precomputation
case "$1" in
*)
case "$2" in
verifyjoinsplit)
zcashd_start
RAWJOINSPLIT=$(zcash_rpc zcsamplejoinsplit)
zcashd_stop
esac
esac
case "$1" in
time)
zcashd_start
@@ -66,7 +77,7 @@ case "$1" in
zcash_rpc zcbenchmark createjoinsplit 10
;;
verifyjoinsplit)
zcash_rpc zcbenchmark verifyjoinsplit 1000
zcash_rpc zcbenchmark verifyjoinsplit 1000 "$RAWJOINSPLIT"
;;
solveequihash)
zcash_rpc zcbenchmark solveequihash 10
@@ -97,7 +108,7 @@ case "$1" in
zcash_rpc zcbenchmark createjoinsplit 1
;;
verifyjoinsplit)
zcash_rpc zcbenchmark verifyjoinsplit 1
zcash_rpc zcbenchmark verifyjoinsplit 1 "$RAWJOINSPLIT"
;;
solveequihash)
zcash_rpc zcbenchmark solveequihash 1
@@ -126,7 +137,7 @@ case "$1" in
zcash_rpc zcbenchmark createjoinsplit 1
;;
verifyjoinsplit)
zcash_rpc zcbenchmark verifyjoinsplit 1
zcash_rpc zcbenchmark verifyjoinsplit 1 "$RAWJOINSPLIT"
;;
solveequihash)
zcash_rpc zcbenchmark solveequihash 1