Message306919
New benchmark on the emitting a warning which is ignored. Benchmark the PR 4489.
Warning emitted in Python, warnings.warn():
vstinner@apu$ ./python -m perf compare_to master.json ignore.json
Mean +- std dev: [master] 705 ns +- 24 ns -> [ignore] 838 ns +- 18 ns: 1.19x slower (+19%)
==> +133 ns
Warning emitted in C, PyErr_WarnEx():
vstinner@apu$ python3 -m perf compare_to master2.json ignore2.json
Mean +- std dev: [master2] 702 ns +- 9 ns -> [ignore2] 723 ns +- 9 ns: 1.03x slower (+3%)
==> +21 ns
C benchmark, attached files:
* bench_c_warn.patch
* bench_ignore_warn_c.py |
|
Date |
User |
Action |
Args |
2017-11-24 21:17:29 | vstinner | set | recipients:
+ vstinner, rhettinger, ncoghlan, r.david.murray, serhiy.storchaka, Decorater, Александр Карпинский, jbfzs |
2017-11-24 21:17:28 | vstinner | set | messageid: <1511558249.0.0.213398074469.issue27535@psf.upfronthosting.co.za> |
2017-11-24 21:17:28 | vstinner | link | issue27535 messages |
2017-11-24 21:17:28 | vstinner | create | |
|