[Scilab-users] Xcos 6.1.0 - benchmark time test

classic Classic list List threaded Threaded
6 messages Options
Perrichon Perrichon
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] Xcos 6.1.0 - benchmark time test

Hello,

 

Here I test a PELTON basic algorithm under xcos, and record with tic-toc the simulation real time.

These programs have been set for 120 s (scope)

 

Results :

Xcos Scilab 5.5.2 :

Durée de la simulation : 45.4 s

 

Xcos Sciab 6.1.0 :

Durée de la simulation : 65.2 s

 

So the ratio is 1.44 for a basic sheme

 

Any explaination ?

Can that be improved ?

 

BR

 

 

 


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Clément David-3 Clément David-3
Reply | Threaded
Open this post in threaded view
|

Re: Xcos 6.1.0 - benchmark time test

Hello Pierre,

 

Are you using a block with its simulation function implemented in Scilab? Any C/C++ implemented block might perform the same at simulation time.

 

In 6.0.2, implementing Xcos blocks using the Scilab language had some performance issues. In 6.1.0, I tried to speed up things a little bit by reusing some allocated data structure during simulation time [1] ; more work might still be needed here.

 

[1]: http://cgit.scilab.org/scilab/commit/?id=bfe4f25275dc0d889817d10b63e10c9a0641ef32

 

Regards,

 

--

Clément

 

From: users <[hidden email]> On Behalf Of Perrichon
Sent: Friday, February 28, 2020 8:51 AM
To: 'Users mailing list for Scilab' <[hidden email]>
Subject: [Scilab-users] Xcos 6.1.0 - benchmark time test

 

Hello,

 

Here I test a PELTON basic algorithm under xcos, and record with tic-toc the simulation real time.

These programs have been set for 120 s (scope)

 

Results :

Xcos Scilab 5.5.2 :

Durée de la simulation : 45.4 s

 

Xcos Sciab 6.1.0 :

Durée de la simulation : 65.2 s

 

So the ratio is 1.44 for a basic sheme

 

Any explaination ?

Can that be improved ?

 

BR

 

 

 


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Perrichon Perrichon
Reply | Threaded
Open this post in threaded view
|

Re: Xcos 6.1.0 - benchmark time test

Hello Clément

 

In this benchmark test, I only use xcos files in scilab 5.5.2 and 6.1.0, same file save in 6.1.0 done without any components of my personal palette SEGPAL.

So all components are with the xcos standart palettes

 

I’ve work with scilab 6.0.x But all is fine in all my projects with 5.5.2, so this is a nice blue sky.

 

I now try to go to scilab 6.1.0 which the begining of my nigthmares.

It also means that at this step, I shall not test 6.0.2.

 

Not easy

 

For example, I’ve to understant why instruction « importXcosDiagram » don’t run.

But this is another discussion….

This instruction well run in Scilab 5.5.2

à la ligne    13 de la fonction importXcosDiagram ( C:\Program Files\scilab-6.1.0\modules\xcos\macros\importXcosDiagram.sci ligne 32 )

 

BR

 

Pierre P.

 

 

De : users <[hidden email]> De la part de Clément David
Envoyé : vendredi 28 février 2020 10:10
À : Users mailing list for Scilab <[hidden email]>
Objet : Re: [Scilab-users] Xcos 6.1.0 - benchmark time test

 

Hello Pierre,

 

Are you using a block with its simulation function implemented in Scilab? Any C/C++ implemented block might perform the same at simulation time.

 

In 6.0.2, implementing Xcos blocks using the Scilab language had some performance issues. In 6.1.0, I tried to speed up things a little bit by reusing some allocated data structure during simulation time [1] ; more work might still be needed here.

 

[1]: http://cgit.scilab.org/scilab/commit/?id=bfe4f25275dc0d889817d10b63e10c9a0641ef32

 

Regards,

 

--

Clément

 

From: users <[hidden email]> On Behalf Of Perrichon
Sent: Friday, February 28, 2020 8:51 AM
To: 'Users mailing list for Scilab' <[hidden email]>
Subject: [Scilab-users] Xcos 6.1.0 - benchmark time test

 

Hello,

 

Here I test a PELTON basic algorithm under xcos, and record with tic-toc the simulation real time.

These programs have been set for 120 s (scope)

 

Results :

Xcos Scilab 5.5.2 :

Durée de la simulation : 45.4 s

 

Xcos Sciab 6.1.0 :

Durée de la simulation : 65.2 s

 

So the ratio is 1.44 for a basic sheme

 

Any explaination ?

Can that be improved ?

 

BR

 

 

 


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Perrichon Perrichon
Reply | Threaded
Open this post in threaded view
|

Re: Xcos 6.1.0 - benchmark time test

Sorry , I wanted to write :

 

I’ve  NEVER work with scilab 6.0.x

 

 

De : users <[hidden email]> De la part de Perrichon
Envoyé : vendredi 28 février 2020 12:10
À : 'Users mailing list for Scilab' <[hidden email]>
Objet : Re: [Scilab-users] Xcos 6.1.0 - benchmark time test

 

Hello Clément

 

In this benchmark test, I only use xcos files in scilab 5.5.2 and 6.1.0, same file save in 6.1.0 done without any components of my personal palette SEGPAL.

So all components are with the xcos standart palettes

 

I’ve work with scilab 6.0.x But all is fine in all my projects with 5.5.2, so this is a nice blue sky.

 

I now try to go to scilab 6.1.0 which the begining of my nigthmares.

It also means that at this step, I shall not test 6.0.2.

 

Not easy

 

For example, I’ve to understant why instruction « importXcosDiagram » don’t run.

But this is another discussion….

This instruction well run in Scilab 5.5.2

à la ligne    13 de la fonction importXcosDiagram ( C:\Program Files\scilab-6.1.0\modules\xcos\macros\importXcosDiagram.sci ligne 32 )

 

BR

 

Pierre P.

 

 

De : users <[hidden email]> De la part de Clément David
Envoyé : vendredi 28 février 2020 10:10
À : Users mailing list for Scilab <[hidden email]>
Objet : Re: [Scilab-users] Xcos 6.1.0 - benchmark time test

 

Hello Pierre,

 

Are you using a block with its simulation function implemented in Scilab? Any C/C++ implemented block might perform the same at simulation time.

 

In 6.0.2, implementing Xcos blocks using the Scilab language had some performance issues. In 6.1.0, I tried to speed up things a little bit by reusing some allocated data structure during simulation time [1] ; more work might still be needed here.

 

[1]: http://cgit.scilab.org/scilab/commit/?id=bfe4f25275dc0d889817d10b63e10c9a0641ef32

 

Regards,

 

--

Clément

 

From: users <[hidden email]> On Behalf Of Perrichon
Sent: Friday, February 28, 2020 8:51 AM
To: 'Users mailing list for Scilab' <[hidden email]>
Subject: [Scilab-users] Xcos 6.1.0 - benchmark time test

 

Hello,

 

Here I test a PELTON basic algorithm under xcos, and record with tic-toc the simulation real time.

These programs have been set for 120 s (scope)

 

Results :

Xcos Scilab 5.5.2 :

Durée de la simulation : 45.4 s

 

Xcos Sciab 6.1.0 :

Durée de la simulation : 65.2 s

 

So the ratio is 1.44 for a basic sheme

 

Any explaination ?

Can that be improved ?

 

BR

 

 

 


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Perrichon Perrichon
Reply | Threaded
Open this post in threaded view
|

Re: Xcos 6.1.0 - benchmark time test

In reply to this post by Clément David-3

Hello Clément,

 

Yes, I have some function blocks and expression blocks.

Must I understand that I have to write CBLOCK for scilab function or scilab expression or both ?

 

Here are other results for a more complex project name PELT1

 

Time request : 100 s

 

Results :

Xcos Scilab 5.5.2 :

Durée de la simulation : 258.3 s

 

Xcos Sciab 6.1.0 :

Durée de la simulation : 4353.4 s

 

So the ratio is 16.8 for PELT1

 

Other information :

 

Scilab 5.5.2 : time between click go and first scope on the screen = 5 s

 

Scilab 6.1.0 : time between click go and first scope on the screen = 95 s

 

Ratio=19

 

…and I also have other projects more complex

 

Pelt1 is for 1 needle (2 positonning loop)

Perlt6 for 6 !!! (7 positonning loop)

 

 

BR

 

 

De : users <[hidden email]> De la part de Clément David
Envoyé : vendredi 28 février 2020 10:10
À : Users mailing list for Scilab <[hidden email]>
Objet : Re: [Scilab-users] Xcos 6.1.0 - benchmark time test

 

Hello Pierre,

 

Are you using a block with its simulation function implemented in Scilab? Any C/C++ implemented block might perform the same at simulation time.

 

In 6.0.2, implementing Xcos blocks using the Scilab language had some performance issues. In 6.1.0, I tried to speed up things a little bit by reusing some allocated data structure during simulation time [1] ; more work might still be needed here.

 

[1]: http://cgit.scilab.org/scilab/commit/?id=bfe4f25275dc0d889817d10b63e10c9a0641ef32

 

Regards,

 

--

Clément

 

From: users <[hidden email]> On Behalf Of Perrichon
Sent: Friday, February 28, 2020 8:51 AM
To: 'Users mailing list for Scilab' <[hidden email]>
Subject: [Scilab-users] Xcos 6.1.0 - benchmark time test

 

Hello,

 

Here I test a PELTON basic algorithm under xcos, and record with tic-toc the simulation real time.

These programs have been set for 120 s (scope)

 

Results :

Xcos Scilab 5.5.2 :

Durée de la simulation : 45.4 s

 

Xcos Sciab 6.1.0 :

Durée de la simulation : 65.2 s

 

So the ratio is 1.44 for a basic sheme

 

Any explaination ?

Can that be improved ?

 

BR

 

 

 


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Clément David-3 Clément David-3
Reply | Threaded
Open this post in threaded view
|

Re: Xcos 6.1.0 - benchmark time test

Hello Pierre,

 

Thanks for the numbers, I will try to describe what can be down to work around the time to results.

 

From when you start the simulation to the first scope popup, the schema is converted to a list of functions to be called in a specific order and passed to a solver that will iterate on time to “run” the simulation. There might be a difference between Scilab 5 and Scilab 6 as this transformation is written using the Scilab language. It is the 5s to 95s ratio.

 

While the simulation is running, each block’s simulation function is called a number of times. The solver/simulator/function API did not change between Scilab 5 and Scilab 6, this should perform the same way. However, some functions, especially sciblk2 and sciblk4 are  wrappers from C to Scilab functions and have been re-written to behave very differently. It is the 253s (258-5) to 4258s (4353-95) ratio (lower ratio but much more impact).

 

Could you please file a bug with some representative example (same number of blocks, similar Scilab function) for further investigation ?

 

Note: having “costly” sciblk2 and sciblk4 also highly depends on your schema, for example having them on a continuous loop will make the solver call them on each timestep.

 

Regards,

 

--

Clément

 

From: Perrichon <[hidden email]>
Sent: Monday, March 2, 2020 11:09 AM
To: 'Users mailing list for Scilab' <[hidden email]>; Clément David <[hidden email]>
Subject: RE: [Scilab-users] Xcos 6.1.0 - benchmark time test

 

Hello Clément,

 

Yes, I have some function blocks and expression blocks.

Must I understand that I have to write CBLOCK for scilab function or scilab expression or both ?

 

Here are other results for a more complex project name PELT1

 

Time request : 100 s

 

Results :

Xcos Scilab 5.5.2 :

Durée de la simulation : 258.3 s

 

Xcos Sciab 6.1.0 :

Durée de la simulation : 4353.4 s

 

So the ratio is 16.8 for PELT1

 

Other information :

 

Scilab 5.5.2 : time between click go and first scope on the screen = 5 s

 

Scilab 6.1.0 : time between click go and first scope on the screen = 95 s

 

Ratio=19

 

…and I also have other projects more complex

 

Pelt1 is for 1 needle (2 positonning loop)

Perlt6 for 6 !!! (7 positonning loop)

 

 

BR

 

 

De : users <[hidden email]> De la part de Clément David
Envoyé : vendredi 28 février 2020 10:10
À : Users mailing list for Scilab <[hidden email]>
Objet : Re: [Scilab-users] Xcos 6.1.0 - benchmark time test

 

Hello Pierre,

 

Are you using a block with its simulation function implemented in Scilab? Any C/C++ implemented block might perform the same at simulation time.

 

In 6.0.2, implementing Xcos blocks using the Scilab language had some performance issues. In 6.1.0, I tried to speed up things a little bit by reusing some allocated data structure during simulation time [1] ; more work might still be needed here.

 

[1]: http://cgit.scilab.org/scilab/commit/?id=bfe4f25275dc0d889817d10b63e10c9a0641ef32

 

Regards,

 

--

Clément

 

From: users <[hidden email]> On Behalf Of Perrichon
Sent: Friday, February 28, 2020 8:51 AM
To: 'Users mailing list for Scilab' <[hidden email]>
Subject: [Scilab-users] Xcos 6.1.0 - benchmark time test

 

Hello,

 

Here I test a PELTON basic algorithm under xcos, and record with tic-toc the simulation real time.

These programs have been set for 120 s (scope)

 

Results :

Xcos Scilab 5.5.2 :

Durée de la simulation : 45.4 s

 

Xcos Sciab 6.1.0 :

Durée de la simulation : 65.2 s

 

So the ratio is 1.44 for a basic sheme

 

Any explaination ?

Can that be improved ?

 

BR

 

 

 


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users