Created
June 21, 2016 13:45
-
-
Save chriskacerguis/b9344eabcfa7909bd080065c004da472 to your computer and use it in GitHub Desktop.
Single / Double quotes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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