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);