MCPcopy Create free account
hub / github.com/apple/coremltools / main

Function main

deps/protobuf/benchmarks/cpp/cpp_benchmark.cc:240–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240int main(int argc, char *argv[]) {
241 ::benchmark::Initialize(&argc, argv);
242 if (argc == 1) {
243 std::cerr << "Usage: ./cpp-benchmark <input data>" << std::endl;
244 std::cerr << "input data is in the format of \"benchmarks.proto\""
245 << std::endl;
246 return 1;
247 } else {
248 for (int i = 1; i < argc; i++) {
249 RegisterBenchmarks(ReadFile(argv[i]));
250 }
251 }
252
253 ::benchmark::RunSpecifiedBenchmarks();
254}

Callers

nothing calls this directly

Calls 2

RegisterBenchmarksFunction · 0.85
ReadFileFunction · 0.70

Tested by

no test coverage detected