From: Matthew Barr Date: Tue, 13 Jun 2017 23:04:43 +0000 (+1000) Subject: hsbench: make output more clear X-Git-Tag: v4.5.1^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79b42cff580c7fe77b36c160579d5c252bc69d66;p=thirdparty%2Fvectorscan.git hsbench: make output more clear --- diff --git a/tools/hsbench/main.cpp b/tools/hsbench/main.cpp index 2d92cd84..b8c7b7dd 100644 --- a/tools/hsbench/main.cpp +++ b/tools/hsbench/main.cpp @@ -651,8 +651,8 @@ void displayResults(const vector> &threads, } } - printf("Time spent scanning: %'0.3f seconds\n", totalSecs); - printf("Corpus size: %'llu bytes ", bytesPerRun); + printf("Time spent scanning: %'0.3f seconds\n", totalSecs); + printf("Corpus size: %'llu bytes ", bytesPerRun); switch (scan_mode) { case ScanMode::STREAMING: printf("(%'zu blocks in %'llu streams)\n", corpus_blocks.size(), @@ -671,16 +671,16 @@ void displayResults(const vector> &threads, u64a totalBlocks = corpus_blocks.size() * repeats * threads.size(); double matchRate = ((double)matchesPerRun * 1024) / bytesPerRun; - printf("Matches per iteration: %'llu (%'0.3f matches/kilobyte)\n", + printf("Matches per iteration: %'llu (%'0.3f matches/kilobyte)\n", matchesPerRun, matchRate); double blockRate = (double)totalBlocks / (double)totalSecs; - printf("Overall block rate: %'0.2f blocks/sec\n", blockRate); - printf("Mean throughput: %'0.2Lf Mbit/sec\n", + printf("Overall block rate: %'0.2f blocks/sec\n", blockRate); + printf("Mean throughput (overall): %'0.2Lf Mbit/sec\n", calc_mbps(totalSecs, totalBytes)); double lowestScanTime = fastestResult(threads); - printf("Maximum throughput: %'0.2Lf Mbit/sec\n", + printf("Max throughput (per core): %'0.2Lf Mbit/sec\n", calc_mbps(lowestScanTime, bytesPerRun)); printf("\n");