The Computer Language
Benchmarks Game

Julia versus C gcc fastest programs

Always look at the source code.

These are only the fastest programs. Do some of them use manually vectorized SIMD? Look at the other programs. They may seem more-like a fair comparison to you.

n-body
source secs mem gz busy cpu load
Julia 4.00 212,108 1112 4.30 99% 3% 3% 3%
C gcc 4.30 8 1391 4.32 0% 0% 0% 100%
fannkuch-redux
source secs mem gz busy cpu load
Julia 7.96 197,292 1067 30.06 94% 95% 94% 94%
C gcc 7.52 836 910 29.37 99% 100% 93% 99%
mandelbrot
source secs mem gz busy cpu load
Julia 1.38 235,276 621 4.78 83% 83% 83% 99%
C gcc 1.27 31,692 1135 5.08 100% 100% 100% 99%
k-nucleotide
source secs mem gz busy cpu load
Julia 4.66 360,436 945 10.68 39% 52% 53% 85%
C gcc 3.81 130,112 1506 12.18 54% 87% 79% 100%
pidigits
source secs mem gz busy cpu load
Julia 1.00 168,088 506 1.31 11% 99% 11% 10%
C gcc 0.73 2,848 416 0.75 1% 100% 1% 0%
spectral-norm
source secs mem gz busy cpu load
Julia 1.23 180,836 521 3.87 73% 71% 91% 80%
C gcc 0.72 1,100 569 2.86 100% 99% 100% 100%
reverse-complement
source secs mem gz busy cpu load
Julia 1.50 671,028 522 1.77 7% 9% 96% 7%
C gcc 0.86 698,264 820 1.27 1% 18% 100% 28%
regex-redux
source secs mem gz busy cpu load
Julia 1.75 384,588 759 3.10 6% 67% 93% 12%
C gcc 0.80 152,196 1397 2.03 48% 100% 54% 53%
fasta
source secs mem gz busy cpu load
Julia 1.72 354,912 1182 4.90 79% 75% 63% 69%
C gcc 0.78 1,220 1463 0.79 1% 0% 0% 100%
binary-trees
source secs mem gz busy cpu load
Julia 9.67 604,312 372 29.97 75% 84% 72% 78%
C gcc 1.79 168,760 809 5.35 64% 64% 71% 100%
Julia

julia version 1.5.0

C gcc

gcc (Ubuntu 10.2.0-13ubuntu1) 10.2.0