Trivial for loop inner loop timings:
- Oak
std.loop
: 1.7µs - Python 3.10
for i in range(...)
: 0.12µs
Python can iterate through all 32-bit ints in around 8 minutes; Oak can do it in around 2 hours. (A well-optimized compiled program should take no more than a few seconds.)
Seems right — the Oak-Python gap narrows with more complex programs.