The Computer Language
22.01 Benchmarks Game

Julia versus C gcc fastest programs

Always look at the source code. These are only the fastest programs.

If they are manually vectorized SIMD, does the host language matter? You might not be interested in the most optimised programs.

Look at "mandelbrot" or "spectral-norm" or other measurement tables. Look at the other programs. Choose which programs you want to compare.

fannkuch-redux
source secs mem gz busy cpu load
Julia 7.83 213,412 1067 29.69 97% 94% 95% 93%
C gcc 7.58 1,048 910 29.67 99% 100% 94% 99%
mandelbrot
source secs mem gz busy cpu load
Julia 1.42 236,720 619 5.08 87% 87% 87% 99%
C gcc 1.30 30,924 1135 5.18 100% 100% 100% 100%
k-nucleotide
source secs mem gz busy cpu load
Julia 4.94 369,116 951 11.38 60% 54% 77% 39%
C gcc 3.96 130,000 1506 12.52 74% 54% 99% 90%
fasta
source secs mem gz busy cpu load
Julia 1.13 199,996 1082 1.46 11% 10% 99% 9%
C gcc 0.78 1,244 1463 0.82 0% 1% 4% 100%
pidigits
source secs mem gz busy cpu load
Julia 0.97 179,944 506 1.24 8% 9% 99% 11%
C gcc 0.56 2,440 1090 2.26 100% 100% 100% 100%
n-body
source secs mem gz busy cpu load
Julia 4.21 226,420 1111 4.49 100% 3% 2% 2%
C gcc 2.13 992 1633 2.22 1% 1% 2% 100%
regex-redux
source secs mem gz busy cpu load
Julia 1.74 404,688 759 3.13 99% 7% 68% 6%
C gcc 0.80 152,240 1397 2.06 97% 55% 50% 56%
spectral-norm
source secs mem gz busy cpu load
Julia 1.11 190,124 429 3.73 78% 99% 79% 80%
C gcc 0.41 1,016 1197 1.60 98% 95% 98% 95%
reverse-complement
source secs mem gz busy cpu load
Julia 1.44 685,132 522 1.71 7% 6% 99% 6%
C gcc 0.41 499,072 1965 0.59 15% 90% 22% 17%
binary-trees
source secs mem gz busy cpu load
Julia 7.28 494,392 634 23.51 74% 100% 69% 80%
C gcc 1.58 168,780 809 4.58 100% 62% 67% 62%
Julia

julia version 1.7.1

C gcc

gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0