Re: Comparison of ex.exe and exw.exe
- Posted by Robert Craig <rds at RapidEuphoria.com> May 07, 2007
- 829 views
DB James wrote: > Thanks for the clarification, though I'm still unsure about this: > When you say: "We found a while back that the time() function, which is also > used inside task_yield(), is much faster on Windows than on DOS." -- did > you accept the test results? That is, does the astounding difference in > speed actually derive solely or primarily from the way Windows handles the > time() function, or is there something spurious in the test results? Yes, it all has to do with time(). Your results make sense. Try this, using ex, exw, exwc:
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)
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. For instance, try this:
atom t t = time() for i = 1 to 1000000000 do end for printf(1, "%.2f\n", time()-t) ?getc(0)
I get ex as being slightly (10%) faster on this than exw or exwc. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com