Re: Eu 2.5 is very slow?

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

Matt Lewis wrote:
> 
> Jonas wrote:
> > 
> > 
> > Hi
> > I have compiled eu 3.2 with watcom 1.7 and her is som speed test.
> > 
> > My modest smile computer AMD Sempron 2800 2GHz 2GB
> > 
> > tags3.1 3.375 Sec
> > trunk3.2 17.609 Sec
> > Official release 3.1.1 3.5 Sec
> 
> I've run other benchmarks, usually dealing with sequences, where performance
> was better using the OS to do all allocations.

I changed your code slightly, to make it allocate lots of new doubles, rather
than reusing, and 3.2 runs about 3x faster for me (I also cut a zero off
of the reps, cause I'm impatient like that):
atom x, y, t
sequence v
constant LEN = 10000000
v = repeat( 1.0, LEN )
x = 1.0
y = 1.000001

t = time()
for i=2  to LEN  do
    v[i] = v[i-1] * y
--    x = x * y
end for

t = time() - t
?t


So I guess the question is, which is a more common case?  Both scenarios 
seem to be pathological for one method of memory management.

Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu