Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/delano/benelux
A mad timeline for your Ruby codes.
https://github.com/delano/benelux
Last synced: 3 months ago
JSON representation
A mad timeline for your Ruby codes.
- Host: GitHub
- URL: https://github.com/delano/benelux
- Owner: delano
- License: mit
- Created: 2009-09-19T00:10:50.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2011-02-26T21:07:37.000Z (almost 14 years ago)
- Last Synced: 2024-05-01T23:13:24.439Z (9 months ago)
- Language: Ruby
- Homepage: http://delano.github.com/benelux
- Size: 648 KB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- Changelog: CHANGES.txt
- License: LICENSE.txt
Awesome Lists containing this 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
* Codes[http://github.com/delano/benelux]
* RDocs[http://delano.github.com/benelux]== Credits
* Delano Mandelbaum (http://solutious.com)
== Thanks
* Alexis Sellier for fielding my Ruby questions
* Tara Dougans for the motivational speeches== License
See LICENSE.txt