Bug report
Bug description:
The pi benchmark in Modules/_decimal/tests/bench.py is up to 31% slower with --enable-gil and up to 45% slower with --disable-gil compared to Python 3.9 as the baseline.
Change the number of iterations to 100000 for more stable benchmarks.
This is heavily OS and hardware dependent. The worst case cited above was observed on a six core i5-8600K.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
Bug report
Bug description:
The pi benchmark in
Modules/_decimal/tests/bench.pyis up to 31% slower with--enable-giland up to 45% slower with--disable-gilcompared to Python 3.9 as the baseline.Change the number of iterations to
100000for more stable benchmarks.This is heavily OS and hardware dependent. The worst case cited above was observed on a six core i5-8600K.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
METH_METHODcalling convention in_decimal#115196_decimal#115401