daanx / mimalloc-bench

Suite for benchmarking malloc implementations.
MIT License
357 stars 53 forks source link

Add a security benchmark #153

Closed jvoisin closed 2 years ago

jvoisin commented 2 years ago

It would be nice to have a security-related benchmark, not focused on memory consumption or speed, but on the ability of allocators to detect and neuter memory corruptions. For example, allocators should instantly abort on double-free.

List of tests to add, for large, small and medium allocations:

We should take inspiration from hardened_malloc's testsuite, and shellphish's how2heap

jvoisin commented 2 years ago

See https://github.com/daanx/mimalloc-bench/tree/master/bench/security