Speed race: Julia vs. python. Who will win??

preview_player
Показать описание
Demonstration of optimizers coded in both Julia and python in jupyter notebooks. Then, run the same code as a script to see which is faster.
Рекомендации по теме
Комментарии
Автор

Yeah I just converted some Laplacian code on graphs. My Python version was literally as optimized as I could get with numpy etc. Julia on my first try without any optimizations was more than twice as fast. And that was on pretty small data. Amazing.

InfiniteQuest
Автор

This video might be the main cause of me seriously considering Julia for my numerical simulations. Yes, I could vectorise a lot of my loops or use numba, but Julia seems much more clear. Thanks alot for this wonderful comparison!!

farbhy
Автор

These speed races are very intriguing, I wonder what causes the differences? I am guessing it because of the numerical libraries are different... but is the actual math solutions slightly different? And how would Mojo compare to Julia?

sdsa
Автор

Hello,
About optimisation concerns I read that Julia speed can really increase its speed using arrays, s-vectors, typed inputs and also by desabling array bounds checking. The book is called Julia HPC.
Thanks for this comparaison,
Cheers !

romanlf
Автор

I’ve just decided to learn Julia myself. Thanks

DonaldHawk
Автор

Have you tried more recent Julia versions? 1.0 is quite old

tthomas
Автор

That's the problem with python, it's just to damn slow. If you want to get it fast then you have to use numpy, cupy or numba with all the complications that go along with it.

prietjepruck
Автор

I was not prepared for the crap tier mic. Pro tip: your phone's mic is probably the best in your building, together with any other phones, so you can record the audio on that and add it in post.

nextlifeonearth
Автор

Why nobody talks about how slow julia is when you need to plot something ? I mostly work on small codes that need plots and every time i give a shot at julia i end up being disapointed. Okay julia compute your code 50x faster than python but show your plot 100x slower. Overall julia is slower than python in my case...

alexandredemasure