From 0e141ce700b8d1585f326c296522ceda06983d11 Mon Sep 17 00:00:00 2001 From: apostolos Date: Mon, 13 Sep 2021 10:09:13 +0300 Subject: [PATCH] size outup for case with match fixed --- benchmarks/noodle.cpp | 2 -- benchmarks/shufti.cpp | 4 ---- benchmarks/truffle.cpp | 4 ---- 3 files changed, 10 deletions(-) diff --git a/benchmarks/noodle.cpp b/benchmarks/noodle.cpp index 607f1f05..3ac37ffa 100644 --- a/benchmarks/noodle.cpp +++ b/benchmarks/noodle.cpp @@ -48,8 +48,6 @@ void noodle_benchmarks(int size, int M, const char *lit_str, int lit_len, char n total_sec += std::chrono::duration_cast(end - start).count(); /*average time*/ total_sec /= M; - /*average size*/ - size /=M; double mb_size = (double) size / 1048576; bw = mb_size / total_sec; std::cout << "\x1B[35m Case with match in random pos and size: "<< size <<" lit_len: "<< lit_len <<" nocase: "<< (int)nocase diff --git a/benchmarks/shufti.cpp b/benchmarks/shufti.cpp index 3e5011eb..934f485d 100644 --- a/benchmarks/shufti.cpp +++ b/benchmarks/shufti.cpp @@ -66,8 +66,6 @@ void shufti_benchmarks(int size, int loops, int M, bool has_match) { total_sec += std::chrono::duration_cast(end - start).count(); /*average time*/ total_sec /= loops; - /*average size*/ - size /= loops; double mb_size = (double) size / 1048576; mb_size /= loops; bw = mb_size / total_sec; @@ -124,8 +122,6 @@ void rshufti_benchmarks(int size, int loops, int M, bool has_match) { total_sec += std::chrono::duration_cast(end - start).count(); /*average time*/ total_sec /=loops; - /*average size*/ - size /=loops; double mb_size = (double) size / 1048576; bw = mb_size / total_sec; std::cout<<"\x1B[35m Case with no match in random pos and size: "<< real_size <<" for "<< loops <<" loops:" diff --git a/benchmarks/truffle.cpp b/benchmarks/truffle.cpp index b48cbfe3..b50cf6df 100644 --- a/benchmarks/truffle.cpp +++ b/benchmarks/truffle.cpp @@ -65,8 +65,6 @@ void truffle_benchmarks(int size, int loops, int M, bool has_match) { total_sec += std::chrono::duration_cast(end - start).count(); /*average time*/ total_sec /= loops; - /*average size*/ - size /= loops; double mb_size = (double) size / 1048576; bw = mb_size / total_sec; std::cout<<"\x1B[35m Case with no match in random pos and size: "<< real_size <<" for "<< loops <<" loops:" @@ -123,8 +121,6 @@ void rtruffle_benchmarks(int size, int loops, int M, bool has_match) { total_sec += std::chrono::duration_cast(end - start).count(); /*average time*/ total_sec /= loops; - /*average size*/ - size /=loops; double mb_size = (double) size / 1048576; bw = mb_size / total_sec; std::cout<<"\x1B[35m Case with no match in random pos and size: "<< real_size <<" for "<< loops <<" loops:"