David Bateman | 1 Oct 2008 14:12

Re: speed of statistics.m

Jaroslav Hajek wrote:
> On Wed, Oct 1, 2008 at 12:49 PM, Francesco Potorti` <Potorti <at> isti.cnr.it> wrote:
>   
>> I do not know whether this is a Debian problem or maybe corrected, but
>> in Debian, using Octave from testing and from unstable I see that,
>> contrary to my expectations, statistics is much slower in Octave 3.1:
>>
>> octave3.0> version
>> ans = 3.0.1
>> octave3.0> t=cputime;statistics(1:35000);cputime-t
>> ans =  0.26002
>> octave3.0> t=cputime;statistics(1:35000);cputime-t
>> ans =  0.26001
>> octave3.0> t=cputime;statistics(1:35000);cputime-t
>> ans =  0.25602
>>
>>
>> octave3.1> version
>> ans = 3.1.51
>> octave3.1> t=cputime;statistics(1:35000);cputime-t
>> ans =  1.7001
>> octave3.1> t=cputime;statistics(1:35000);cputime-t
>> ans =  1.7161
>> octave3.1> t=cputime;statistics(1:35000);cputime-t
>> ans =  1.6521
>>
>>     
>
> `statistics' computes a number of characteristics. Could you identify
> which one of them is causing the slowdown?
>
>   
>> _______________________________________________
>> Bug-octave mailing list
>> Bug-octave <at> cae.wisc.edu
>> https://www-old.cae.wisc.edu/mailman/listinfo/bug-octave
>>
>>     
>
>
>
>   
I see the reverse

octave:3> t=cputime;statistics(1:35000);cputime-t
ans =  0.089994
octave:4> version
ans = 3.0.0

octave:3>  t=cputime;statistics(1:35000);cputime-t
ans =  0.019999
octave:4> version
ans = 3.1.51+

D.

--

-- 
David Bateman                                David.Bateman <at> motorola.com
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary

Gmane