The other day Travis Oliphant pointed out an interesting paper: A Comparison of Programming Languages in Economics. The paper benchmarks several programming languages on a computational problem in economics.
All the usual disclaimers about benchmarks apply, your mileage may vary, etc. See the paper for details.
Here I give my summary of their summary of their results. The authors ran separate benchmarks on Mac and Windows. The results were qualitatively the same, so I just report the Windows results here.
Times in the table below are relative to the fastest C++ run.
|Python with Numba
|R using compiler package
The most striking result is that the authors were able to run their Python code 100x faster, achieving performance comparable to C++, by using Numba.