This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | belopolsky |
|---|---|
| Recipients | belopolsky, gvanrossum, lpd, rhettinger |
| Date | 2008年03月26日.18:10:00 |
| SpamBayes Score | 0.11537776 |
| Marked as misclassified | No |
| Message-id | <1206555005.63.0.250372139205.issue2268@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Just to quantify the improvement: Before: $ ./python -m timeit -s"x='abc'" "x[::-1]" 1000000 loops, best of 3: 0.305 usec per loop $ ./python -O -m timeit -s"x='abc'" "x[::-1]" 1000000 loops, best of 3: 0.275 usec per loop After: $ ./python -m timeit -s"x='abc'" "x[::-1]" 1000000 loops, best of 3: 0.262 usec per loop $ ./python -O -m timeit -s"x='abc'" "x[::-1]" 1000000 loops, best of 3: 0.253 usec per loop For some reason, when I run pybench, the timings vary from run to run so much that I cannot even tell the difference. (Run to run differences are larger than patched to original.) FWIW, the micro-benchmark above shows 8% improvement with "-O" and 14% improvement without. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年03月26日 18:10:05 | belopolsky | set | spambayes_score: 0.115378 -> 0.11537776 recipients: + belopolsky, gvanrossum, rhettinger, lpd |
| 2008年03月26日 18:10:05 | belopolsky | set | spambayes_score: 0.115378 -> 0.115378 messageid: <1206555005.63.0.250372139205.issue2268@psf.upfronthosting.co.za> |
| 2008年03月26日 18:10:00 | belopolsky | link | issue2268 messages |
| 2008年03月26日 18:10:00 | belopolsky | create | |