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