Performance penalty for using classes?
Miki Tebeka
tebeka at cs.bgu.ac.il
Sun Jan 12 09:07:05 EST 2003
Hello Tim,
> (BTW: How much time did the other tests took on your machine?)
OK. Your machine is fater than mine :-)
However using psyco on the strcut_test gives a (way) better performance boost,
almost same time a the c program.
[14:30] $time ./class_test.py
Going 100000 iterations
* Done
real 5.37
user 5.34
sys 0.01
[14:30] $time class_test_psyco.py
Going 100000 iterations
* Done
real 3.19
user 3.14
sys 0.00
[14:30] $time struct_test.py
Going 100000 iterations
* Done
real 4.23
user 4.17
sys 0.01
[14:31] $time struct_test_psyco.py
Going 100000 iterations
* Done
real 0.99
user 0.91
sys 0.02
[14:33] $time c_test
Going 1000000 iterations
* Done
real 0.45
user 0.36
sys 0.05
More information about the Python-list
mailing list