# Julia needs work at "Benchmark Game": numbers seem off up to 100x slower, maybe "Julia AOT" entries needed?

**URL:** https://discourse.julialang.org/t/julia-needs-work-at-benchmark-game-numbers-seem-off-up-to-100x-slower-maybe-julia-aot-entries-needed/17915
**Category:** Community
**Created:** [November 23, 2018, 4:39pm UTC](https://discourse.julialang.org/t/julia-needs-work-at-benchmark-game-numbers-seem-off-up-to-100x-slower-maybe-julia-aot-entries-needed/17915 "2018-11-23T16:39:09Z")
**Posts on this page:** 1
**Showing post:** 7

<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: [November 23, 2018, 5:40pm UTC](https://discourse.julialang.org/t/julia-needs-work-at-benchmark-game-numbers-seem-off-up-to-100x-slower-maybe-julia-aot-entries-needed/17915/7 "2018-11-23T17:40:39Z")

</div>

I reordered by the cpu column (the last time column), to show more clearly, how these same languages/best implementations would rank if none of the entries where multi-threaded (or where we could be with, just that change, assuming linear speed-up), i.e. then we beat Ruby in the first benchmark…:

> **[k-nucleotide - Which programs are fastest? (Benchmarks Game)](https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/knucleotide.html)**
>
> k-nucleotide - Which programs are fastest? — How fast programs repeatedly update hashtables and k-nucleotide strings.

1.0 C++ g++ #2 3.83 156,104 1624 12.00 72% 73% 98% 72%  
4.5 Lisp SBCL #6 17.37 541,992 2479 62.93 89% 88% 87% 100%  
21 Python 3 #3 79.79 250,948 1967 5 min 98% 96% 96% 99%

100 Julia 6 min 1,584,956 870 6 min 2% 32% 56% 15%  
81 Matz’s Ruby 5 min 126,652 637 16 min 95% 68% 84% 81%

Go’s advantage is much less, about 100$ faster:

> **[mandelbrot - Which programs are fastest? (Benchmarks Game)](https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/mandelbrot.html)**
>
> mandelbrot - Which programs are fastest? — How fast programs generate a Mandelbrot set and write a portable bitmap.

3.3 Go #4 5.47 31,040 905 21.73 99% 99% 100% 99%

27 Julia 44.10 179,004 483 44.41 99% 0% 0% 1%

> **[binary-trees - Which programs are fastest? (Benchmarks Game)](https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/binarytrees.html)**
>
> binary-trees - Which programs are fastest? — How fast programs allocate and deallocate many many binary trees.

1.0 C gcc #3 3.72 117,408 836 11.80 76% 95% 75% 72%  
1.0 C++ g++ #9 3.67 118,620 809 11.91 75% 78% 99% 76%

4.2 Fortran Intel #2 15.35 101,984 1148 15.34 0% 0% 1% 100%  
7.6 Dart 27.97 896,244 457 31.46 8% 20% 17% 71%  
4.1 Chapel #2 15.10 361,908 470 47.92 100% 56% 73% 92%  
21 VW Smalltalk 76.53 375,276 744 76.44 42% 0% 0% 58%  
8.6 VW Smalltalk #3 31.71 375,520 959 79.03 55% 57% 72% 67%

26 Julia 96.71 710,224 436 96.91 0% 0% 0% 100%  
17 JRuby #5 60.98 2,336,824 1083 224.55 92% 92% 95% 91%  
18 PHP #6 66.56 736,600 868 244.42 94% 92% 91% 96%  
25 Python 3 92.72 448,844 589 5 min 87% 90% 96% 87%

The low-hanging fruit seems to involve multi-threading.

[https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/spectralnorm-julia-1.html](https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/spectralnorm-julia-1.html)  
1.0 Rust #6 1.97 2,600 1126 7.86 100% 100% 100% 99%  
1.0 C gcc #4 1.98 1,160 1139 7.86 99% 99% 99% 99%  
1.0 Fortran Intel #3 1.98 1,684 638 7.89  
2.0 Lisp SBCL #5 4.00 19,368 899 15.73 99% 99% 99% 99%  
2.1 Haskell GHC #4 4.17 3,812 987 15.74 99% 97% 99% 98%

8.2 Julia 16.20 146,932 440 16.49 1% 1% 100% 1%  
8.2 Dart #5 16.16 120,132 489 16.64 2% 2% 99% 2%

> **[fannkuch-redux - Which programs are fastest? (Benchmarks Game)](https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/fannkuchredux.html)**
>
> fannkuch-redux - Which programs are fastest? — How fast programs repeatedly access a tiny integer-sequence.

1.0 C gcc #5 8.72 916 910 34.23 100% 100% 95% 99%

6.2 Julia 54.40 148,160 565 54.59 100% 0% 0% 1%  
2.1 Java 17.91 31,560 1282 70.25 99% 98% 99% 97%  
2.0 Go 17.83 1,480 900 71.04 100% 100% 100% 100%  
3.0 Java AOT 25.93 8,488 1282 103.26 99% 100% 100% 100%

> **[regex-redux - Which programs are fastest? (Benchmarks Game)](https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/regexredux.html)**
>
> regex-redux - Which programs are fastest? — How fast programs match DNA 8-mers and substitute magic patterns.

1.8 PHP 2.63 270,048 816 2.46 38% 39% 85% 38%  
[…]  
4.0 Julia 5.88 349,980 541 6.16 2% 3% 100% 2%

---

_[View the full topic](https://discourse.julialang.org/t/julia-needs-work-at-benchmark-game-numbers-seem-off-up-to-100x-slower-maybe-julia-aot-entries-needed/17915)._
