Skip to content

Repository files navigation

To run all of the benchmarks against all of the allocators, execute

./run-all-benchmarks.sh

It will generate a set of files in ./benchmark-results/$CPU.$OS/. View ./benchmark-results/$CPU.$OS/COMBINED-REPORT.md or generate an HTML rendering of it with

cd benchmark-results/$CPU.$OS/
pandoc COMBINED-REPORT.md --standalone -o COMBINED-REPORT.html

You can see some such reports committed into this git repo:

(Click on the image.)

You can find benchmark results from other platforms in benchmark-results.

Your Code Here

Make a script that runs benchmarks against your codebase, possibly following the examples of https://github.com/zooko/rebar/blob/master/bench-allocators.sh and https://github.com/zooko/simd-json/blob/master/bench-allocators.sh (if your code is in Rust) or https://github.com/zooko/mimalloc-bench/blob/master/bench-allocators.sh (if your code is in C/C++/Zig/etc) and publish them and let me know by opening an issue or a pull-request!

License

You may use this work under the terms of any of these four Free and Open Source Software licences:

About

run various benchmarks of memory allocators

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages