pystone benchmark
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9TWzsG7EMn9RGzT74M-oRvxdvq9enPFljmBDd5H3XU_U-Ja1TWG7h-1L8tyLOl6KGNAgqbSzRYnG6bV6Xd5EIJmGaTW1dQQydH0eebW2Ik_5tfSnE6xqKXn1fpxO57FYEvzjglfrgR7s/s400/pystone.png)
PythonJS using the dart backend is 6x faster than CPython.
nbody benchmark
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimBdNADFeJmVMCvvXkCcfe6d01yf_7Sc4QhrA0A0f64Mzk3kSQEh4l-TSea7O2j1c-zmR8bQcIvFV2xUPQVu0tSXXwm4ojeJJI-NM9YplcqS0DcVI5IzvIdf5iGQk5yZooVOAt6JLYA64/s400/nbody.png)
PythonJS using the fast javascript backend is faster than CPython and even 2x faster than PyPy.
richard's benchmark
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik2inxwQB2-am6Mo83Za-kOWrAEofrsBI1g6e1cphj1wcb08UIOPkRBOP-2TR4gQ4jSgJ-D5xdIR4ikg5Pt7zULKkh7EjVMHHXHOcWDYlMwbLFoDE_YROJeQ2lLEcbQHmel-cO0inO0bU/s400/richards.png)
PythonJS using the dart backend is 7x faster than CPython.
float benchmark
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiv4fMRaswjGeVeH-LgU1Rq81eK7uJP9UBNsgYH5Iik48pzP0jtJx6E9eqHVB6CP0gTXvv_YAMLiA3w2kA37J65k8iTXzWRYCt4MlOEYvK7g9-JTcj-JvHdCwiE0PQyB1swy0830s50Mpw/s400/float.png)
PythonJS using the dart backend is 3x faster than CPython.
Micro-Benchmarks
recursive fibonacci micro-benchmark
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPPnoheBBzRVrU2DSa_et5UBeW7DsTRhnwDHI7wrkVvE4H6LAPjpievbM81ShUmNrvVI5SftNtL1YsERAU30LZ8pwDVaMDv3zMovdHEirYPH1AmL554VGB02GwxDV2zszL_7-Vl67jBBs/s400/recursive_fib.png)
PythonJS using the dart backend is 27x faster than CPython and 7x faster than PyPy.
simple add loop micro-benchmark
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg1pNMTrVwXQrcNV-bi18P-6yEUKGbdHnGeMNTbenu9n_zoKAac33NfvxMy414LAsoNaZSwxoljBXlEzg1xIj_N3DglvYcQvRKRb22X8-Rg39ub2jvl5IWudjgrWwGLVOPEhTUUqO2Bok/s400/add.png)
PythonJS using any backend, is about 30x faster than CPython.
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