From 2e6c75c895a25a50e6b8685c0841bb6955fc1060 Mon Sep 17 00:00:00 2001 From: apostolos Date: Thu, 9 Sep 2021 12:02:33 +0300 Subject: [PATCH] size output fixed --- benchmarks/benchmarks.cpp | 2 ++ benchmarks/shufti.cpp | 10 ++++++---- benchmarks/truffle.cpp | 10 ++++++---- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/benchmarks/benchmarks.cpp b/benchmarks/benchmarks.cpp index 7d669cc0..6ff20b8b 100644 --- a/benchmarks/benchmarks.cpp +++ b/benchmarks/benchmarks.cpp @@ -4,6 +4,8 @@ #include #include #include +#include "nfa/shufticompile.h" + int main(){ int sizes[]= { 16000, 32000, 64000, 120000, 1600000, 2000000, 2500000, 3500000, 150000000, 250000000, 350000000, 500000000}; int loops[]= { 6000, 6000, 6000, 6000, 1000, 1000, 1000, 1000, 50, 50, 25, 25}; diff --git a/benchmarks/shufti.cpp b/benchmarks/shufti.cpp index 7e57d3a9..3e5011eb 100644 --- a/benchmarks/shufti.cpp +++ b/benchmarks/shufti.cpp @@ -20,6 +20,7 @@ void shufti_benchmarks(int size, int loops, int M, bool has_match) { + size_t real_size = size; m128 lo, hi; ue2::CharReach chars; chars.set('a'); @@ -53,7 +54,7 @@ void shufti_benchmarks(int size, int loops, int M, bool has_match) { } total_sec /= M; bw /= M; - std::cout << "\x1B[35m Case with match in random pos and size: " << size << " for " << loops <<" loops (" + std::cout << "\x1B[35m Case with match in random pos and size: " << real_size << " for " << loops <<" loops (" << M << " random possisions checked): \x1B[36m shuftiExec elapsetime: \x1B[0m" << (total_sec) << " (μs) \x1B[36m bandwidth: \x1B[0m" << bw <<" (MB/μs)"<