Le 09/09/2011 10:29, artur bala a écrit :
> On my 4-year old machine (Core Duo T2450(a)2Ghz,
> 2gb ram), it takes 0.468 seconds for 100 000 observations and 3,931 for
> 1 000 000 observations. It's simply UNBELIEVABLE.
Dear Allin,
Something weird is still going on there. It worked absolutely fine 
before !!!!!
After the above performance of your script (below), I moved back to  
1.014 seconds for only 10 000 obs and to more than 22 seconds for a 50 
000 obs dataset ?!?!

set echo off
set messages off
nulldata 10000
series x = normal()

matrix m = zeros($nobs,1)
set stopwatch
loop for i = 1..$nobs --quiet
    m[i,1] = x[i]
endloop
printf "elapsed: %g seconds\n", $stopwatch



Reply via email to