[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: min function very slow?

From: Daniel J Sebald
Subject: Re: min function very slow?
Date: Sat, 29 Jan 2005 19:59:22 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020

Dmitri A. Sergatskov wrote:

Daniel J Sebald wrote:

My eyes are deceiving me. I came across a slow loop and to my surprise traced it to the min function. But I'm wondering how this can be because I looked through the source code and the min/max commands inside minmax.cc and dNDArray.cc look identical except obviously for the change in sign when testing order. I have a fairly recent version of 2.1.64.

I put together a little test script. Someone please try the attached script. My result is

octave:1> minmaxtime
looptime = 0.044205
maxtime = 0.081752
mintime = 7.5832

Thank you,


octave:1> minmaxtime
looptime = 0.035128
maxtime = 0.065962
mintime = 0.30040



p.s. 2.1.64 + octave-forge-2004.11.16 / athlonMP 2000 MHz

Thank you... so do you think your increase for mintime is a blip in the OS? Yours is a factor of 4.5 difference, mine is a factor of 76.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]