Skip to content

Instantly share code, notes, and snippets.

View gaffneyc's full-sized avatar

Chris Gaffney gaffneyc

  • Dead Man's Snitch
  • Holland, MI
View GitHub Profile
require 'benchmark'
N = 100_000
a = []
100.times { a << (rand(10) > 5 ? true : false) }
Benchmark.bm(35) { |x|
x.report("String#to_i(base)") {