]> git.droids-corp.org - dpdk.git/commitdiff
test/hash: report non HTM numbers for single thread
authorStanislaw Kardach <kda@semihalf.com>
Tue, 10 May 2022 11:57:34 +0000 (13:57 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 11 May 2022 12:01:03 +0000 (14:01 +0200)
In hash_readwrite_perf_autotest a single read and write operation is
benchmarked for both HTM and non HTM cases. However the result summary
only shows the HTM value. Therefore add the non HTM value for
completeness.

Fixes: 0eb3726ebcf1 ("test/hash: add test for read/write concurrency")
Signed-off-by: Stanislaw Kardach <kda@semihalf.com>
Acked-by: Yipeng Wang <yipeng1.wang@intel.com>
app/test/test_hash_readwrite.c

index 9b192f2b5e7ca6e9f81a1318a640795bdd9a4718..6373e62d335ad9f8f0b8b2978042f6b0aca43c32 100644 (file)
@@ -664,8 +664,12 @@ test_hash_rw_perf_main(void)
        printf("Results summary:\n");
        printf("================\n");
 
-       printf("single read: %u\n", htm_results.single_read);
-       printf("single write: %u\n", htm_results.single_write);
+       printf("HTM:\n");
+       printf("  single read: %u\n", htm_results.single_read);
+       printf("  single write: %u\n", htm_results.single_write);
+       printf("non HTM:\n");
+       printf("  single read: %u\n", non_htm_results.single_read);
+       printf("  single write: %u\n", non_htm_results.single_write);
        for (i = 0; i < NUM_TEST; i++) {
                printf("+++ core_cnt: %u +++\n", core_cnt[i]);
                printf("HTM:\n");