Project

benelux

0.0
No commit activity in last 3 years
No release in over 3 years
Benelux: A mad way to time Ruby codes
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.5.3
>= 0.8.6
 Project Readme

Benelux v0.5¶ ↑

A mad way to time Ruby codes

Features¶ ↑

  • A replacement for Benchmark.measure

  • Create timers for any Ruby method

  • Store arbitrary messages

  • Granular statistics

  • Thread-safe

Example¶ ↑

require 'benelux'

# Similar to Benchmark.measure but you specify the
# number of times to run the block and the number
# repetitions.
tms = Benelux.bm(1000000, 5) do
  rand
end

# Similar to Benchmark::Tms with the addition of
# standard deviation, mean value, and total, for
# each of the times.
tms.samples              # => 5
tms.real                 # => 0.45
tms.real.sd              # => 0.04
tms.utime                # => 0.44
tms.utime.sd             # => 0.02

Installation¶ ↑

Get it in one of the following ways:

$ gem install benelux --source http://gemcutter.org
$ sudo gem install benelux --source http://gemcutter.org
$ git clone git://github.com/delano/benelux.git

More Information¶ ↑

Credits¶ ↑

Thanks ¶ ↑

  • Alexis Sellier for fielding my Ruby questions

  • Tara Dougans for the motivational speeches

License¶ ↑

See LICENSE.txt