Skip to content
Solving "canned problems" with Ruby and actually benchmarking the various methods
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This is just a quick little script I pieced together to help evaluate the solutions of some Ruby excercises I saw come across the Fort Worth Ruby Brigade group mail.

Basically, just run:

  ruby compare.rb one/solutions.rb

This will give you one benchmark, some results on the console and a results file in /one.

If you'd really like to give the solutions a whirl try:

  ruby compare.rb -n 1000 one/solutions.rb

This will perform 1000 benchmarks on the various solutions. (The order in which each solution is executed is randomized for each benchmark.)

If you've got ideas on how to make this do more, just holler. mark mcspadden at gmail
Something went wrong with that request. Please try again.