Browse Source

fix: benchmark initialize function

master
Dnomd343 2 years ago
parent
commit
1726096a3c
  1. 2
      src/klotski_core/ffi/benchmark.cc
  2. 2
      src/klotski_core/ffi/tmain.cc

2
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) {

2
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;

Loading…
Cancel
Save