diff --git a/benchmark/symbol-to-proc b/benchmark/symbol-to-proc new file mode 100644 index 00000000..bc08b2f2 --- /dev/null +++ b/benchmark/symbol-to-proc @@ -0,0 +1,6 @@ +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