| 44 | } |
| 45 | |
| 46 | static void DecodeProtobufCpp(benchmark::State& state) { |
| 47 | auto protoData = makeProtoData(); |
| 48 | |
| 49 | for (auto _ : state) { |
| 50 | auto message = makeShared<test::Message>(); |
| 51 | if (!message->ParseFromArray(protoData.data(), protoData.size())) { |
| 52 | SC_ABORT("Message failed to parse"); |
| 53 | } |
| 54 | } |
| 55 | } |
| 56 | BENCHMARK(DecodeProtobufCpp); |
| 57 | |
| 58 | static void DecodeProtobufReflectionCpp(benchmark::State& state) { |
nothing calls this directly
no test coverage detected