Message197274
This patch includes:
* making code more PEP8-compatible and refactoring it a bit
* printing number of loops per second when using command line interface
* using thousands separators when printing numbers of loops (also in command line interface)
* changing examples in the module documentation
The output is changed from this:
10000 loops, best of 3: 40.3 usec per loop
to that:
10,000 loops, best of 3: 34.6 usec per loop, 28,870.783/s
I'm still not sure about details of "28,870.783/s" part:
* whether it should always include the fractional part (in this example it doesn't make any sense)
* maybe it should say "loops/s" rather than just "/s" |
|
Date |
User |
Action |
Args |
2013-09-08 16:00:31 | jstasiak | set | recipients:
+ jstasiak |
2013-09-08 16:00:31 | jstasiak | set | messageid: <1378656031.3.0.527824204676.issue18975@psf.upfronthosting.co.za> |
2013-09-08 16:00:31 | jstasiak | link | issue18975 messages |
2013-09-08 16:00:31 | jstasiak | create | |
|