File: single_vs_double_quotes.rb

package info (click to toggle)
ruby-excon 1.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,240 kB
  • sloc: ruby: 7,970; makefile: 5
file content (21 lines) | stat: -rw-r--r-- 336 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'rubygems'
require 'tach'

Tach.meter(1_000_000) do
  tach('double') do
    "path"
  end
  tach('single') do
    'path'
  end
end

#  [double, single]
#
#  +--------+----------+
#  | tach   | total    |
#  +--------+----------+
#  | single | 0.416340 |
#  +--------+----------+
#  | double | 0.416570 |
#  +--------+----------+