MCPcopy Create free account
hub / github.com/ElementsProject/elements / BlockToJsonVerbose

Function BlockToJsonVerbose

src/bench/rpc_blockchain.cpp:40–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38} // namespace
39
40static void BlockToJsonVerbose(benchmark::Bench& bench)
41{
42 TestBlockAndIndex data;
43 bench.run([&] {
44 auto univalue = blockToJSON(data.block, &data.blockindex, &data.blockindex, TxVerbosity::SHOW_DETAILS_AND_PREVOUT);
45 ankerl::nanobench::doNotOptimizeAway(univalue);
46 });
47}
48
49BENCHMARK(BlockToJsonVerbose);
50

Callers

nothing calls this directly

Calls 3

blockToJSONFunction · 0.85
doNotOptimizeAwayFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected