Re: append speed

new topic     » goto parent     » topic index » view thread      » older message » newer message

To benchmark a function:

Take a time reading, run the routine a lot of times, say 100,000 times, and
take another time reading.
Subtract the first from the second.

Now change the routine, and run again, then compare the differences.

Pete King.


-----Original Message-----
From: ©koda <tone.skoda at SIOL.NET>
To: EUPHORIA at LISTSERV.MUOHIO.EDU <EUPHORIA at LISTSERV.MUOHIO.EDU>
Date: Friday, May 19, 2000 7:29 PM
Subject: append speed


>is append() function slow?
>is repeat() function much faster?
>
>is this:
>
>for i=1 to 100 do
>    s=append(s,0)
>end for
>
>much slower than this:
>
>s=repeat(100,0)
>
>and how much slower is it?
>
>Anybody has any special set of functions for benchmarking, measuring the
>speed of functions?
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu