Enable decimal benchmarks in the test suite (MANIFEST) by skirpichev · Pull Request #453 · python/pyperformance

@skirpichev

They were not added here in python#341 for no reasons.

hugovk

@skirpichev @hugovk

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>

skirpichev

@skirpichev

@hugovk hugovk changed the title Enable decimal benchmarks in the suite (MANIFEST) Enable decimal_pi benchmark in the suite (MANIFEST)

Jan 20, 2026
Tested locally with modified Modules/_decimal/tests/bench.py:
  n = 1000

  pydecimal:
  calculation time: 3.147357s
  conversion time: 0.000016s

  int:
  calculation time: 0.001096s
  conversion time: 0.000271s

  n = 5000

  pydecimal:
  calculation time: 15.728110s
  conversion time: 0.000014s

  int:
  calculation time: 0.009037s
  conversion time: 0.006705s

@skirpichev

@skirpichev

@skirpichev skirpichev changed the title Enable decimal_pi benchmark in the suite (MANIFEST) Enable decimal benchmarks in the suite (MANIFEST)

Feb 22, 2026

@skirpichev skirpichev changed the title Enable decimal benchmarks in the suite (MANIFEST) Enable decimal benchmarks in the test suite (MANIFEST)

Feb 23, 2026

@skirpichev