Skip to content

Instantly share code, notes, and snippets.

@evanphx
Created April 14, 2009 16:56
Show Gist options
  • Save evanphx/95287 to your computer and use it in GitHub Desktop.
Save evanphx/95287 to your computer and use it in GitHub Desktop.
sark :: git/rbx » ruby benchmark/rubinius/squeeze.rb
0.140000 0.000000 0.140000 ( 0.145140)
sark :: git/rbx » bin/rbx benchmark/rubinius/squeeze.rb
8.524932 0.000000 8.524932 ( 8.524940)
require 'benchmark'
s = "/"
many = 100_000
puts Benchmark.measure {
many.times do
s.squeeze("/")
end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment