From 1726096a3c8c2b4aa75822b4eedce8a8af7b7a81 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 8 Apr 2023 18:55:32 +0800 Subject: [PATCH] fix: benchmark initialize function --- src/klotski_core/ffi/benchmark.cc | 2 +- src/klotski_core/ffi/tmain.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/klotski_core/ffi/benchmark.cc b/src/klotski_core/ffi/benchmark.cc index cdcfa41..0e8acae 100644 --- a/src/klotski_core/ffi/benchmark.cc +++ b/src/klotski_core/ffi/benchmark.cc @@ -6,7 +6,7 @@ using klotski::Benchmark; /////////////////////////////////////////////////////////////////////////////// void benchmark_preparation() { - Benchmark::data_preparation(); + Benchmark::data_initialize(); } double benchmark_warm_up_us(uint64_t count) { diff --git a/src/klotski_core/ffi/tmain.cc b/src/klotski_core/ffi/tmain.cc index adae2a8..b2d3380 100644 --- a/src/klotski_core/ffi/tmain.cc +++ b/src/klotski_core/ffi/tmain.cc @@ -26,7 +26,7 @@ void tmain() { std::cout << "all cases: " << Benchmark::all_cases() << "ms" << std::endl; - Benchmark::data_preparation(); + Benchmark::data_initialize(); std::cout << "raw code check: " << Benchmark::raw_code_check() << "ns" << std::endl;