Microbenchmarks

March 2, 2026 ยท View on GitHub

Benchmarks

A collection of micro-benchmarks comparing Julia's performance against other languages.

View results

Benchmarks

All benchmarks implement identical algorithms across languages (serial, single-core). Times are normalized relative to C.

BenchmarkDescription
iteration_pi_sumAlternating power-series summation (nested loops)
recursion_fibonacciDoubly-recursive Fibonacci(20)
recursion_quicksortQuicksort on 5,000 random numbers
parse_integersParse 1,000 random hex strings to integers
print_to_fileWrite 100,000 formatted lines to /dev/null
matrix_statisticsStatistics on random 5x5 matrices (1,000 iterations)
matrix_multiplyMultiply two random 1,000x1,000 matrices (BLAS)
userfunc_mandelbrotMandelbrot set computation over a grid

Languages

Mathematica and Matlab benchmarks are available but not run in CI.