summaryrefslogtreecommitdiff
path: root/benchmark/bm_vm1_swap.rb
blob: 918f8b2112a9186da8b083b3150da4667ca1e986 (plain)
1
2
3
4
5
6
7
8
a = 1
b = 2
i = 0
while i<30_000_000 # while loop 1
  i += 1
  a, b = b, a
end