Re: [Python-Dev] [RELEASED] Python 3.3.0 release candidate 3

2012年9月28日 11:23:44 -0700

Brett Cannon <[email protected]> wrote:
> Georg Brandl <[email protected]> wrote:
> > * A C implementation of the "decimal" module, with up to 80x speedup
> >   for decimal-heavy applications
> 
> Could you bump up the factor to 120x in the final announcement? There were
> a couple of performance improvements in the meantime, and this is what I'm
> consistently measuring now.
> 
> 
> Is that based on Modules/_decimal/tests/bench.py or some other benchmark?
It's the pi benchmark from bench.py. This is what I'm typically getting
on a Core 2 Duo 3.16 GHz:
Precision: 9 decimal digits
float:
result: 3.1415926535897927
time: 0.113188s
cdecimal:
result: 3.14159265
time: 0.158313s
decimal:
result: 3.14159265
time: 18.671457s
Precision: 19 decimal digits
float:
result: 3.1415926535897927
time: 0.112874s
cdecimal:
result: 3.141592653589793236
time: 0.348100s
decimal:
result: 3.141592653589793236
time: 43.241220s
Stefan Krah
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to