[Python-Dev] are NULL checks in Objects/abstract.c really needed? (original) (raw)

Michal Vitecek fuf@mageo.cz
Thu, 13 Mar 2003 15🔞58 +0100


Michael Hudson wrote:

Wow! Can we persuade you to try CVS HEAD?

okay - i did as you said and the speed-up is only 2.1% so it's not probably worth it. here come the numbers:

BEFORE:

$ for (( i = 0; i <= 5; i++ )); do ./python Lib/test/pystone.py; done Pystone(1.1) time for 50000 passes = 1.97 This machine benchmarks at 25380.7 pystones/second Pystone(1.1) time for 50000 passes = 1.92 This machine benchmarks at 26041.7 pystones/second Pystone(1.1) time for 50000 passes = 1.96 This machine benchmarks at 25510.2 pystones/second Pystone(1.1) time for 50000 passes = 1.97 This machine benchmarks at 25380.7 pystones/second Pystone(1.1) time for 50000 passes = 1.96 This machine benchmarks at 25510.2 pystones/second Pystone(1.1) time for 50000 passes = 1.96 This machine benchmarks at 25510.2 pystones/second

AFTER:

$ for (( i = 0; i <= 5; i++ )); do ./python Lib/test/pystone.py; done Pystone(1.1) time for 50000 passes = 1.95 This machine benchmarks at 25641 pystones/second Pystone(1.1) time for 50000 passes = 1.93 This machine benchmarks at 25906.7 pystones/second Pystone(1.1) time for 50000 passes = 1.91 This machine benchmarks at 26178 pystones/second Pystone(1.1) time for 50000 passes = 1.92 This machine benchmarks at 26041.7 pystones/second Pystone(1.1) time for 50000 passes = 1.89 This machine benchmarks at 26455 pystones/second Pystone(1.1) time for 50000 passes = 1.89 This machine benchmarks at 26455 pystones/second

-- fuf (fuf@mageo.cz)