message: Benchmark script verification with 100 nested IFs
  Committer's note: EvalScript call adapted to work with BCHU
  refactoring of the Script interpreter as a "virtual machine"
  encapsulated by a class
diff: @@ -96,4 +96,31 @@ static void VerifyScriptBench(benchmark::State &state)
  ECC_Stop();
  }
  +static void VerifyNestedIfScript(benchmark::State &state)
  +{
  + std::vector<std::vector<unsigned char> > stack;
  + CScript script;
  + for (int i = 0; i < 100; ++i)
  + {
  + script << OP_1 << OP_IF;
  + }
  + for (int i = 0; i < 1000; ++i)
  + {
  + script << OP_1;
  + }
  + for (int i = 0; i < 100; ++i)
  + {
  + script << OP_ENDIF;
  + }
  + while (state.KeepRunning())
  + {
  + auto stack_copy = stack;
  + ScriptError error;
  + BaseSignatureChecker sigchecker;
  + bool ret = EvalScript(stack_copy, script, 0, MAX_OPS_PER_SCRIPT, sigchecker, &error);
  + assert(ret);
  + }
  +}
  BENCHMARK(VerifyScriptBench, 6300);
  +
  +BENCHMARK(VerifyNestedIfScript, 100);
  