#10295: Upgrading pexpect
-------------------------------------+-------------------------------------
       Reporter:  SimonKing          |        Owner:  was
           Type:  enhancement        |       Status:  new
       Priority:  major              |    Milestone:  sage-6.7
      Component:  interfaces         |   Resolution:
       Keywords:  pexpect upgrade    |    Merged in:
        Authors:                     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/fbissey/pexpect3.3               |  a24eab3ce985874ab8445ed5e362bbeead76fd40
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by fbissey):

 pexpect-2.0
 {{{
 ┌────────────────────────────────────────────────────────────────────┐
 │ SageMath Version 6.7.beta4, Release Date: 2015-05-05               │
 │ Type "notebook()" for the browser-based notebook interface.        │
 │ Type "help()" for help.                                            │
 └────────────────────────────────────────────────────────────────────┘
 ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
 ┃ Warning: this is a prerelease version, and it may be unstable.     ┃
 ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 sage: %timeit gp.eval('2+3')
 The slowest run took 269.56 times longer than the fastest. This could mean
 that an intermediate result is being cached
 10000 loops, best of 3: 94.4 us per loop
 sage: %timeit gp('2') + gp('3')
 The slowest run took 8.78 times longer than the fastest. This could mean
 that an intermediate result is being cached
 1000 loops, best of 3: 556 us per loop
 sage: %timeit s=str(gp.eval('2^10000'))
 1000 loops, best of 3: 250 us per loop
 }}}

 One time only so we don't use the cache
 {{{
 sage: %time gp.eval('2+3')
 CPU times: user 0 ns, sys: 0 ns, total: 0 ns
 Wall time: 728 us
 '5'
 sage: %time gp('2') + gp('3')
 CPU times: user 0 ns, sys: 0 ns, total: 0 ns
 Wall time: 1.51 ms
 5
 sage: %time s=str(gp.eval('2^10000'))
 CPU times: user 0 ns, sys: 0 ns, total: 0 ns
 Wall time: 667 us
 }}}

 pexpect-3.3
 {{{
 sage: %timeit gp.eval('2+3')
 The slowest run took 80.90 times longer than the fastest. This could mean
 that an intermediate result is being cached
 1000 loops, best of 3: 309 us per loop
 sage: %timeit gp('2') + gp('3')
 1000 loops, best of 3: 1.54 ms per loop
 sage: %timeit s=str(gp.eval('2^10000'))
 The slowest run took 6.02 times longer than the fastest. This could mean
 that an intermediate result is being cached
 1000 loops, best of 3: 513 us per loop
 }}}
 One time only
 {{{
 sage: %time gp.eval('2+3')
 CPU times: user 10 ms, sys: 0 ns, total: 10 ms
 Wall time: 30.5 ms
 '5'
 sage: %time gp('2') + gp('3')
 CPU times: user 0 ns, sys: 0 ns, total: 0 ns
 Wall time: 4.58 ms
 5
 sage: %time s=str(gp.eval('2^10000'))
 CPU times: user 0 ns, sys: 0 ns, total: 0 ns
 Wall time: 644 us
 }}}

 So it is a little bit all over the place, but generally 3 to 4 times
 slower with pexpect 3.3. I don't know if it is acceptable. Since upstream
 is now alive and well we could take it as an issue with them?

--
Ticket URL: <http://trac.sagemath.org/ticket/10295#comment:32>
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