101 102 10-4 10-2 107 10-3 108 100 10-1 109 106 104 10-6 103 1010 105 10-7 10-5 Matlab Go R Mathematica Python Fortran Octave JavaScript Julia benchmark fib mandel pi_sum rand_mat_mul rand_mat_stat printfd quicksort parse_int

Figure: benchmark times relative to C (smaller is better, C performance = 1.0).

C compiled by gcc 4.8.1, taking best timing from all optimization levels (-O0 through -O3). C, Fortran and Julia use OpenBLAS v0.2.8. The Python implementations of rand_mat_stat and rand_mat_mul use NumPy (v1.6.1) functions; the rest are pure Python implementations. Plot created with Gadfly and IJulia from this notebook.