The letter A styled as Alchemists logo. lchemists Syndication Icon

Putin's War on Ukraine - Watch President Zelenskyy's speech and help Ukraine fight against the senseless cruelty of a dictator!

Published February 2, 2019 Updated May 28, 2022
Benchmarks Icon

Benchmarks

1.1.4

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 1.1.4
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

Credits