2008-11-13 07:01:48 |
Fernando Perez |
ipython: statusexplanation |
|
Examples from sage showing the problem:
sage: %time 2r+2r
CPU times: user 0.00 s, sys: 0.00 s, total: 0.00 s
Wall time: 0.00 s
4
sage: %timeit 2r+2r
------------------------------------------------------------
File "<magic-timeit>", line 6
2r+2r
^
SyntaxError: invalid syntax
sage: timeit('2r+2r')
625 loops, best of 3: 128 ns per loop
sage: timeit('2+2')
625 loops, best of 3: 1.84 µs per loop
sage: %timeit 2+2
10000000 loops, best of 3: 124 ns per loop
|
|