[PATCH 4/7] app/test/mempool_perf: drop constant-values replay

Stephen Hemminger stephen at networkplumber.org
Fri May 29 19:10:57 CEST 2026


The second nested matrix replays each (n_get_bulk == n_put_bulk)
point with use_constant_values=1 to exercise the compile-time
constant bulk-size paths in test_loop().  This roughly doubles the
work for the get/put diagonal at every n_keep without adding new
signal: the cycles/op result for a constant bulk is interesting in
isolated inlining studies, not in routine regression sweeps.

Drop the replay.  The use_constant_values switch and its branches
in test_loop() are retained for now since they are exercised by
hand in any local benchmarking.

Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
 app/test/test_mempool_perf.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/app/test/test_mempool_perf.c b/app/test/test_mempool_perf.c
index 19591ad0c9..dd2f0bbaca 100644
--- a/app/test/test_mempool_perf.c
+++ b/app/test/test_mempool_perf.c
@@ -423,14 +423,6 @@ do_one_mempool_test(struct rte_mempool *mp, unsigned int cores, int external_cac
 				ret = launch_cores(mp, cores);
 				if (ret < 0)
 					return -1;
-
-				/* replay test with constant values */
-				if (n_get_bulk == n_put_bulk) {
-					use_constant_values = 1;
-					ret = launch_cores(mp, cores);
-					if (ret < 0)
-						return -1;
-				}
 			}
 		}
 	}
-- 
2.53.0



More information about the dev mailing list