From a5c6ca806b2bde216effbea7cd5d964b3f235b5f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 22 Nov 2023 13:41:14 +0100 Subject: a --- bench/loader.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bench') diff --git a/bench/loader.cpp b/bench/loader.cpp index 6e891ab7..ec0eed17 100644 --- a/bench/loader.cpp +++ b/bench/loader.cpp @@ -10,6 +10,8 @@ namespace floormat { namespace { +using nlohmann::json; + void Loader_json(benchmark::State& state) { loader.destroy(); @@ -17,7 +19,7 @@ void Loader_json(benchmark::State& state) // warmup { for (const auto& x : loader.anim_atlas_list()) json_helper::from_json(Path::join(loader.ANIM_PATH, ""_s.join({x, ".json"}))); - json_helper::from_json>(Path::join(loader.VOBJ_PATH, "vobj.json")); + json_helper::from_json>(Path::join(loader.VOBJ_PATH, "vobj.json")); } for (auto _ : state) @@ -25,7 +27,7 @@ void Loader_json(benchmark::State& state) { for (const auto& x : loader.anim_atlas_list()) json_helper::from_json(Path::join(loader.ANIM_PATH, ""_s.join({x, ".json"}))); - json_helper::from_json>(Path::join(loader.VOBJ_PATH, "vobj.json")); + json_helper::from_json>(Path::join(loader.VOBJ_PATH, "vobj.json")); } } -- cgit v1.2.3