[Scilab-users] Logical zero

Clément David clement.david at scilab-enterprises.com
Tue Feb 2 11:36:32 CET 2016


Hello all,

Yes, that's quiet strange results and we probably have a bug on that expression. Could you open a
bug to track that issue please ?

But more generally, on the Scilab5 vs Scilab6 performance, we (Calixte in fact) made some analysis
pass for our JIT demo use-case and we may re-use it to speed-up the interpreter but this is not done
yet. There is only "trivial" shortcuts for common use-cases and, of course, the 5.x version might be
more "performant" as it contains more and more complex shortcuts.

While micro-benchmarking Scilab 6, please keep also in mind that the Copy-On-Write mechanism on
Scilab 6 speed up auto-magically function calls and we checked that on average Scilab 6 is sometimes
slower sometimes speeder than Scilab 5 but in the same order of magnitude.

If you found any other issue like this one, do not hesitate to open a bug. Scilab6 may probably
fallback in the generic (and worst case) implementation instead of having either a shortcut or an
analysis pass.

--
Clément

Le lundi 01 février 2016 à 14:56 +0100, Stéphane Mottelet a écrit :
> BTY, I am worried about the Scilab 6.0 timing (3.3228213 seconds)  of
> 
> a(1:n,1:m)=%f;
> 
> i.e. more than ten times slower than Scilab 5.5.1 (0.2964019 seconds). 
> 
> Does somebody have an explanation ? 
> 
> S.
> 
> 
> Le 01/02/2016 14:40, Jan-Åge Langeland a écrit :
> >  I ran a little speed test with the different alternatives, I found the results surprising:
> > 
> > Jan 
> > 
> > //script ftest.sce
> > m=10000
> > n=10000
> > v=ver();
> > disp(v(1,1:2));
> > clear a;
> > timer();
> > a = zeros(n, m) == 1; //best in Scilab 6.0.0
> > disp(timer());
> > clear a;
> > timer();
> > a=zeros(n,m)>0;
> > disp(timer());
> > clear a;
> > timer();
> > a=%f(ones(n,m));
> > disp(timer());
> > clear a;
> > timer();
> > a(1:n,1:m)=%f; //best in Scilab 5.5.1 
> > disp(timer());
> > clear a;
> > //end script ftest.sce
> > 
> > 
> > -->exec('ftest.sce',-1)
> >  
> > !Scilab Version:   5.5.1.1412169962  !
> >  
> >     1.4820095000000037543941  
> >  
> >     1.372808800000029805233  
> >  
> >     0.5304033999999546722393  
> >  
> >     0.2964018999999780135113  
> > 
> > -->exec('ftest.sce',-1)
> > 
> > !Scilab Version:   6.0.0.1447231131  !
> > 
> >     0.6708043
> > 
> >     1.3260085
> > 
> >     2.7300175
> > 
> >     3.3228213
> > 
> > 
> > 
> > _______________________________________________
> > users mailing list
> > users at lists.scilab.org
> > http://lists.scilab.org/mailman/listinfo/users
> 
> -- 
> Département de Génie Informatique
> EA 4297 Transformations Intégrées de la Matière Renouvelable
> Université de Technologie de Compiègne -  CS 60319
> 60203 Compiègne cedex
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users



More information about the users mailing list