bench: Remove requirement that all benches use RegTestingSetup

This commit is contained in:
MarcoFalke 2020-04-09 11:47:32 -04:00
parent 54f812d9d2
commit fab1170964
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
10 changed files with 28 additions and 20 deletions

View file

@ -18,6 +18,9 @@
// modified to measure performance of other types of scripts.
static void VerifyScriptBench(benchmark::State& state)
{
const ECCVerifyHandle verify_handle;
ECC_Start();
const int flags = SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH;
const int witnessversion = 0;
@ -69,6 +72,7 @@ static void VerifyScriptBench(benchmark::State& state)
assert(csuccess == 1);
#endif
}
ECC_Stop();
}
static void VerifyNestedIfScript(benchmark::State& state) {