On Sep 25, 2006, at 12:03 PM, Rich Morin wrote:

> Use '' by default:
>
>   -  It's less work for the interpreter.

What makes you say this?

#!/usr/bin/env ruby -w

require "benchmark"

TESTS = 1_000_000
Benchmark.bmbm(10) do |results|
   results.report("double:") { TESTS.times { "James" } }
   results.report("single:") { TESTS.times { 'James' } }
end
# >> Rehearsal ---------------------------------------------
# >> double:     0.270000   0.000000   0.270000 (  0.267826)
# >> single:     0.260000   0.000000   0.260000 (  0.266784)
# >> ------------------------------------ total: 0.530000sec
# >>
# >>                 user     system      total        real
# >> double:     0.270000   0.000000   0.270000 (  0.268957)
# >> single:     0.290000   0.000000   0.290000 (  0.286691)

James Edward Gray II