# allocbench - benchmark tool for POSIX memory allocators To download allocbench run ```shell git clone https://muhq.space/software/allocbench.git ``` ## Requirements * python3 * perf (`perf stat -d` is the default command to measure benchmark results) * util-linux (`whereis` is used to find system installed allocators) * (git to clone allocators in `allocators/{no_falsesharing, BA_allocators}.py`) ## Usage usage: bench.py [-h] [-ds, --dont-save] [-l LOAD] [-a ALLOCATORS] [-r RUNS] [-v] [-vdebug] [-b BENCHMARKS [BENCHMARKS ...]] [-ns] [-rd RESULTDIR] [--license] benchmark memory allocators optional arguments: -h, --help show this help message and exit -ds, --dont-save don't save benchmark results in RESULTDIR -l LOAD, --load LOAD load benchmark results from directory -a ALLOCATORS, --allocators ALLOCATORS load allocator definitions from file -r RUNS, --runs RUNS how often the benchmarks run -v, --verbose more output -vdebug, --verbose-debug debug output -b BENCHMARKS [BENCHMARKS ...], --benchmarks BENCHMARKS [BENCHMARKS ...] benchmarks to run -ns, --nosum don't produce plots -rd RESULTDIR, --resultdir RESULTDIR directory where all results go --license print license info and exit ### Examples ./bench.py -b loop runs only the loop benchmark for some installed allocators and will put its results in `$PWD/results/$HOSTNAME/