From c982d4e344f06a3b147d05de9476e7fcd7c9a5ac Mon Sep 17 00:00:00 2001 From: Burt P Date: Wed, 4 Sep 2019 22:10:43 -0500 Subject: sysbench memory tweaks * Use a larger sample size for sysbench 1.0+ and 64-bit * Store pointer size with bench results * Re-enable single thread memory benchmark Use a larger sample size where available. The small size was chosen because the 32-bit ARM sysbench 0.4x in raspbian can't do more than about ~4G, but the problem is that much more powerful machines burn through that very quickly. The result is in MiB/s so it should still be comparable, but the results should be more stable. Noticed with Ryzen that multi-thread varies significantly based on what threads are used, but benchmark doesn't really have control over that. Signed-off-by: Burt P --- includes/benchmark.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'includes/benchmark.h') diff --git a/includes/benchmark.h b/includes/benchmark.h index 88f8bf46..ab77efa4 100644 --- a/includes/benchmark.h +++ b/includes/benchmark.h @@ -4,6 +4,8 @@ #include "hardinfo.h" #include "util_sysobj.h" /* for SEQ() */ +#define BENCH_PTR_BITS ((unsigned int)sizeof(void*) * 8) + extern ProgramParameters params; enum { -- cgit v1.2.3