Just for the sake of comprehensiveness, I ran your Python benchmark through the Numba JIT library (which uses the same underlying LLVM infrastructure that Julia does) and on my computer the Python code is faster than Julia by 68%. Vanilla CPython is terrible for this kind of simple explicit loop code, but Numba and other JIT libraries largely solve that issue with minimal effort as long as the code is simple enough. That by no means solves all of Python's issues in the context of numerical programming and I'm sure the Julia benchmark could be improved as others have already mentioned, but benchmarking Python this way isn't necessarily representative of how a performance-conscious programmer would reasonably approach a problem of this kind.
- [julia-users] Re: A Very Simple... Zhong Pan
- [julia-users] Re: A Very Simple... Jeffrey Sarnoff
- [julia-users] Re: A Very Simple... Ferran Mazzanti
- [julia-users] Re: A Very Simple... Andreas Lobinger
- [julia-users] Re: A Very Simple... Chris Rackauckas
- [julia-users] Re: A Very Simple Benchmark fo... Zhong Pan
- [julia-users] Re: A Very Simple Benchmark fo... Sisyphuss
- [julia-users] Re: A Very Simple Benchmar... Andreas Lobinger
- [julia-users] Re: A Very Simple Benchmark for Brutal-forc... Zhong Pan
- [julia-users] Re: A Very Simple Benchmark for Brutal... Chris Rackauckas
- [julia-users] Re: A Very Simple Benchmark for Brutal-forc... dextorious
- [julia-users] Re: A Very Simple Benchmark for Brutal-forc... Zhong Pan
- Re: [julia-users] Re: A Very Simple Benchmark for Br... Tim Holy
- Re: [julia-users] Re: A Very Simple Benchmark fo... dextorious
- Re: [julia-users] Re: A Very Simple Benchmar... hustf
- Re: [julia-users] Re: A Very Simple Benc... Eric Forgy
- Re: [julia-users] Re: A Very Simple... Sisyphuss
- Re: [julia-users] Re: A Very Simple... Zhong Pan
- Re: [julia-users] Re: A Very Si... Stefan Karpinski
