Interesting but given the low total execution time, the majority of time in the numpy implementation is going to be spent initializing CPython.
I think if this were on the order of minutes/hours you would see numpy outperform.
I think if this were on the order of minutes/hours you would see numpy outperform.
https://narimiran.github.io/2018/05/10/python-numpy-nim.html
https://github.com/mratsim/Arraymancer