I am very surprised that there is 10 times difference between performance of Windows and Linux versions of Scilab for a particular script.
The script is here: https://pastebin.com/6FVL5K27
The difference between Win and Linux is that Linux is 10 times faster, so the script takes dozen of seconds on Linux and over few minutes on Windows.
Has anyone observed such a problem and know why there is such difference?
[Note: please paste your scilab script here for ease of answering your question]
It is difficult to answer this outright. Here are some possibilities:
1. As your script has many plot commands, it is possible that the graphical interface to show the plot may be taking more time. When comparing on two platforms, please avoid graphical commands (like plot).
2. You may print the time difference at several points in the script. This will help you in identifying which part of the program is slow.
3. Please check if all other programs have been stopped. Any program actively running in the background can cause scilab to slow down.
As such, there should not be a significant difference between windows and linux.