Closed mfunyu closed 7 months ago
Benchmark result
$> ./test/run_benchmark.sh
gcc -I includes -I libft -I ft_printf -I . ./test/correction/test11.c -Llibft -lft -Lft_printf -lftprintf libft_malloc_x86_64_Linux.so -o correction
===== test11: time overhead =====
1 loops of 1000 mallocs and 500 free
-> 1000 mallocs, 500 frees
real 0m0.005s
user 0m0.001s
sys 0m0.000s
===== test11: time overhead =====
10 loops of 1000 mallocs and 500 free
-> 10000 mallocs, 5000 frees
real 0m0.004s
user 0m0.003s
sys 0m0.000s
===== test11: time overhead =====
100 loops of 1000 mallocs and 500 free
-> 100000 mallocs, 50000 frees
real 0m0.024s
user 0m0.022s
sys 0m0.000s
===== test11: time overhead =====
1000 loops of 1000 mallocs and 500 free
-> 1000000 mallocs, 500000 frees
real 0m0.180s
user 0m0.097s
sys 0m0.081s
===== test11: time overhead =====
10000 loops of 1000 mallocs and 500 free
-> 10000000 mallocs, 5000000 frees
real 0m1.947s
user 0m0.936s
sys 0m0.899s
resolved #37
resolve #31, resolve #36, resolve #32, resolve #38