Skip to content

chrishantha/object-pool-benchmarks

Repository files navigation

Object Pool Benchmarks

This repository has JMH benchmarks for different object pool implementations.

Following are the object pools used in this project.

Building the project

Build the benchmarks using Apache Maven

mvn clean package

Running the benchmarks

Run the benchmarks using the benchmark.sh script. I recommend following command.

time ./benchmark.sh 2>&1 | tee benchmark.log

This script will run the benchmarks for different number of threads and different number of object pool sizes.

All parameters are defined using variables in the script. You can change the parameters by editing the script.

The results of the all benchmarks will be saved in results directory.

Plotting Charts from the results

The results from all benchmarks can be visualized using the create-charts.py Python script.

The script is tested only with Python 3.6. Please make sure to install seaborn module, which will also install other dependencies

python3.6 -m pip install seaborn

The script must be run inside the results directory.

cd results
../create-charts.py

License

Copyright 2016 M. Isuru Tharanga Chrishantha Perera

Licensed under the Apache License, Version 2.0