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)
This commit is contained in:
2019-08-24 17:00:14 +03:00
parent 4676019702
commit c0a3c9b65c
5 changed files with 54 additions and 7 deletions

View File

@ -9,3 +9,5 @@ class Space
return b
end
end
# 9.5 local
# 45 on pi

View File

@ -3,3 +3,6 @@ class Space
return 0
end
end
# 5.5 local
# 42 on pi

17
test/bench/rubyx/times.rb Normal file
View File

@ -0,0 +1,17 @@
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