Changes between Version 12 and Version 14 of Ticket #18304


Ignore:
Timestamp:
08/14/15 17:10:56 (7 years ago)
Author:
vdelecroix
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18304

    • Property Status changed from needs_work to needs_review
    • Property Commit changed from 554c4358bc0e470ec0c72c2a24251f4a6978a12e to e03a26e63dd50f79fc7ada885daefd8c9970c482
  • Ticket #18304 – Description

    v12 v14  
    66sage: a = QQ(1); b = QQ(18)
    77sage: timeit("a < b", number=500000, repeat=100)
    8 500000 loops, best of 100: 88.4 ns per loop
     8500000 loops, best of 100: 84 ns per loop
    99sage: a = 1; b = QQ(18)
    1010sage: timeit("a < b", number=500000, repeat=100)
    11 500000 loops, best of 100: 416 ns per loop
     11500000 loops, best of 100: 405 ns per loop
     12}}}
     13
     14With the branch applied, it gets better
     15{{{
     16sage: a = 1; b = 18
     17sage: timeit("a < b", number=500000, repeat=100)
     18500000 loops, best of 100: 64 ns per loop
     19sage: a = QQ(1); b = QQ(18)
     20sage: timeit("a < b", number=500000, repeat=100)
     21500000 loops, best of 100: 65.6 ns per loop
     22sage: a = 1; b = QQ(18)
     23sage: timeit("a < b", number=500000, repeat=100)
     24500000 loops, best of 100: 87.1 ns per loop
    1225}}}
    1326
     
    1528
    1629    [https://github.com/wbhart/mpir/pull/157 https://github.com/wbhart/mpir/pull/157]
     30
     31Warning: if you pull the branch and run `make` then you will likely rebuild your whole Sage!