Re: BunnyMark benchmark
Stefan Behnel <stefan_ml <at> behnel.de>
2012-07-25 05:52:49 GMT
Gabriel Jacobo, 24.07.2012 22:05:
> Hey guys, I've been doing some "sort of real world" benchmarking
> experiments with my game engine, which embeds the CPython VM plus Cython
> generated code, going from a pure Python implementation to a Cython+STL
> alternative, and I'm getting upwards of 35x speed improvements. I've done a
> write up about it
> I just wanted to say Cython rocks!
Thanks for sharing.
> Also, I'm really baffled (though I shouldn't be, everyone says so) at how
> slow the CPython VM is.
It's not - it just depends on what you do with it.
> I've read a message
> from Stefan in the Python mailing list where he says JIT compilers won't
> bring much speed improvement in real world applications...
I never said that. They certainly do, as long as they optimise the code
well (which is orthogonal to them being JIT compilers). And PyPy contains
lots of smart optimisations.
However, even for optimising JIT compilers, it depends on what you do with
them. They will usually win the competition with an interpreter, but they
may or may not make your code as fast as you need it, and they won't give
you much control for the cases where it's not.
> despite this I would like to try and see what I get out of it.
As long as it doesn't work at all, it won't be easy to try. Also note that
Cython is way faster in CPython than in PyPy.