#include #include #include #include #include namespace xrpl::test::bench { namespace { void cacheLedgerObjImpl(benchmark::State& state) { static constexpr auto kWasmName = std::string_view{"cache_le"}; auto const key = keylet::account(Fixtures::instance().alice().id()).key; benchmarkImpl( state, kWasmName, [] { return Fixtures::instance().host(); }, [&key](auto& host) { return host.cacheLedgerObj(key, 1); }); } BENCHMARK(cacheLedgerObjImpl)->UseManualTime()->Iterations(kBenchIterations); } // namespace } // namespace xrpl::test::bench