No commit activity in last 3 years
No release in over 3 years
A set of Ruby benchmarks for testing several Ruby methods and practice.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Ruby micro benchmarks

Ruby micro benchmarks is a small suite to measure performance of simple Ruby methods and operators. Created in order to answer questions like what is faster array[0] or array.first, 'string' or "string", 'a: ' << a << 'b: ' << b or "a: #{a} b: #{b}". Results of these benchmarks are sometimes unexpected and interesting.

Install

gem install ruby_micro_benchmarks

Also from sources:

git clone git://github.com/plashchynski/ruby_micro_benchmarks.git

Running

If you installed the gem, run:

ruby_micro_benchmarks

If you have the sources, run "rake" in the source directory. You can specify certain file to run:

rake FILE=./benchmarks/operators.rb

Copyright

Copyright (c) 2011 Dzmitry Plashchynski. See LICENSE for details.