rubyx/test/bench/rubyx/times.rb
Torsten Rüger c0a3c9b65c block version of loop
no debugging, just worked!
only about 10% slower, nice
also recording qemu-linux times, which are a lot faster(and double bonus, save the startup/syncing)
2019-08-24 17:00:59 +03:00

18 lines
207 B
Ruby

class Space
def times(n)
i = 0
while( i < n )
yield
i = i + 1
end
return n
end
def main(arg)
return times(100000) {
return 1
}
end
end
# 13 local
# 51 on pi