mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
bench: Remove requirement that all benches use RegTestingSetup
This commit is contained in:
parent
54f812d9d2
commit
fab1170964
10 changed files with 28 additions and 20 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue