Add performance tests for creating and validating a MAX_BLOCK_SIZE transaction

This commit is contained in:
Jack Grigg
2016-06-08 11:28:12 +12:00
parent dd74e9dd32
commit f5edc37f3f
4 changed files with 193 additions and 2 deletions

View File

@@ -2419,6 +2419,10 @@ Value zc_benchmark(const json_spirit::Array& params, bool fHelp)
sample_times.push_back(benchmark_solve_equihash());
} else if (benchmarktype == "verifyequihash") {
sample_times.push_back(benchmark_verify_equihash());
} else if (benchmarktype == "createlargetx") {
sample_times.push_back(benchmark_large_tx(false));
} else if (benchmarktype == "validatelargetx") {
sample_times.push_back(benchmark_large_tx(true));
} else {
throw JSONRPCError(RPC_TYPE_ERROR, "Invalid benchmarktype");
}