# Article - How fast is your programming language

**URL:** https://discourse.julialang.org/t/article-how-fast-is-your-programming-language/108405
**Category:** Offtopic
**Created:** [January 5, 2024, 7:15pm UTC](https://discourse.julialang.org/t/article-how-fast-is-your-programming-language/108405 "2024-01-05T19:15:33Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![djholiver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djholiver/32/50470_2.png) [@djholiver](https://discourse.julialang.org/u/djholiver)
#### Post date: [January 5, 2024, 7:15pm UTC](https://discourse.julialang.org/t/article-how-fast-is-your-programming-language/108405/1 "2024-01-05T19:15:33Z")

</div>

Hi,

I’m sure some will find [this](https://devclass.com/2024/01/04/how-fast-is-your-programming-language-new-contest-and-benchmarks-spark-debate/) interesting.

The last paragraph: "Python remains one of the two most used scripting languages despite its poor performance,” the developer reflects. “Will there be a language to displace Python in the next decade? I am not optimistic.” " and lack of Julia representation is “upsetting” if nothing else.

Regards,

---

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [January 5, 2024, 7:23pm UTC](https://discourse.julialang.org/t/article-how-fast-is-your-programming-language/108405/3 "2024-01-05T19:23:03Z")

</div>

(I set a time limit on this thread because general questions like “when will Python get replaced” otherwise cycle around endlessly.)

---

<div class="post-metadata">

### Author: ![Dan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dan/32/42581_2.png) [@Dan](https://discourse.julialang.org/u/Dan)
#### Post date: [January 5, 2024, 7:25pm UTC](https://discourse.julialang.org/t/article-how-fast-is-your-programming-language/108405/4 "2024-01-05T19:25:58Z")

</div>

This is not a “replace Python” thread. I think this is a “language comparison benchmark” thread. The correct link would be:

> **[GitHub - attractivechaos/plb2: A programming language benchmark](https://github.com/attractivechaos/plb2)**
>
> A programming language benchmark. Contribute to attractivechaos/plb2 development by creating an account on GitHub.

And it does include Julia. Unfortunately Julia not given a lot of love.

---

<div class="post-metadata">

### Author: ![jar1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jar1](https://discourse.julialang.org/u/jar1)
#### Post date: [January 5, 2024, 7:30pm UTC](https://discourse.julialang.org/t/article-how-fast-is-your-programming-language/108405/5 "2024-01-05T19:30:16Z")

</div>

Imho the “Conclusions” section of that benchmark were written too early, before code review from all the language experts. We’ve already seen huge speedups from simple changes like fixing the loop order to match the array layout, and more changes are in the pipeline.

---

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [January 5, 2024, 11:12pm UTC](https://discourse.julialang.org/t/article-how-fast-is-your-programming-language/108405/6 "2024-01-05T23:12:21Z")

</div>

3 posts were split to a new topic: [Billion-row benchmark?](https://discourse.julialang.org/t/billion-row-benchmark/108417)

---

<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: [January 5, 2024, 8:05pm UTC](https://discourse.julialang.org/t/article-how-fast-is-your-programming-language/108405/7 "2024-01-05T20:05:25Z")

</div>

I’m a bit confused. Julia was there in the plot, with performance results basically tied with the other top performers 🤷

---

<div class="post-metadata">

### Author: ![Benny](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Benny](https://discourse.julialang.org/u/Benny)
#### Post date: [January 5, 2024, 8:39pm UTC](https://discourse.julialang.org/t/article-how-fast-is-your-programming-language/108405/8 "2024-01-05T20:39:47Z")

</div>

I was wondering how Pypy got into the top ranks and my hunch was right, no classes. The benchmarks didn’t need composite types that much I suppose. Still impressive how far JITs have come, though.

---

<div class="post-metadata">

### Author: ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)
#### Post date: [January 5, 2024, 9:13pm UTC](https://discourse.julialang.org/t/article-how-fast-is-your-programming-language/108405/9 "2024-01-05T21:13:02Z")

</div>

I get 1.95 sec. something like 24% speedup for the matmul if I run in the REPL (and add `@simd`), partial timing here:

```julia
@time a = matgen(n)
0.005693 seconds (2 allocations: 17.166 MiB)

@time c = matmul(n, a, b);
  1.932954 seconds (2 allocations: 17.166 MiB)

```

So it’s worth it to AOT compile at least that one. And the for loops need to be split in two, i.e. dual-for loop doesn’t take `@simd` but maybe should?

And I’m unclear why to I get 2, not one allocation each?

---

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [January 8, 2024, 1:00pm UTC](https://discourse.julialang.org/t/article-how-fast-is-your-programming-language/108405/10 "2024-01-08T13:00:08Z")

</div>

This topic was automatically closed after 2 days. New replies are no longer allowed.
