Is it fair to say in summary (that for this specific GA example):

- Using a Real type makes the Julia code 10x slower than C++
- Using a Float32 type makes the Julia code 2x faster than C++ (with no 
other optimizations.)

As a side note: @Michael: how long have you been using Julia?


On Monday, July 7, 2014 1:27:49 PM UTC+10, Michael Louwrens wrote:
>
> Glad the confusion is settled!
> Sorry that it was worded so poorly! 
>
> I was interested to see how much of a slowdown was introduced by using oop 
> style functions. 
>
> Surprisingly the slowdown was only around 15% when the functions were 
> declared in a similar style to below. 
>
>
> Type atype 
>   Bar::function 
>   Function atype()
>     This = new() 
>     Function foo()  
>      ... 
>     End 
>     Function foo(in::int) 
>      ... 
>     End
>     This.bar = foo
>     Return This
>   End
> End
>
>

Reply via email to