[Python-checkins] cpython: _decimal is now 100x faster than the Python version in the pi benchmark.

stefan.krah python-checkins at python.org
Mon Apr 9 20:32:46 CEST 2012


http://hg.python.org/cpython/rev/02ecb8261cd8
changeset: 76184:02ecb8261cd8
user: Stefan Krah <skrah at bytereef.org>
date: Mon Apr 09 20:31:15 2012 +0200
summary:
 _decimal is now 100x faster than the Python version in the pi benchmark.
files:
 Doc/whatsnew/3.3.rst | 4 ++--
 Misc/NEWS | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -628,7 +628,7 @@
 library for arbitrary precision correctly-rounded decimal floating point
 arithmetic. libmpdec conforms to IBM's General Decimal Arithmetic Specification.
 
-Performance gains range from 10x for database applications to 80x for
+Performance gains range from 10x for database applications to 100x for
 numerically intensive applications. These numbers are expected gains
 for standard precisions used in decimal floating point arithmetic. Since
 the precision is user configurable, the exact figures may vary. For example,
@@ -640,7 +640,7 @@
 +---------+-------------+--------------+-------------+
 | | decimal.py | _decimal | speedup |
 +=========+=============+==============+=============+
- | pi | 42.75s | 0.58s | 74x |
+ | pi | 38.89s | 0.38s | 100x |
 +---------+-------------+--------------+-------------+
 | telco | 172.19s | 5.68s | 30x |
 +---------+-------------+--------------+-------------+
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -147,7 +147,7 @@
 
 - Issue #7652: Integrate the decimal floating point libmpdec library to speed
 up the decimal module. Performance gains of the new C implementation are
- between 12x and 80x, depending on the application.
+ between 10x and 100x, depending on the application.
 
 - Issue #3573: IDLE hangs when passing invalid command line args
 (directory(ies) instead of file(s)) (Patch by Guilherme Polo)
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /