summaryrefslogtreecommitdiff
path: root/jni/ruby/benchmark/bm_vm1_float_simple.rb
blob: d4581439ff057571051afa415bc48f87d7fcef86 (plain)
1
2
3
4
5
6
7
i = 0.0; f = 0.0
while i<30_000_000
  i += 1
  f += 0.1; f -= 0.1
  f += 0.1; f -= 0.1
  f += 0.1; f -= 0.1
end