#include "nfa/shufti.h" #include "benchmarks.hpp" #include #include #include /* #define RST "\x1B[0m" #define KRED "\x1B[31m" #define KGRN "\x1B[32m" #define KYEL "\x1B[33m" #define KBLU "\x1B[34m" #define KMAG "\x1B[35m" #define KCYN "\x1B[36m" #define KWHT "\x1B[37m" */ void shufti_benchmarks(int size, int loops, int M, bool has_match) { m128 lo, hi; char *kt1 = new char[size]; memset(kt1,'b',size); double total_sec = 0; if (has_match){ int pos = 0; for(int j=0; j shuftiExec_elapsed_seconds = end-start; total_sec += shuftiExec_elapsed_seconds.count(); } total_sec /= M; std::cout<<"\x1B[35m Case with match in random pos and size: "< shuftiExec_elapsed_seconds = end-start; total_sec += shuftiExec_elapsed_seconds.count(); std::cout<<"\x1B[35m Case with no match in random pos and size: "< shuftiExec_elapsed_seconds = end-start; total_sec += shuftiExec_elapsed_seconds.count(); } total_sec /= M; std::cout<<"\x1B[35m Case with match in random pos and size: "< shuftiExec_elapsed_seconds = end-start; total_sec += shuftiExec_elapsed_seconds.count(); std::cout<<"\x1B[35m Case with no match in random pos and size: "<