summaryrefslogtreecommitdiffhomepage
path: root/test/dijkstra.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-10-08 09:52:50 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-10-08 09:52:50 +0200
commit832641f2905532263f70b3ea9ecc4a9ca7373ed2 (patch)
treec85af0bcec318729fe2fe295b020efe0f387d3e8 /test/dijkstra.cpp
parentbfe9becfca9e789bf653c4bb8e92917acac04218 (diff)
a
Diffstat (limited to 'test/dijkstra.cpp')
-rw-r--r--test/dijkstra.cpp3
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;