Re: Comparison of ex.exe and exw.exe

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

Robert Craig wrote:
> 
> DB James wrote:
<SNIP>
> 
> Yes, it all has to do with time(). 
> Your results make sense.
> Try this, using ex, exw, exwc:
> 
> }}}
<eucode>
> atom t
> integer i
> t = time()
> i = 0
> while time() < t+10 do
>     i += 1
> end while   
> printf(1, "i is %d\n", i)
> ?getc(0)
> </eucode>
{{{

> 
> I get exw and exwc running this almost 2000x faster than ex!
> However, when I run it with ex, and slide my mouse back and forth
> continuously, then ex speeds up by a factor of 50!
> 
> I get the impression that Windows gives very low
> priority to ex when it asks for the time, but otherwise
> there is not much difference between ex and exw. 

<SNIP>
> Regards,
>    Rob Craig
>    Rapid Deployment Software
>    <a href="http://www.RapidEuphoria.com">http://www.RapidEuphoria.com</a>

Hi,

Well, I did try it, then modified your code above to get a printout:
ex speed test not moving mouse
i is 108287
ex speed test while moving mouse
i is 1168715
Mouse-moving with ex.exe is 10 x faster
ex speed test not moving mouse
i is 139071
ex speed test while moving mouse
i is 1197511
Mouse-moving with ex.exe is 8 x faster

There certainly is a difference in speed with mouse movement, but I didn
not get the higher results you got -- mine were around 8 to 10 times faster.
It is as if Windows' attention were grabbed by the mouse and a lot gets
 done before the attention drifts away.

I found that both exwc and exw ran similarly and much faster, as you did,
though on my machine the differences were around 500 times faster.

On Vista there is a feature called System Resource Manager previously only
on server OS.  It seems to allow a control of how much cpu time will
be given to what programs.  Whatever, I'll be using XP for awhile yet...

Thanks for the effort to clarify all this.

--Quark

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

Search



Quick Links

User menu

Not signed in.

Misc Menu