Add benchmark for incrementing note witnesses

This commit is contained in:
Jack Grigg
2016-11-17 22:26:46 +13:00
parent 0fbab55b1b
commit 0bb3d40f90
9 changed files with 228 additions and 125 deletions

View File

@@ -2483,6 +2483,9 @@ Value zc_benchmark(const json_spirit::Array& params, bool fHelp)
sample_times.push_back(benchmark_large_tx());
} else if (benchmarktype == "trydecryptnotes") {
sample_times.push_back(benchmark_try_decrypt_notes(samplejoinsplit));
} else if (benchmarktype == "incnotewitnesses") {
int nTxs = params[2].get_int();
sample_times.push_back(benchmark_increment_note_witnesses(nTxs));
} else {
throw JSONRPCError(RPC_TYPE_ERROR, "Invalid benchmarktype");
}