All the algorithms, presented in the previous sections, were implemented using C++ and tested on an Intel Core 2 Duo E6600 processor clocking at . To compare the algorithms for different parameters, was varied, which is the angle at half maximum . For the power cosine distribution and for the coned cosine distribution .

The runtimes for sampling 100 million random vectors are compared for different algorithms in Table 5.3. For the random direction vectors follow a simple cosine distribution for all presented algorithms. For this specific case Algorithm 5.6 is able to compete with Algorithm 5.2 for the power cosine distribution with and is therefore, due to its simplicity, a serious alternative. For the compiler is able to use the square root function instead of the power function, which explains the better runtime. For all other cases, the runtimes for sampling the power cosine distribution are comparable with those for sampling the coned cosine distribution.

Otmar Ertl: Numerical Methods for Topography Simulation