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 rhettinger
Recipients rhettinger
Date 2019-12-21.20:13:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1576959181.43.0.150480407259.issue39117@roundup.psfhosted.org>
In-reply-to
Content
$ python3.9 -m timeit -r 11 -s 'class A: pass' -s 'A.m = lambda s: None' -s 'a = A()' 'a.m; a.m; a.m; a.m; a.m'
1000000 loops, best of 11: 230 nsec per loop

$ python3.8 -m timeit -r 11 -s 'class A: pass' -s 'A.m = lambda s: None' -s 'a = A()' 'a.m; a.m; a.m; a.m; a.m'
2000000 loops, best of 11: 149 nsec per loop

$ python3.7 -m timeit -r 11 -s 'class A: pass' -s 'A.m = lambda s: None' -s 'a = A()' 'a.m; a.m; a.m; a.m; a.m'
2000000 loops, best of 11: 159 nsec per loop

$ python3.6 -m timeit -r 11 -s 'class A: pass' -s 'A.m = lambda s: None' -s 'a = A()' 'a.m; a.m; a.m; a.m; a.m'
10000000 loops, best of 11: 0.159 usec per loop

Timings made using the recent released python.org macOS 64-bit builds.
History
Date User Action Args
2019-12-21 20:13:01rhettingersetrecipients: + rhettinger
2019-12-21 20:13:01rhettingersetmessageid: <1576959181.43.0.150480407259.issue39117@roundup.psfhosted.org>
2019-12-21 20:13:01rhettingerlinkissue39117 messages
2019-12-21 20:13:01rhettingercreate