Revision 2ac6397368d6d6b9b0ff7295a582a8c839d8fb76 authored by olivia on 25 February 2018, 17:00:42 UTC, committed by olivia on 25 February 2018, 17:01:09 UTC
1 parent 08b222b
Raw File
sequential-assignment
#!/usr/bin/env ruby
require 'benchmark/ips'

Benchmark.ips do |x|
  x.report('parallel assignment') do
    a, b = 1, 2
  end
  x.report('multi-line assignment') do
    a = 1
    b = 2
  end
end
back to top