From cb4fc2c79265c6bbfb76ace676523de9da9a321a Mon Sep 17 00:00:00 2001 From: Daan Date: Sat, 4 Mar 2023 09:17:35 -0800 Subject: [PATCH] reset stats for stress test when using mimalloc --- test/test-stress.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test-stress.c b/test/test-stress.c index 298d48b0..87e41736 100644 --- a/test/test-stress.c +++ b/test/test-stress.c @@ -241,6 +241,9 @@ int main(int argc, char** argv) { //printf("(reserve huge: %i\n)", res); //bench_start_program(); +#ifndef USE_STD_MALLOC + mi_stats_reset(); +#endif // Run ITER full iterations where half the objects in the transfer buffer survive to the next round. srand(0x7feb352d);