diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-10 03:28:21 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-10 03:28:21 +0200 |
| commit | f0787ab92794bb3bed1788b3a79f4eafbd308736 (patch) | |
| tree | b9de7b614837211d7366b6a772ad7fec485b10df /test | |
| parent | 54ddc5a5aaa5f66f82789163b8f71053375f1088 (diff) | |
a
Diffstat (limited to 'test')
| -rw-r--r-- | test/dijkstra.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/dijkstra.cpp b/test/dijkstra.cpp index 8b0f531c..7f2fc38b 100644 --- a/test/dijkstra.cpp +++ b/test/dijkstra.cpp @@ -42,13 +42,14 @@ void test_app::test_dijkstra() debug); }; - static constexpr int iters = 1; + static constexpr int iters = 10; if constexpr (iters > 1) do_bench(1, 1); #if 1 - bench_run("Dijkstra", [&] { - do_bench(iters, iters == 1); - }); + for (int i = 0; i < iters; i++) + bench_run("Dijkstra", [&] { + do_bench(1, iters == 1); + }); #endif } |
