From: Daniel Carrera Date: 2003-01-23T04:53:11+09:00 Subject: Re: Single vs double quotes and performance? On Thu, Jan 23, 2003 at 03:40:22AM +0900, E F van de Laar wrote: > Is my nitpicking going to help me out in the long run or am I just > waisting my time here. This minor issue has been itching my brain > for a while now. :) $ cat single_quotes 100_000.times { puts 'Hello World' } $ cat double_quotes 100_000.times { puts "Hello World" } $ time ruby single_quotes [snip] real 0m22.812s user 0m2.220s sys 0m1.660s $ time ruby double_quotes real 0m21.614s user 0m2.100s sys 0m1.600s The significant measure is 'user'. You can expect to save 0.1 seconds after printing 100 thousand strings. I hope this helps. :) -- Daniel Carrera Graduate Teaching Assistant. Math Dept. University of Maryland. (301) 405-5137