Skip to content

Commit

Permalink
change cycle error for cast
Browse files Browse the repository at this point in the history
  • Loading branch information
guodongliang committed Nov 27, 2024
1 parent ddf2d95 commit d0d0dd9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ntt/test/benchmark_test/benchmark_ntt_cast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void benchmark_ntt_cast(T1 init_low, T1 init_high) {
constexpr size_t size = 600;
#elif __x86_64__
constexpr size_t run_size = 2000;
constexpr size_t size = 2000;
constexpr size_t size = 16000;
#else
constexpr size_t run_size = 2000;
constexpr size_t size = 2000;
Expand Down Expand Up @@ -90,7 +90,8 @@ void benchmark_ntt_cast(T1 init_low, T1 init_high) {
auto t2 = NttTest::get_cpu_cycle();

std::cout << __FUNCTION__ << "_" << op << " took " << std::setprecision(1)
<< std::fixed << static_cast<float>(t2 - t1) / size / run_size
<< std::fixed
<< static_cast<float>(t2 - t1) / (size / M) / run_size
<< " cycles" << std::endl;
}

Expand Down

0 comments on commit d0d0dd9

Please sign in to comment.