summaryrefslogtreecommitdiff
path: root/benchmark/bm_vm1_swap.rb
blob: 611baf6b99133646cdc61919bd03ea8fa3369315 (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