[issue9915] speeding up sorting with a key
report at bugs.python.org
Sat Sep 25 00:02:18 CEST 2010
Daniel Stutzbach <daniel at stutzbachenterprises.com> added the comment:
> Does this help any?
The problem is that the random data you run in interpreter 1 won't be the same data you run in interpreter 2, so the results are not directly comparable. One of the sets of random data may be more easily sortable than the other.
That leaves two options:
1. save the random data to a file and use it in both interpreters, or
2. run a sufficiently large number of tests, with new random data for each test, such that you get a good measurement of the time required to sort average random data
I have been using approach #2.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list