#include "insrcdata.h" // minimalistic benchmark to verify behaviour with huge table #include #include #include #include #include // run one cycle of benchmark void run(void) { int count = 1; for(int i=0; i 0); } // parse configuration and run n cycles int main(int argc, char* argv[]) { if( argc > 1 ){ char* cmd = argv[1]; if( strcmp(cmd,"startup")==0 ){ return 0; } int repeat = 10000000/BENCH_TABLE_COUNT; if( strcmp(cmd,"bench")!=0 ){ repeat = atoi(cmd); } struct timeval stop, start; gettimeofday(&start, NULL); for(int i=0; i