Changes between Initial Version and Version 1 of Ticket #25477, comment 56


Ignore:
Timestamp:
06/06/18 12:00:45 (4 years ago)
Author:
stumpc5
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25477, comment 56

    initial v1  
    1111sage: P = PermutationGroup([(1,2),(1,2,3,4)])
    1212sage: one = P.one()
    13 sage: %timeit P([4,3,2,1])
    14 1000 loops, best of 3: 607 µs per loop
    15 sage: %timeit one._generate_new([4,3,2,1])
    16 The slowest run took 24.71 times longer than the fastest. This could mean that an intermediate result is being cached.
    17 1000000 loops, best of 3: 444 ns per loop
     13sage: l = [4,3,2,1]
     14sage: %timeit P(l)
     151000 loops, best of 3: 579 µs per loop
     16sage: %timeit one._generate_new(l)
     17The slowest run took 39.93 times longer than the fastest. This could mean that an intermediate result is being cached.
     181000000 loops, best of 3: 203 ns per loop
    1819}}}