Julia slower than Matlab & Python? No

@jlperla code combined from various users here on Discourse
Julia Original
Julia Simple
Julia Fastest

“Simple” is much easier to understand than the original code & for every order size is faster than Matlab/Numpy/R.
“Fastest” is even faster, but I don’t find it easy to follow.
PS: I’m sure “Fastest” can be optimized a lot more
PPS: I got PyTorch to work on my mac (not TF yet)
“Fastest” is faster than PyTorch which is faster than “Simple”

Speed on my machine.
image

14 Likes