Download MetaTrader 5
To add comments, please log in or register
Do you want to learn MQL5? 300 articles will help you!
APeng
359
APeng 2014.09.26 08:32 

Hi everyone,

another question about backtest speed. But maybe slightly different. (I read https://forum.mql4.com/54831 and other posts...)

As the CPU is only used for a few percent (I7, lot of RAM and so on) I copied the MT4 instance and let two tests run at the same time. The sum of the estimatet durations for both tests is almost equal to letting one test run two times. Why?


Kind regards!


Edit: Just made another try. Now the duration does not double with the second test but beeing increased by maybe factor 1.3. That could be explained with slow HD.

Carl Schreiber
5939
Carl Schreiber 2014.09.26 10:59  
Well mt4 has learned to use the advantages of multi-threading :)
whroeder1
13605
whroeder1 2014.09.26 13:36  

APeng: As the CPU is only used for a few percent (I7, lot of RAM and so on) I copied the MT4 instance and let two tests run at the same time. The sum of the estimatet durations for both tests is almost equal to letting one test run two times. Why?

Edit: Just made another try. Now the duration does not double with the second test but beeing increased by maybe factor 1.3. That could be explained with slow HD.

  1. Tester only uses one core so if you have 8 cores, then 12.5% is 100% of the only core used.
  2. Running the second instance uses a second core, the slight increase is HD/cache and paging interactions.
  3. Don't do unnecessary tasks per tick that can be done per bar or per trade.
gooly: Well mt4 has learned to use the advantages of multi-threading :)
If it had it would be using 100% of all cores, instead of only a few percent.
/
To add comments, please log in or register