|
Sequence Performance
A small test of the vector performance of the new Sequence object:
Vector := Sequence clone setItemType("float32") setEncoding("number")
size := 10000
v1 := Vector clone setSize(size) rangeFill
v2 := Vector clone setSize(size) rangeFill
loops := 10000
s := Date secondsToRun(for(i, 1, loops, v1 += v2))
writeln(size*loops/(s*1000000000), " GFLOPS")
Results:
0.45 GFLOPS on 2.5 Ghz G5 1M L2
0.37 GFLOPS on 2.5 Ghz G5 512k L2
0.25 GFLOPS on 2.0 GHz Core2 Duo
0.02 GFLOPS on 0.8 Ghz P3
The Sequence object does not use SIMD acceleration yet. Stay tuned for that. :-)
|