Sven Schreiber schrieb:
Octave 3.0.5:
loop ca. 3.3 seconds
vectorized ca. 0.8 seconds
Python 2.6.4/Numpy 1.3.0/matplotlib 0.99(?):
loop ca. 2.1 seconds
vectorized ca. 1.5 seconds
gretl 1.8.6cvs:
loop ca. 2.6 seconds
vectorized ca. 2.0 seconds
Ox 5.1:
loop ca. 1.1 seconds
vectorized ca. 0.7 seconds
Actually Berend's separate treatment of R-terminal and R-GUI made me run
gretl's code in gretlcli as well, as it was the only application that
was using a GUI interface.
The new result:
gretlcli 1.8.6cvs:
loop ca. 2.6 seconds
vectorized ca. 1.8 seconds
So the vectorized code gains 10% while the loop variant stays the same.
The results from Berend (1.6 seconds) and me (1.8 seconds) also seem to
be compatible in terms of nominal CPU speed, where he has a Core2Duo
2.16GHz and mine is a Core2Duo 1.83GHz I think.
cheers,
sven