]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
size outup for case with match fixed
authorapostolos <apostolos.tapsas@vectorcamp.gr>
Mon, 13 Sep 2021 07:09:13 +0000 (10:09 +0300)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Tue, 12 Oct 2021 08:51:34 +0000 (11:51 +0300)
benchmarks/noodle.cpp
benchmarks/shufti.cpp
benchmarks/truffle.cpp

index 607f1f057337439cc17e93b253665984db917bee..3ac37ffa349db30488fe2c3d1b87bd429ed39417 100644 (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
index 3e5011ebfffa3ea8496a3bd01c6ce048395301f2..934f485dcb70d1114554550490e0726714faa38a 100644 (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:"
index b48cbfe3f92bf1d392351e56d3f583d459ab8bf8..b50cf6df01663e2535dbb14157a55d5b4d739ec8 100644 (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:"