rubyx/test/bench/ruby/hello.rb
Torsten 6b1c316f04 add simple loop bench
fiddled with run numbers a bit
recording times with noop removed
results slightly worse than hoped
2019-07-31 21:18:03 +03:00

9 lines
162 B
Ruby

counter = 10000;
while(counter > 0) do
puts "Hello there"
# roughly 4 times slower with this, which is like rubyx
STDOUT.flush
counter = counter - 1
end