Overview

Basel problem
http://docs.cython.org/src/tutorial/profiling_tutorial.html#id2
http://en.wikipedia.org/wiki/Basel_problem

python:
python basel.py
time python basel.py
real    0m47.316s
user    0m45.667s
sys     0m1.172s

d:
dmd basel.d
./basel
time ./basel
real    0m0.187s
user    0m0.180s
sys     0m0.008s

c:
gcc -W -Wall -std=gnu89 -pedantic -fno-builtin -lm -O3 basel.c
./a.out
time ./a.out
real    0m0.188s
user    0m0.180s
sys     0m0.008s

cython:
python setup.py build_ext --inplace
python loader.py
time python loader.py
real    0m0.217s
user    0m0.184s
sys     0m0.024s

python -m timeit -s "import basel" "basel.approx_pi()"
10 loops, best of 3: 185 msec per loop