#18019: Slow performance when running mpfi in Sage (compairing to Perl)
-------------------------------+------------------------
       Reporter:  akhi         |        Owner:
           Type:  enhancement  |       Status:  new
       Priority:  major        |    Milestone:  sage-6.6
      Component:  algebra      |   Resolution:
       Keywords:               |    Merged in:
        Authors:  Akhilesh P.  |    Reviewers:
Report Upstream:  N/A          |  Work issues:
         Branch:               |       Commit:
   Dependencies:               |     Stopgaps:
-------------------------------+------------------------
Description changed by akhi:

Old description:

> I have wrote a simple program for addition and multiplication in Sage
> using mpfi . same thing when I runs in Perl it took much lesser time
> Example::{{{{
> sage: %runfile test3.sage
> 3.14159265358979323846264338328? is the mpfi number
> 10.4374148846 seconds time for  1000000 divisions
> sage: %runfile test3a.sage
> 3.14159265358979323846264338328? is the mpfi number
> 8.87430405617 seconds time for  1000000 additions
> sage:
>

> akhi@akhi:~$ perl test3.pl
> [3.1415926535897932384626433832793,3.1415926535897932384626433832825] is
> the mpfi number
> total time =  2 seconds time for  1000000 divisions
> akhi@akhi:~$ perl test3a.pl
> [3.1415926535897932384626433832793,3.1415926535897932384626433832825] is
> the mpfi number
> total time =  2 seconds time for  1000000 additions
> akhi@akhi:~$
>

>

> }}}

New description:

 I have wrote a simple program for addition and multiplication in Sage
 using mpfi . same thing when I runs in Perl it took much lesser time
 Example::
 {{{
 sage: %runfile test3.sage
 3.14159265358979323846264338328? is the mpfi number
 10.4374148846 seconds time for  1000000 divisions
 sage: %runfile test3a.sage
 3.14159265358979323846264338328? is the mpfi number
 8.87430405617 seconds time for  1000000 additions
 sage:


 akhi@akhi:~$ perl test3.pl
 [3.1415926535897932384626433832793,3.1415926535897932384626433832825] is
 the mpfi number
 total time =  2 seconds time for  1000000 divisions
 akhi@akhi:~$ perl test3a.pl
 [3.1415926535897932384626433832793,3.1415926535897932384626433832825] is
 the mpfi number
 total time =  2 seconds time for  1000000 additions
 akhi@akhi:~$

 }}}

--

--
Ticket URL: <http://trac.sagemath.org/ticket/18019#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to