3 ms·
I think it is just pure python I don't know about mojo, but they seem to import python module for this benchmark. https://github.com/modularml/mojo/blob/5ce18
by elashri 3y ago
I think it is just pure python
I don't know about mojo, but they seem to import python module for this benchmark.
https://github.com/modularml/mojo/blob/5ce18c47a27c0c4123de1e5860f79b31d15df116/examples/matmul.mojo#L23C26-L23C26 https://github.com/modularml/mojo/blob/5ce18c47a27c0c4123de1...
And for some reason they don't compare against NumPy
https://github.com/modularml/mojo/blob/5ce18c47a27c0c4123de1e5860f79b31d15df116/examples/pymatmul.py#L41 https://github.com/modularml/mojo/blob/5ce18c47a27c0c4123de1...
What would be more interesting is to use NumPy and do the vectorized opreations.
- almostdigital 3y agoI did just that, it's 120x faster than numpy. See my comment to OP.