On Sunday, August 23, 2015 at 1:01:28 AM UTC+2, Michael Wang wrote: > > I am new to Julia. I heard that Julia has the performance with Cpp even > though it is a high level language. I tested an example on my machine, > however, the result was that Julia was in the same ballpark with R not with > Cpp. Here is my codes. >
In my experience, Julia definitely can be as fast as C and C++, but it takes learning how to do things in a "Julian" way, and learning that types are your friends. As other people have noted, just copying code in another language to Julia may not get you good results.