From 5ad676ba01af3615a2a3df66bd955c26f7df8912 Mon Sep 17 00:00:00 2001 From: barracuda156 Date: Sat, 8 Jul 2023 19:17:56 +0800 Subject: [PATCH 2/2] Easy on stress testing for older systems --- test/test-stress.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git test/test-stress.c test/test-stress.c index 3ecb67b..8eb43b9 100644 --- test/test-stress.c +++ test/test-stress.c @@ -25,8 +25,8 @@ terms of the MIT license. // > mimalloc-test-stress [THREADS] [SCALE] [ITER] // // argument defaults -static int THREADS = 32; // more repeatable if THREADS <= #processors -static int SCALE = 25; // scaling factor +// static int THREADS = 32; // more repeatable if THREADS <= #processors +// static int SCALE = 25; // scaling factor #if defined(MI_TSAN) static int ITER = 10; // N full iterations destructing and re-creating all threads (on tsan reduce for azure pipeline limits) @@ -34,8 +34,8 @@ static int ITER = 10; // N full iterations destructing and re-creating a static int ITER = 50; // N full iterations destructing and re-creating all threads #endif -// static int THREADS = 8; // more repeatable if THREADS <= #processors -// static int SCALE = 100; // scaling factor +static int THREADS = 8; // more repeatable if THREADS <= #processors +static int SCALE = 100; // scaling factor #define STRESS // undefine for leak test