| 335 | ->ArgPair(100000, 16); |
| 336 | |
| 337 | static void BM_GraphViewGetNode(int iters, int num_nodes) { |
| 338 | testing::StopTiming(); |
| 339 | const GraphDef graph_def = |
| 340 | test::CreateGraphDef(num_nodes, /*num_edges_per_node=*/16); |
| 341 | GraphView graph_view(&graph_def); |
| 342 | |
| 343 | testing::StartTiming(); |
| 344 | for (int i = 0; i < iters; ++i) { |
| 345 | graph_view.GetNode("out"); |
| 346 | } |
| 347 | testing::StopTiming(); |
| 348 | } |
| 349 | |
| 350 | BENCHMARK(BM_GraphViewGetNode) |
| 351 | ->Arg(10) |
nothing calls this directly
no test coverage detected