Top Level Namespace
Defined Under Namespace
Modules: Niceql
Instance Method Summary collapse
-
#fast ⇒ Object
1 object.
- #fast_interpolation ⇒ Object
-
#slow_append ⇒ Object
2 + 1 = 3 object.
-
#slow_concat ⇒ Object
2 + 1 = 3 object.
-
#slow_plus ⇒ Object
2 + 1 = 3 object.
Instance Method Details
#fast ⇒ Object
1 object
19 20 21 |
# File 'lib/benchmark/cat.rb', line 19 def fast 'foo' 'bar' end |
#fast_interpolation ⇒ Object
23 24 25 |
# File 'lib/benchmark/cat.rb', line 23 def fast_interpolation "#{'foo'}#{'bar'}" end |
#slow_append ⇒ Object
2 + 1 = 3 object
14 15 16 |
# File 'lib/benchmark/cat.rb', line 14 def slow_append 'foo' << 'bar' end |
#slow_concat ⇒ Object
2 + 1 = 3 object
9 10 11 |
# File 'lib/benchmark/cat.rb', line 9 def slow_concat 'foo'.concat 'bar' end |
#slow_plus ⇒ Object
2 + 1 = 3 object
4 5 6 |
# File 'lib/benchmark/cat.rb', line 4 def slow_plus 'foo' + 'bar' end |