diff options
Diffstat (limited to 'test/dijkstra.cpp')
-rw-r--r-- | test/dijkstra.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/dijkstra.cpp b/test/dijkstra.cpp index 817f944a..afd2a85a 100644 --- a/test/dijkstra.cpp +++ b/test/dijkstra.cpp @@ -13,8 +13,9 @@ void bench_run(StringView name, F&& fun) { using namespace std::chrono; using clock = high_resolution_clock; + for (int i = 0; i < 20; i++) + fun(); const auto t0 = clock::now(); - fun(); for (int i = 0; i < 1000; i++) fun(); const auto tm = clock::now() - t0; |