Revision 68dee159c57baea40a3e936e91082a62d56c69bf authored by jekyllbot on 07 February 2018, 10:11:47 UTC, committed by jekyllbot on 07 February 2018, 10:11:47 UTC
1 parent 4c9166a
Raw File
symbol-to-proc
#!/usr/bin/env ruby
require 'benchmark/ips'

Benchmark.ips do |x|
  x.report('block')  { (1..100).map { |i| i.to_s } }
  x.report('&:to_s') { (1..100).map(&:to_s) }
end
back to top