mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-09 06:58:01 -05:00
8 lines
169 B
Ruby
Executable File
8 lines
169 B
Ruby
Executable File
#!/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
|