Julia significantly slower than Matlab for simple sin(x) loop – am I doing something wrong?

As I wrote in another thread, comparing to optimized library routines (like a vectorized sin(array) call) is not particularly interesting except to verify that Julia can produce good compiled code. Where you hope to get significant performance improvements is in cases where you have to write new performance-critical code, not simply call one or two library functions.

3 Likes