Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, VoroneTZ), 1,258 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Speed Test #418900
03/03/13 10:51
03/03/13 10:51
Joined: Mar 2013
Posts: 7
P
Proomer Offline OP
Newbie
Proomer  Offline OP
Newbie
P

Joined: Mar 2013
Posts: 7
I was wondering if the Zorro Team could make a comparative speed test. I read on the website that they claim Lite-C is 3 times faster than C# so the speed test on Big Mike's forum should be interesting:

[link]http://www.bigmiketrading.com/multichart...timization.html[/link]

I tried to port the code but got stuck on the summation of series. The optimization is done from 20 to 100 for all parameters with steps of 20 and it takes less than 7 min on both MC and NT. The data is 2 years of ES 5 min bars (regular trading hours only). The interesting here is not the profit but how long it takes with the same number of optimization steps and same number of bars.

Re: Speed Test [Re: Proomer] #418991
03/04/13 10:17
03/04/13 10:17
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
The code on that forum is not a speed test. It does not test the speed of the script language, but only of the indicator library and the optimizing algorithm. For a real speed test of a script language, you use a loop that does some math calculations or array operations, but calls no external functions or indicators.

- Summation goes like this:

Code:
var ma1v    = SMA(Close, ma1len);
var ma2v    = EMA(Close, ma2len);
var ma3v    = WMA(Close, ma3len);
var ma4v    = SMA(series(ma1v+ma2v+ma3v), ma4len);


Re: Speed Test [Re: jcl] #419067
03/05/13 18:31
03/05/13 18:31
Joined: Mar 2013
Posts: 7
P
Proomer Offline OP
Newbie
Proomer  Offline OP
Newbie
P

Joined: Mar 2013
Posts: 7
I managed to do the speed test and even though Zorro is not multi-threaded (as far as I know) the result was that Zorro is actually faster, almost 2x. How that is possible is beyond me. Perhaps the Zorro Team can explain.

Re: Speed Test [Re: Proomer] #419096
03/06/13 09:45
03/06/13 09:45
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I think it has not much significance in this case. For a real test you had to compare the speed on the same PC under identical conditions, and test script, indicators, and platform separately.

Ninja uses C#, which is slower than lite-C. On the other hand, Ninja's moving averages use an accumulating formula that calculates the last term only, while the ta-lib MAs used by Zorro are completely re-calculated on any call and are thus slower. In most cases Zorro is faster than Ninja, but in this special case it might be just chance.

As to my knowledge, no trade platform really supports multithreading. Those that advertise with multithreading just mean that separate algorithms run in different threads.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1