File: sequential-assignment

package info (click to toggle)
jekyll 3.9.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,604 kB
  • sloc: ruby: 15,325; javascript: 1,455; sh: 214; xml: 29; makefile: 7
file content (12 lines) | stat: -rwxr-xr-x 194 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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