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 vstinner
Recipients BTaskaya, Mark.Shannon, kj, orsenthil, pablogsal, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2021-09-06.23:30:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630971010.17.0.332008257263.issue44348@roundup.psfhosted.org>
In-reply-to
Content
bench.py: pyperf benchmarks on BaseException_dealloc().

Benchmarks results on PR 28190 on Fedora 34 with LTO (I didn't use PGO nor CPU pinning). It says "faster" but it's likely noise in the build or in the benchmark (again, I didn't use CPU pinning, and I used my laptop while the benchmark was running. IMO it means that the trashcan overhead is not significant on this benchmark.

$ python3 -m pyperf compare_to ref.json trashcan.json --table
+----------------+---------+-----------------------+
| Benchmark      | ref     | trashcan              |
+================+=========+=======================+
| list 10_000    | 1.27 ms | 1.18 ms: 1.08x faster |
+----------------+---------+-----------------------+
| chain 10_000   | 3.94 ms | 3.89 ms: 1.01x faster |
+----------------+---------+-----------------------+
| Geometric mean | (ref)   | 1.01x faster          |
+----------------+---------+-----------------------+

Benchmark hidden because not significant (6): list 10, list 100, list 1000, chain 10, chain 100, chain 1000
History
Date User Action Args
2021-09-06 23:30:10vstinnersetrecipients: + vstinner, paul.moore, orsenthil, tim.golden, Mark.Shannon, zach.ware, steve.dower, pablogsal, BTaskaya, kj
2021-09-06 23:30:10vstinnersetmessageid: <1630971010.17.0.332008257263.issue44348@roundup.psfhosted.org>
2021-09-06 23:30:10vstinnerlinkissue44348 messages
2021-09-06 23:30:10vstinnercreate