Auto merge of #2650 - str4d:2645-listunspent-benchmark, r=str4d

Add benchmark for listunspent

Closes #2645.
This commit is contained in:
Homu
2017-10-12 15:24:53 -07:00
4 changed files with 20 additions and 2 deletions

View File

@@ -2609,6 +2609,8 @@ UniValue zc_benchmark(const UniValue& params, bool fHelp)
throw JSONRPCError(RPC_TYPE_ERROR, "Benchmark must be run in regtest mode");
}
sample_times.push_back(benchmark_loadwallet());
} else if (benchmarktype == "listunspent") {
sample_times.push_back(benchmark_listunspent());
} else {
throw JSONRPCError(RPC_TYPE_ERROR, "Invalid benchmarktype");
}