Unusual slow Julia code compared to C++?

OK, thanks :slight_smile: interesting observations, I also did few optimizations to C++ code and results are (using simulation length 1000): C++ (GCC 8.3) 280 ms, Julia (v1.1.1) 240 ms. Perhaps both codes could be optimized a little more, but results are very good and Julia has potential to solve two-languages problem at this case. Julia code now is a bit longer but still shorter than C++. Now Julia with faster debugger would be a nice candidate for replacing MATLAB/Python for prototyping. :wink:

5 Likes

Yet again :slight_smile:

2 Likes