Skip to content

Instantly share code, notes, and snippets.

@chriskacerguis
Created June 21, 2016 13:45
Show Gist options
  • Select an option

  • Save chriskacerguis/b9344eabcfa7909bd080065c004da472 to your computer and use it in GitHub Desktop.

Select an option

Save chriskacerguis/b9344eabcfa7909bd080065c004da472 to your computer and use it in GitHub Desktop.
Single / Double quotes
require 'benchmark/ips'
GC.disable
Benchmark.ips do |x|
x.report("double_quotes") { "a" }
x.report("single_quotes") { 'a' }
x.compare!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment