require 'benchmark'iterations = 1000000b = Benchmark.measure do for i in 1..iterations do x = i endendc = Benchmark.measure do iterations.times do |i| x = i endendputs bputs c