size outup for case with match fixed

This commit is contained in:
apostolos 2021-09-13 10:09:13 +03:00 committed by Konstantinos Margaritis
parent 5d4adf267d
commit 0e141ce700
3 changed files with 0 additions and 10 deletions

View File

@ -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<std::chrono::microseconds>(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

View File

@ -66,8 +66,6 @@ void shufti_benchmarks(int size, int loops, int M, bool has_match) {
total_sec += std::chrono::duration_cast<std::chrono::microseconds>(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<std::chrono::microseconds>(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:"

View File

@ -65,8 +65,6 @@ void truffle_benchmarks(int size, int loops, int M, bool has_match) {
total_sec += std::chrono::duration_cast<std::chrono::microseconds>(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<std::chrono::microseconds>(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:"