From: apostolos Date: Tue, 7 Sep 2021 08:41:19 +0000 (+0300) Subject: nits X-Git-Tag: v5.4.3+vectorscan~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9901477bcfe54b0726975afe96533c9f27984461;p=thirdparty%2Fvectorscan.git nits --- diff --git a/benchmarks/shufti.cpp b/benchmarks/shufti.cpp index 78afc90d..7e57d3a9 100644 --- a/benchmarks/shufti.cpp +++ b/benchmarks/shufti.cpp @@ -65,8 +65,9 @@ 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; - double mb_size = (double) size / 1048576; /*average size*/ + size /= loops; + double mb_size = (double) size / 1048576; mb_size /= loops; bw = mb_size / total_sec; std::cout<<"\x1B[35m Case with no match in random pos and size: "<(end - start).count(); /*average time*/ total_sec /=loops; - double mb_size = (double) size / 1048576; /*average size*/ - mb_size /=loops; + 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: "<< size <<" for "<< loops <<" loops:" <<"\x1B[36m rshuftiExec elapsetime: \x1B[0m"<< total_sec <<" (μs) \x1B[36m bandwidth: \x1B[0m"<< bw <<" (MB/μs)"<