Message303679
Nice speedup!
I ran a benchmark on PR 3862:
1002 ./python ~/prog/python/performance/performance/benchmarks/bm_regex_compile.py --inherit=PYTHONPATH -v -o patch.json
1003 git co master
1004 make
1005 ./python ~/prog/python/performance/performance/benchmarks/bm_regex_compile.py --inherit=PYTHONPATH -v -o ref.json
1007 ./python -m perf compare_to ref.json patch.json
Mean +- std dev: [ref] 396 ms +- 16 ms -> [patch] 347 ms +- 8 ms: 1.14x faster (-12%)
It's the following benchmark on *uncached* regular expressions. So it really measures re.compile() performance, not the cache.
https://pyperformance.readthedocs.io/benchmarks.html#regex-compile |
|
Date |
User |
Action |
Args |
2017-10-04 10:06:26 | vstinner | set | recipients:
+ vstinner, gvanrossum, barry, rhettinger, methane, ethan.furman, serhiy.storchaka |
2017-10-04 10:06:26 | vstinner | set | messageid: <1507111586.4.0.213398074469.issue31671@psf.upfronthosting.co.za> |
2017-10-04 10:06:26 | vstinner | link | issue31671 messages |
2017-10-04 10:06:26 | vstinner | create | |
|