Speed: why running in Python is MUCH slower as in GUI ???
Posted: Fri Dec 20, 2013 3:41 pm
Dear Hines,
I am surprised, that no previous posts asked about this question ... but ...
I confirmed this quite a few times, trying to get rid of every possible loads on Python.
When running a small model, the time difference is tolerable, so I didn't notice that before ...
I just found that running a "not so big" model for 200 ms simulation time, takes about ~200 seconds in real time in GUI, with even the drawing in the graph.
But it takes about ~800 seconds in real time in Python.
The model is totally written in hoc, basically just loaded into Python. And I double-checked, e.g. no saving in Python, just run, to eliminate all sorts of speed factors, to make sure that the only difference in my case is the running environment ...
So have anybody else also encountered that ? and what is the explanation and possible solution ?
I am surprised, that no previous posts asked about this question ... but ...
I confirmed this quite a few times, trying to get rid of every possible loads on Python.
When running a small model, the time difference is tolerable, so I didn't notice that before ...
I just found that running a "not so big" model for 200 ms simulation time, takes about ~200 seconds in real time in GUI, with even the drawing in the graph.
But it takes about ~800 seconds in real time in Python.
The model is totally written in hoc, basically just loaded into Python. And I double-checked, e.g. no saving in Python, just run, to eliminate all sorts of speed factors, to make sure that the only difference in my case is the running environment ...
So have anybody else also encountered that ? and what is the explanation and possible solution ?