Skip to contentSkip to conversation

test/hash: report non HTM numbers for single r/w

PATCH Applied Stanislaw Kardach 3 participants 3 messages May 10, 2022 – May 11, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/hash: report non HTM numbers for single r/w

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")
---
 app/test/test_hash_readwrite.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
app/test/test_hash_readwrite.c +6 -2
index 9b192f2b5e..6373e62d33 100644
@@ -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");
Signature · 1 line
2.30.2
Acked-by on v1 1/1
#1 lore raw
Quoted 14 lines

-----Original Message-----
From: Stanislaw Kardach <[email protected]>
Sent: Tuesday, May 10, 2022 4:58 AM
To: Wang, Yipeng1 <[email protected]>
Cc: Stanislaw Kardach <[email protected]>; [email protected]; Frank Zhao <[email protected]>; Sam Grove <[email protected]>; [email protected]; [email protected]
Subject: [PATCH 1/1] test/hash: report non HTM numbers for single r/w

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.

Quoted 4 lines
Fixes 0eb3726ebcf1 ("test/hash: add test for read/write concurrency")

---

[Wang, Yipeng] Thanks for the patch!

#2 lore raw
Quoted 11 lines · On Wed, May 11, 2022 at 12:10 AM Wang, Yipeng1 <[email protected]> wrote:
Quoted 10 lines

From: Stanislaw Kardach <[email protected]>

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")

Applied, thanks.

Signature · 1 line
David Marchand