]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | [/ |
2 | / Copyright (c) 2009 Steven Watanabe | |
3 | / | |
4 | / Distributed under the Boost Software License, Version 1.0. (See | |
5 | / accompanying file LICENSE_1_0.txt or copy at | |
6 | / http://www.boost.org/LICENSE_1_0.txt) | |
7 | ] | |
8 | ||
9 | For some people, performance of random number generation is an important | |
10 | consideration when choosing a random number generator or a particular | |
11 | distribution function. This page provides numerous performance tests with | |
12 | the wide variety of generators and distributions available in the boost | |
13 | library. | |
14 | ||
15 | The performance has been evaluated on an Intel(R) Core(TM) i7 | |
16 | CPU Q 840 @ 1.87GHz, 1867 Mhz with Visual C++ 2010, Microsoft | |
17 | Windows 7 Professional and with gcc 4.4.5, Ubuntu Linux 2.6.35-25-generic. | |
18 | The speed is reported in million random numbers | |
19 | per second (M rn/sec), generated in a tight loop. | |
20 | ||
21 | [include generator_performance_linux.qbk] | |
22 | [include generator_performance_windows.qbk] | |
23 | ||
24 | Note that the lagged Fibonacci and ranlux_01 generators produce | |
25 | floating-point numbers, whereas all others produce integers. | |
26 | ||
27 | [include distribution_performance_linux.qbk] | |
28 | [include distribution_performance_windows.qbk] |