Sunday, May 18, 2014

PythonJS now faster than CPython


pystone benchmark

PythonJS using the dart backend is 6x faster than CPython.

pystone.py

nbody benchmark

PythonJS using the fast javascript backend is faster than CPython and even 2x faster than PyPy.

nbody.py

richard's benchmark

PythonJS using the dart backend is 7x faster than CPython.

richards.py

float benchmark

PythonJS using the dart backend is 3x faster than CPython.

float.py


Micro-Benchmarks

recursive fibonacci micro-benchmark

PythonJS using the dart backend is 27x faster than CPython and 7x faster than PyPy.

recursive_fib.py

simple add loop micro-benchmark

PythonJS using any backend, is about 30x faster than CPython.

add.py


The benchmarks were run with node.js 0.10.22, pypy 1.9, and dart-sdk 1.0. To run them yourself: get the latest PythonJS source from github, and download and extract the dart-sdk to ~/dart-sdk-1.0. The benchmark eps graphs are written to "/tmp"

cd PythonJS/regtests
./run.py

No comments:

Post a Comment