Revision 31bdcdbc764ddc63dee6a1a6290f00a46167fe8e authored by jekyllbot on 21 March 2018, 23:10:07 UTC, committed by jekyllbot on 21 March 2018, 23:10:07 UTC
1 parent 33f59ae
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