in reply to Re: Decimal Floating Point (DFP) and does Perl needs DFP?
in thread Decimal Floating Point (DFP) and does Perl needs DFP?
real 0m10.722s user 0m10.725s sys 0m0.000s
25 seconds is not great, but OTOH it's not too bad for 60 million overloaded XSub calls.C:\>perl -MMath::Decimal128=":all" -le "$t = time();$n1=Math::Decimal1 +28->new('10', 0);$n2=Math::Decimal128->new('1000001', -6);for(1..6000 +0000){$n1 *= $n2}print $n1;$t2 = time() - $t;print $t2;" 114197313013072744502959647597176e-5 25
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Decimal Floating Point (DFP) and does Perl needs DFP?
by flexvault (Monsignor) on Jan 19, 2015 at 18:09 UTC |