Blame libs/random/doc/performance.qbk

Packit 58578d
[/
Packit 58578d
 / Copyright (c) 2009 Steven Watanabe
Packit 58578d
 /
Packit 58578d
 / Distributed under the Boost Software License, Version 1.0. (See
Packit 58578d
 / accompanying file LICENSE_1_0.txt or copy at
Packit 58578d
 / http://www.boost.org/LICENSE_1_0.txt)
Packit 58578d
]
Packit 58578d
Packit 58578d
For some people, performance of random number generation is an important
Packit 58578d
consideration when choosing a random number generator or a particular
Packit 58578d
distribution function. This page provides numerous performance tests with
Packit 58578d
the wide variety of generators and distributions available in the boost
Packit 58578d
library.
Packit 58578d
Packit 58578d
The performance has been evaluated on an Intel(R) Core(TM) i7
Packit 58578d
CPU Q 840 @ 1.87GHz, 1867 Mhz with Visual C++ 2010, Microsoft
Packit 58578d
Windows 7 Professional and with gcc 4.4.5, Ubuntu Linux 2.6.35-25-generic.
Packit 58578d
The speed is reported in million random numbers
Packit 58578d
per second (M rn/sec), generated in a tight loop.
Packit 58578d
Packit 58578d
[include generator_performance_linux.qbk]
Packit 58578d
[include generator_performance_windows.qbk]
Packit 58578d
Packit 58578d
Note that the lagged Fibonacci and ranlux_01 generators produce
Packit 58578d
floating-point numbers, whereas all others produce integers.
Packit 58578d
Packit 58578d
[include distribution_performance_linux.qbk]
Packit 58578d
[include distribution_performance_windows.qbk]