14 | | With the branch applied all comparisons involving only Sage integers, Sage rationals and Python int/long are about the same time. |
| 14 | With the branch applied all comparisons involving only Sage integers, Sage rationals and Python int/long are about the same time. With the branch applied, I got |
| 15 | |
| 16 | {{{ |
| 17 | sage: a = 1; b = 18 |
| 18 | sage: timeit("a < b", number=500000, repeat=100) |
| 19 | 500000 loops, best of 100: 62.2 ns per loop |
| 20 | sage: a = QQ(1); b = QQ(18) |
| 21 | sage: timeit("a < b", number=500000, repeat=100) |
| 22 | 500000 loops, best of 100: 65.3 ns per loop |
| 23 | sage: a = 1; b = QQ(18) |
| 24 | sage: timeit("a < b", number=500000, repeat=100) |
| 25 | 500000 loops, best of 100: 82.8 ns per loop |
| 26 | }}} |