Re: Euphoria 2.4 Alpha-test Release!

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

Hi Derek, you wrote:

> The following code takes twice as long to run with 2.4  than 2.3
>
> ------------
> include machine.e
> tick_rate(1000) -- Improves precision of time()
> sequence v v = {}
> atom e
> e =time()
> for i = 1 to 10000000 do
>     -- wait til I get a few elements before dropping them.
>     if i > 1000 then
>         -- Drop first element.
>         v = v[2..length(v)]
>     end if
>     -- Append new element
>     v &= 1
> end for
> ? time()-e
> atom m -- Cause a pause
> ------------
>
> However, as the difference is only 2.5 seconds over 10 million iterations, I
> can live with it.
>
> cheers,
> Derek

On my system (Pentium II, 400 MHz, 64 MB RAM  -- Win 98, DOS 7.1),
the above code takes:

o ex.exe in a DOS box
  - Eu 2.3:  3.63 sec.
  - Eu 2.4:  3.53 sec.

o exw.exe
  - Eu 2.3:  3.44 sec.
  - Eu 2.4:  8.85 sec.


Best regards,
   Juergen

-- 
 /"\  ASCII ribbon campain  |  while not asleep do
 \ /  against HTML in       |     sheep += 1
  X   e-mail and news,      |  end while
 / \  and unneeded MIME     |

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

Search



Quick Links

User menu

Not signed in.

Misc Menu