Tuesday, February 12, 2008

Python Mini Benchmark

After the debate on comp.lang.python about Python vs IronPython performance, 'sokoide' has posted a mini-benchmark comparing Python and IronPython (but heed Steve Holden's wise words on benchmarks in the newsgroup thread).

It appears to benchmark an implementation of the N-Queens puzzle (although I don't think he has posted the code used). In this benchmark IronPython comes out as a clear winner.
Interestingly Python on Windows appears to do better than Python on Mac OS X. In the past this has been attributed to Visual Studio (the Windows compiler) being optimised for performance where gcc is optimised for portability.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.