[sage-devel] Re: Benchmark in Sage

2013-08-02 Thread Volker Braun
timeit() repeats the benchmark a number of times and prints the best time. Sometimes the run time is slower because of background processes, and the best time over all loops is a reasonably stable measure of how fast the code really is. The number of loops is just for your information; tests th

[sage-devel] Re: Benchmark in Sage

2013-08-02 Thread Verónica Suaste
Thank's both for your answer! Still I have some questions. Probably I'm not understanding what exactly means the first data: the number of loops and how should I consider this. For example if I get the next output for two different functions that I'm trying to compare: 1 loops, best of 3: 36.4 m

[sage-devel] Re: Benchmark in Sage

2013-08-01 Thread Harald Schilly
Hi, it's better to use timeit, or in a sage cell, e.g. "%timeit function(arg)" The question you were asking deals more specifically what the computer is doing between start and end of the invocation. "wall time" is like an absolute clock on the wall, "sys time" the amount of computation the sys

[sage-devel] Re: Benchmark in Sage

2013-07-31 Thread Volker Braun
Use timeit to benchmark: sage: timeit('1+1') 625 loops, best of 3: 729 ns per loop "man time" will explain real/user/sys if you want to know: The time command runs the specified program command with the given arguments. When command finishes, time writes a message to standard

[sage-devel] Re: Benchmark Document

2009-04-09 Thread Jason Grout
William Stein wrote: > On Wed, Apr 8, 2009 at 2:16 PM, William Stein wrote: >> On Wed, Apr 8, 2009 at 2:11 PM, ahmet alper parker >> wrote: >>> Hello Everybody, >>> Is there any document that compares Matlab, Mathematica and Sage (Plus all >>> the contributing codes, in example Maxima, etc.) fu

[sage-devel] Re: Benchmark Document

2009-04-08 Thread William Stein
On Wed, Apr 8, 2009 at 2:16 PM, William Stein wrote: > On Wed, Apr 8, 2009 at 2:11 PM, ahmet alper parker wrote: >> Hello Everybody, >> Is there any document that compares Matlab, Mathematica and Sage (Plus all >> the contributing codes, in example Maxima, etc.) functions, properties, >> toolbox

[sage-devel] Re: Benchmark Document

2009-04-08 Thread William Stein
On Wed, Apr 8, 2009 at 2:11 PM, ahmet alper parker wrote: > Hello Everybody, > Is there any document that compares Matlab, Mathematica and Sage (Plus all > the contributing codes, in example Maxima, etc.) functions, properties, > toolboxes? > In example, >          Matlab Mat

[sage-devel] Re: Benchmark

2007-01-25 Thread Bill Hart
Some code for doing this was contributed to FLINT a while back. It will be fast, when we eventually get it incorporated properly in FLINT. It's been sitting in my inbox for some time and isn't even in the svn repository for FLINT yet. I don't have benchmarks to give at present, but I'll let you kn

[sage-devel] Re: Benchmark

2007-01-23 Thread William Stein
On Tue, 23 Jan 2007 14:09:56 -0800, Kiran S. Kedlaya <[EMAIL PROTECTED]> wrote: > Here's a benchmark I just tried, which annoys me. > > sage: def test1(): > : P. = PolynomialRing(RationalField()) > : t = x^8 - 11*x^7 + x^5 - 1 > : for _ in xrange(1000): > : t.c