# Why is julia slowest here?

**URL:** https://discourse.julialang.org/t/why-is-julia-slowest-here/77479
**Category:** Performance
**Tags:** performance
**Created:** [March 6, 2022, 4:14pm UTC](https://discourse.julialang.org/t/why-is-julia-slowest-here/77479 "2022-03-06T16:14:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![matic\_lauko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/matic_lauko/32/27770_2.png) [@matic\_lauko](https://discourse.julialang.org/u/matic_lauko)
#### Post date: [March 6, 2022, 4:14pm UTC](https://discourse.julialang.org/t/why-is-julia-slowest-here/77479/1 "2022-03-06T16:14:13Z")

</div>

[https://github.com/niklas-heer/speed-comparison](https://github.com/niklas-heer/speed-comparison)  
I tried to convince my friend that Julia is faster than python, he googled it and found this(above), why is it that python is faster than Julia, and even JS. Is it something with code, or version?

---

<div class="post-metadata">

### Author: ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)
#### Post date: [March 6, 2022, 4:17pm UTC](https://discourse.julialang.org/t/why-is-julia-slowest-here/77479/2 "2022-03-06T16:17:39Z")

</div>

[https://github.com/niklas-heer/speed-comparison/issues/8](https://github.com/niklas-heer/speed-comparison/issues/8)

---

<div class="post-metadata">

### Author: ![DNF](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dnf/32/10191_2.png) [@DNF](https://discourse.julialang.org/u/DNF)
#### Post date: [March 6, 2022, 4:38pm UTC](https://discourse.julialang.org/t/why-is-julia-slowest-here/77479/3 "2022-03-06T16:38:08Z")

</div>

It’s not a proper language comparison. It consists of a single short piece of code, which also ignores all good practice for writing code. It just shows that if you don’t know a language, you can write slow code in that language 🤷

---

<div class="post-metadata">

### Author: ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)
#### Post date: [March 6, 2022, 4:38pm UTC](https://discourse.julialang.org/t/why-is-julia-slowest-here/77479/4 "2022-03-06T16:38:54Z")

</div>

For a little bit of context, this repo includes startup time, which wouldn’t be a major problem, except that after putting the code in a function, the entire program takes 133 ms, and the startup of Julia takes 106ms. It’s true that this means Julia may not be the best choice for repeatedly launching very short running scripts, but that often isn’t the metric you care about.

---

<div class="post-metadata">

### Author: ![FrancisKing](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/francisking/32/24966_2.png) [@FrancisKing](https://discourse.julialang.org/u/FrancisKing)
#### Post date: [March 6, 2022, 7:47pm UTC](https://discourse.julialang.org/t/why-is-julia-slowest-here/77479/5 "2022-03-06T19:47:20Z")

</div>

For added amusement, Rust is way slower than Go.

That’s unexpected …

 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/0/70bde27615bcbda1aade3a34ea9a7bb8f6e18b0c.png)
