3 ms·
I know nothing about low-level optimizations, but I love playing with different methods and benchmarks. And did try Mojo through their playground. I found it a
by TheAlchemist 3y ago
I know nothing about low-level optimizations, but I love playing with different methods and benchmarks. And did try Mojo through their playground. I found it a bit more complicated than anticipated (well, I did believe it's just like python but much faster...) but also very impressive speed.
It's impossible to say for sure, since you can't run the benchmark on your machine and god knows what's behind the playground. However, I compared my naive implementation to find min of a rolling mean using python with numba, pandas, polars, numpy and mojo version.
Mojo version was faster than polars and numpy, which in turn were faster than pandas and numba.
That's my N=1 of course, and not a reliable benchmark. But still, I find it very impressive.