Author ncoghlan
Recipients ncoghlan, rhettinger, serhiy.storchaka
Date 2014-12-31.06:39:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1420007985.41.0.325704201077.issue23132@psf.upfronthosting.co.za>
In-reply-to
Content
I tweaked Serhiy's benchmark script to also include the timing relative to spelling out all four ordered comparison methods.

For an unpatched debug build of trunk, I get the following:

$ ../py3k/python total_ordering_relative_bench.py 
a < b   1.643 1.605 x0.98
b < a   1.611 1.611 x1.00
a >= b  1.599 3.539 x2.21
b >= a  1.607 3.579 x2.23
a <= b  1.600 3.677 x2.30
b <= a  1.601 5.599 x3.50
a > b   1.600 3.624 x2.26
b > a   1.612 6.465 x4.01

With Serhiy's change applied I get:

$ ../py3k/python total_ordering_relative_bench.py 
a < b   1.599 1.602 x1.00
b < a   1.607 1.609 x1.00
a >= b  1.602 2.802 x1.75
b >= a  1.605 2.804 x1.75
a <= b  1.737 2.842 x1.64
b <= a  1.607 4.835 x3.01
a > b   1.667 2.821 x1.69
b > a   1.597 5.557 x3.48
History
Date User Action Args
2014-12-31 06:39:45ncoghlansetrecipients: + ncoghlan, rhettinger, serhiy.storchaka
2014-12-31 06:39:45ncoghlansetmessageid: <1420007985.41.0.325704201077.issue23132@psf.upfronthosting.co.za>
2014-12-31 06:39:45ncoghlanlinkissue23132 messages
2014-12-31 06:39:44ncoghlancreate