Please kindly advise on benchmarks used to test a C and C++ allocator? Benchmarks satisfying any of the following aspects are considered:
Thanks!
I tested several allocators myself a few years ago and my experience is that the results all depend on the kind of test. If you want to write some benchmarks yourself, consider the following situations:
You will notice that the results will be different for every test. Allocators that are very good in one situation, may be bad in other situations.
In practice this means that it's best to test it in your application, in a live/realistic situation.
You can download nedmalloc
and try to compare your allocator with it. It has a test called test.c
with the source code, which you can rewrite according to your allocator.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With