Timings: norm_2
Description
Timings for an acer TravelMate 6003LMi with Atlas 3.7.8.
For each vector type, the timings are obtained by calling norm_2
a number of times for vectors of different sizes.
Timings are in seconds.
dense_vector<double>
| size | iterations | Atlas | GLAS | uBlas |
| 100 | 1000000 | 0.27 | 0.21 | 0.35 |
| 200 | 500000 | 0.22 | 0.18 | 0.32 |
| 400 | 250000 | 0.18 | 0.17 | 0.32 |
| 800 | 125000 | 0.16 | 0.17 | 0.32 |
| 1600 | 62500 | 0.15 | 0.16 | 0.32 |
dense_vector<std::complex<double> >
| size | iterations | Atlas | GLAS | uBlas |
| 100 | 1000000 | 0.42 | 0.36 | 8.93 |
| 200 | 500000 | 0.35 | 0.32 | 9.01 |
| 400 | 250000 | 0.34 | 0.32 | 9.10 |
| 800 | 125000 | 0.31 | 0.31 | 9.13 |
| 1600 | 62500 | 0.30 | 0.30 | 9.15 |
sparse_vector<double>
The sparse vector is completely filled.
The idea is to measure the overhead due to the sparse data structures.
| size | iterations | GLAS | uBlas |
| 100 | 1000000 | 0.23 | 2.83 |
| 200 | 500000 | 0.20 | 2.86 |
| 400 | 250000 | 0.18 | 2.87 |
| 800 | 125000 | 0.17 | 2.90 |
| 1600 | 62500 | 0.16 | 3.13 |