File tree Expand file tree Collapse file tree 2 files changed +0
-46
lines changed Expand file tree Collapse file tree 2 files changed +0
-46
lines changed Original file line number Diff line number Diff line change @@ -56,28 +56,6 @@ Idioms
5656
5757### General
5858
59- ##### Parallel Assignment vs Sequential Assignment [ code] ( code/general/assignment.rb )
60-
61- [ Read the rationale here] ( https://github.com/JuanitoFatas/fast-ruby/pull/50#issue-98586885 ) .
62-
63- ```
64- $ ruby -v code/general/assignment.rb
65- ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
66-
67- Calculating -------------------------------------
68- Parallel Assignment 149.201k i/100ms
69- Sequential Assignment
70- 142.545k i/100ms
71- -------------------------------------------------
72- Parallel Assignment 7.687M (± 6.9%) i/s - 38.345M
73- Sequential Assignment
74- 6.320M (± 8.5%) i/s - 31.360M
75-
76- Comparison:
77- Parallel Assignment: 7686954.1 i/s
78- Sequential Assignment: 6320425.6 i/s - 1.22x slower
79- ```
80-
8159##### ` attr_accessor ` vs ` getter and setter ` [ code] ( code/general/attr-accessor-vs-getter-and-setter.rb )
8260
8361> https://www.omniref.com/ruby/2.2.0/files/method.h?#annotation=4081781&line=47
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments