MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getProtoData

Method getProtoData

valdi/test/benchmark/ProtobufBenchmark.cpp:46–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 ~RuntimeWrapper() = default;
45
46 BytesView getProtoData(std::string_view filename) {
47 auto path = resolveTestPath("testdata/pb").append(filename);
48 return DiskUtils::load(path).moveValue();
49 }
50};
51
52static void doBench(JavaScriptEngineType jsEngineType, std::string_view functionName, benchmark::State& state) {

Callers 1

doBenchFunction · 0.80

Calls 3

loadFunction · 0.85
appendMethod · 0.65
resolveTestPathFunction · 0.50

Tested by

no test coverage detected