Skip to content

Commit 9e2b29c

Browse files
committed
Link assignment to pull request, update result with Ruby 2.2.2
[ci skip]
1 parent 2f08296 commit 9e2b29c

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,24 @@ Idioms
4646

4747
##### Parallel Assignment vs Sequential Assignment [code](code/general/assignment.rb)
4848

49+
[Read the rationale here](https://github.com/JuanitoFatas/fast-ruby/pull/50#issue-98586885).
50+
4951
```
5052
$ ruby -v code/general/assignment.rb
51-
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin13]
53+
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
5254
5355
Calculating -------------------------------------
54-
Parallel Assignment 103.520k i/100ms
56+
Parallel Assignment 149.201k i/100ms
5557
Sequential Assignment
56-
105.474k i/100ms
58+
142.545k i/100ms
5759
-------------------------------------------------
58-
Parallel Assignment 7.049M2.7%) i/s - 35.300M
60+
Parallel Assignment 7.687M6.9%) i/s - 38.345M
5961
Sequential Assignment
60-
6.159M2.3%) i/s - 30.798M
62+
6.320M8.5%) i/s - 31.360M
6163
6264
Comparison:
63-
Parallel Assignment: 7048523.9 i/s
64-
Sequential Assignment: 6159203.7 i/s - 1.14x slower
65+
Parallel Assignment: 7686954.1 i/s
66+
Sequential Assignment: 6320425.6 i/s - 1.22x slower
6567
```
6668

6769
##### `begin...rescue` vs `respond_to?` for Control Flow [code](code/general/begin-rescue-vs-respond-to.rb)

0 commit comments

Comments
 (0)