Syndication Icon
Published February 2, 2019 Updated October 21, 2021
Benchmarks Icon

Benchmarks

Git Badge
Circle CI Status

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.

Features

Screencasts

Screencast

Requirements

Setup

To install, run:

git clone https://github.com/bkuhlmann/benchmarks.git
cd benchmarks
git checkout 0.18.0
bin/setup

Usage

Every benchmark is executable. To run, copy a benchmark file path and pass it to Ruby. Example:

ruby scripts/ruby/strings/split.rb

You can also avoid running any of the benchmarks locally by browsing any of the scripts located in the scripts folder and looking for the benchmark results at the end of the file.

Development

To contribute, run:

git clone https://github.com/bkuhlmann/benchmarks.git
cd benchmarks
bin/setup

Tests

To test, run:

bundle exec rake

Versioning

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.

Contributions

Read Contributions for details.

License

Read License for details.

History

Read Changes for details.

Credits

Engineered by Brooke Kuhlmann.