New issue 3024: PyPy3 much slower than PyPy2 for decimal calculations https://bitbucket.org/pypy/pypy/issues/3024/pypy3-much-slower-than-pypy2-for-decimal
Platon Pronko: The following code takes much longer when using PyPy3 instead of PyPy2: ```python from decimal import Decimal s = Decimal("0") d = Decimal("0.0000001") i = 0 while i < 10000000: s += d i += 1 print(s) ``` Runtimes on my machine: ``` $ time pypy slowdown.py 1.0000000 real 0m1.899s user 0m1.850s sys 0m0.040s $ time pypy3 slowdown.py 1.0000000 real 0m24.475s user 0m24.305s sys 0m0.054s ``` Versions: ``` $ pypy --version Python 2.7.13 (8cdda8b8cdb8ff29d9e620cccd6c5edd2f2a23ec, Apr 23 2019, 17:07:51) [PyPy 7.1.1 with GCC 8.3.0] $ pypy3 --version Python 3.6.1 (784b254d669919c872a505b807db8462b6140973, May 09 2019, 13:17:30) [PyPy 7.1.1-beta0 with GCC 8.3.0] ``` OS: Arch Linux, `Linux 5.1.5-arch1-2-ARCH #1 SMP PREEMPT Mon May 27 03:37:39 UTC 2019 x86_64 GNU/Linux` _______________________________________________ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue