@@ -605,8 +605,8 @@ void BM_RandomDag(benchmark::State& state) {
605605 const int num_nodes = state.range (0 );
606606 const int num_arcs = num_nodes * state.range (1 );
607607 const auto [graph, topological_order] = BuildRandomDag (num_nodes, num_arcs);
608- // Generate at most 20 scenarios of random arc lengths.
609- const int num_scenarios = std::min ( 20 , ( int )state. iterations ()) ;
608+ // Generate 10 scenarios of random arc lengths.
609+ const int num_scenarios = 10 ;
610610 std::vector<std::vector<double >> arc_lengths_scenarios;
611611 for (int _ = 0 ; _ < num_scenarios; ++_) {
612612 arc_lengths_scenarios.push_back (GenerateRandomLengths (graph));
@@ -632,7 +632,8 @@ BENCHMARK(BM_RandomDag)
632632 ->ArgPair(1 << 16 , 4 )
633633 ->ArgPair(1 << 16 , 16 )
634634 ->ArgPair(1 << 22 , 4 )
635- ->ArgPair(1 << 22 , 16 );
635+ ->ArgPair(1 << 22 , 16 )
636+ ->ArgPair(1 << 26 , 4 ); // Don't go bigger, can't run on work station.
636637
637638void BM_LineDag (benchmark::State& state) {
638639 const int num_nodes = state.range (0 );
@@ -1198,8 +1199,8 @@ void BM_RandomDag_K(benchmark::State& state) {
11981199 const int num_arcs = num_nodes * state.range (1 );
11991200 const int path_count = state.range (2 );
12001201 const auto [graph, topological_order] = BuildRandomDag (num_nodes, num_arcs);
1201- // Generate at most 20 scenarios of random arc lengths.
1202- const int num_scenarios = std::min ( 20 , ( int )state. iterations ()) ;
1202+ // Generate 10 scenarios of random arc lengths.
1203+ const int num_scenarios = 10 ;
12031204 std::vector<std::vector<double >> arc_lengths_scenarios;
12041205 for (int _ = 0 ; _ < num_scenarios; ++_) {
12051206 arc_lengths_scenarios.push_back (GenerateRandomLengths (graph));
0 commit comments