Home | Libraries | People | FAQ | More |
By far the most important thing you can do when using this library is turn on your compiler's optimisation options. As the following table shows the penalty for using the library in debug mode can be quite large. In addition switching to 64-bit code has a small but noticeable improvement in performance, as does switching to a different compiler (Intel C++ 15 in this example).
Table 16.1. Compiler Option Comparison on Windows x64
Function |
cl /Od (x86 build) |
cl /arch:sse2 /Ox (x86 build) |
cl /Ox (x64 build) |
icl /Ox (x64 build) |
---|---|---|---|---|
boost::math::cbrt |
18.29 |
4.29 |
3.14 |
1.00 |
boost::math::cyl_bessel_j (integer orders) |
10.03 |
1.77 |
1.36 |
1.00 |
boost::math::ibeta_inv |
4.32 |
1.29 |
1.28 |
1.00 |