Python 2.5 is fast!

I just downloaded Python 2.5 on my iBook, and I ran my stats script for the sudoku solver. Check the improvement:

{01:29}[vince@macvince: sudoku]$ time python2.4 stats.py
Easy puzzles  : 48 out of 48 (100.00%) puzzles were solved
Medium puzzles: 50 out of 50 (100.00%) puzzles were solved
Hard puzzles  : 32 out of 53 (60.38%) puzzles were solved
Evil puzzles  : 0 out of 54 (0.00%) puzzles were solved



real    3m11.721s
user    2m16.969s
sys     0m2.600s

{01:32}[vince@macvince: sudoku]$ time python2.5 stats.py
Easy puzzles  : 48 out of 48 (100.00%) puzzles were solved
Medium puzzles: 50 out of 50 (100.00%) puzzles were solved
Hard puzzles  : 32 out of 53 (60.38%) puzzles were solved
Evil puzzles  : 0 out of 54 (0.00%) puzzles were solved

real    1m17.814s
user    0m56.440s
sys     0m1.139s

{01:33}[vince@macvince: sudoku]$

That’s 2.5 times faster. People who have Python software, benchmark them on 2.4 and 2.5 and let me know if there’s a noticeable speed improvement.

About these ads

One thought on “Python 2.5 is fast!

Comments are closed.