]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
hsbench: make output more clear
authorMatthew Barr <matthew.barr@intel.com>
Tue, 13 Jun 2017 23:04:43 +0000 (09:04 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Thu, 15 Jun 2017 05:41:30 +0000 (15:41 +1000)
tools/hsbench/main.cpp

index 2d92cd846f80ca76d65f06a979c108c8cf778438..b8c7b7ddc093ff3739464d7b3520bad023a73d73 100644 (file)
@@ -651,8 +651,8 @@ void displayResults(const vector<unique_ptr<ThreadContext>> &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<unique_ptr<ThreadContext>> &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");