{"action":"opened","issue":{"url":"https://api.github.com/repos/bbatsov/ruby-style-guide/issues/472","labels_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/issues/472/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/issues/472/comments","events_url":"https://api.github.com/repos/bbatsov/ruby-style-guide/issues/472/events","html_url":"https://github.com/bbatsov/ruby-style-guide/issues/472","id":100624004,"number":472,"title":"Parallel assignment is actually faster than sequential assignment","user":{"login":"yous","id":853977,"avatar_url":"https://avatars.githubusercontent.com/u/853977?v=3","gravatar_id":"","url":"https://api.github.com/users/yous","html_url":"https://github.com/yous","followers_url":"https://api.github.com/users/yous/followers","following_url":"https://api.github.com/users/yous/following{/other_user}","gists_url":"https://api.github.com/users/yous/gists{/gist_id}","starred_url":"https://api.github.com/users/yous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yous/subscriptions","organizations_url":"https://api.github.com/users/yous/orgs","repos_url":"https://api.github.com/users/yous/repos","events_url":"https://api.github.com/users/yous/events{/privacy}","received_events_url":"https://api.github.com/users/yous/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-12T20:07:35Z","updated_at":"2015-08-12T20:07:35Z","closed_at":null,"body":"https://github.com/JuanitoFatas/fast-ruby#parallel-assignment-vs-sequential-assignment-code\r\n\r\n> **Parallel Assignment vs Sequential Assignment [code](https://github.com/JuanitoFatas/fast-ruby/blob/master/code/general/assignment.rb)**\r\n>\r\n> [Read the rationale here](https://github.com/JuanitoFatas/fast-ruby/pull/50#issue-98586885).\r\n>\r\n> ``` sh\r\n> $ ruby -v code/general/assignment.rb\r\n> ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]\r\n>\r\n> Calculating -------------------------------------\r\n>  Parallel Assignment   149.201k i/100ms\r\n> Sequential Assignment\r\n>                        142.545k i/100ms\r\n> -------------------------------------------------\r\n>  Parallel Assignment      7.687M (± 6.9%) i/s -     38.345M\r\n> Sequential Assignment\r\n>                           6.320M (± 8.5%) i/s -     31.360M\r\n>\r\n> Comparison:\r\n>  Parallel Assignment:  7686954.1 i/s\r\n> Sequential Assignment:  6320425.6 i/s - 1.22x slower\r\n> ```"}}