Benchmarks is a collection of Ruby micro benchmarks which can be cloned and run locally or used as an information point of reference. The various statistics on Ruby performance captured within this project may or may not surprise you.
Uses Benchmark IPS to calculate CPU/speed results.
To install, run:
git clone https://github.com/bkuhlmann/benchmarks.git cd benchmarks git checkout 0.18.0 bin/setup
Every benchmark is executable. To run, copy a benchmark file path and pass it to Ruby. Example:
You can also avoid running any of the benchmarks locally by browsing any of the scripts located in
scripts folder and looking for the benchmark results at the end of the file.
To contribute, run:
git clone https://github.com/bkuhlmann/benchmarks.git cd benchmarks bin/setup
To test, run:
bundle exec rake
Read Semantic Versioning for details. Briefly, it means:
Major (X.y.z) - Incremented for any backwards incompatible public API changes.
Minor (x.Y.z) - Incremented for new, backwards compatible, public API enhancements/fixes.
Patch (x.y.Z) - Incremented for small, backwards compatible, bug fixes.
Code of Conduct
Read Code of Conduct for details.
Read Contributions for details.
Read License for details.
Read Changes for details.
Engineered by Brooke Kuhlmann.