| 108 | BENCHMARK(EncodeProtobufReflectionCpp); |
| 109 | |
| 110 | static void DecodeValdiProtobuf(benchmark::State& state) { |
| 111 | auto protoData = makeProtoData(); |
| 112 | const auto* descriptor = test::Message::GetDescriptor(); |
| 113 | |
| 114 | for (auto _ : state) { |
| 115 | auto message = Protobuf::Message::parse(protoData, descriptor); |
| 116 | if (!message) { |
| 117 | SC_ABORT("Message failed to parse"); |
| 118 | } |
| 119 | } |
| 120 | } |
| 121 | BENCHMARK(DecodeValdiProtobuf); |
| 122 | |
| 123 | static void DecodeValdiProtobufNoPostprocess(benchmark::State& state) { |
nothing calls this directly
no test coverage detected