This project bundles a set of benchmarks that aims to measure the performance of a multitude of threading implementations in the Java Virtual Machine.
As of now, there is just a single benchmark (ring) adopted from the Performance Measurements of Threads in Java and Processes in Erlang article. I plan to introduce new benchmarks as time allows. That being said, contributions are welcome.
Project employs 3 threading libraries to implement fibers in the benchmarks.
You first need to build the JMH Uber JAR using Maven.
$ mvn clean install
Next, you can either use the provided
$ ./benchmark.sh --help # You can run with default parameters. $ ./benchmark.sh # Alternatively, you can configure parameters through environment variables. $ ringSize=500 workerCount=30 ./benchmark.sh
The fiber-test by Volkan Yazıcı is licensed under the Creative Commons Attribution 4.0 International License.