Why is Julia slower than Python?

  Рет қаралды 606

EKB PhD

EKB PhD

8 ай бұрын

I demonstrate that Python is quicker than Julia when finding neighboring words of a user-specified target word.
Here's my Python script:
github.com/ekbrown/scripting_...
And here's my Julia script:
github.com/ekbrown/scripting_...

Пікірлер: 11
@bobdieter5296
@bobdieter5296 2 ай бұрын
Hey, do you have the code for this test somewhere publicly visible, like Github? I would like to see (in a bit more detail) what was benchmarked here.
@ekbphd3200
@ekbphd3200 2 ай бұрын
Sure. I previously forgot to link to my scripts. I just changed the description of the video to include links to my two scripts. Thanks for pointing this out!
@georgerogers1166
@georgerogers1166 7 ай бұрын
Specialize the dict. Any is slow, and you don't need the dynamism.
@ekbphd3200
@ekbphd3200 6 ай бұрын
Thanks for this tip too!
@fabricehategekimana5350
@fabricehategekimana5350 6 ай бұрын
To be fair, Julia is faster in the long run. I saw this difference when I train machine learning model that take minimum +30 min to run. Julia is kinda slow for quick calculation to the point it becom frustrating
@ekbphd3200
@ekbphd3200 6 ай бұрын
Thanks for the tip!
@Runwithme418
@Runwithme418 8 ай бұрын
This dude is so smart! I wish I could Python like him!
@ekbphd3200
@ekbphd3200 8 ай бұрын
Did you use Python as a verb?! Awesome!
@Runwithme418
@Runwithme418 8 ай бұрын
@@ekbphd3200 😆
@edemkumah5248
@edemkumah5248 6 ай бұрын
I'm sure some will believe this to be true. It's the internet after all.
@ekbphd3200
@ekbphd3200 5 ай бұрын
Hard to believe, right? The specific task used to benchmark the languages seems to make a difference on whether Python or Julia is faster.
Python glob vs os.walk
7:53
EKB PhD
Рет қаралды 133
Mo Bitar - Rust vs Julia in scientific computing
7:43
Scientific Computing in Rust
Рет қаралды 5 М.
Пранк пошел не по плану…🥲
00:59
Саша Квашеная
Рет қаралды 6 МЛН
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
Rob Mulla
Рет қаралды 264 М.
Why is Mojo's dictionary slower (!) than Python's?
12:16
EKB PhD
Рет қаралды 4 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 391 М.
Python is getting faster
7:50
EKB PhD
Рет қаралды 204
How I'd Learn AI (If I Had to Start Over)
15:04
Thu Vu data analytics
Рет қаралды 762 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 823 М.
What is Different About the Julia Programming Language? | Stefan Karpinski | JuliaHEP 2023
45:36
Modern Python logging
21:32
mCoding
Рет қаралды 167 М.
FASTEST Way To Learn Coding and ACTUALLY Get A Job
10:44
Brian Cache
Рет қаралды 1 МЛН