Re:N-Queen Problem: Python 2.6.5 vs PyPy 1.5.0
by kingkilr on Monday May 30, 2011 @12:31AM
(#2598510)
Don't worry, PyPy beasts this as well, at ``n_queens(12)`` on my machine:
alex@alex-gaynor-laptop:/tmp$ time python queens.py
real 0m16.837s
user 0m16.820s
sys 0m0.000s
alex@alex-gaynor-laptop:/tmp$ time pypy queens.py
real 0m2.548s
user 0m2.530s
sys 0m0.010s
Yes, it's twice as long and harder to read. Improvements, anyone?