change support python version
[platform/upstream/boost.git] / libs / math / doc / html / math_toolkit / comparisons.html
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Comparisons to Other Open Source Libraries</title>
5 <link rel="stylesheet" href="../math.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7 <link rel="home" href="../index.html" title="Math Toolkit 2.10.0">
8 <link rel="up" href="../perf.html" title="Chapter&#160;20.&#160;Performance">
9 <link rel="prev" href="comp_compilers.html" title="Comparing Different Compilers">
10 <link rel="next" href="perf_test_app.html" title="The Performance Test Applications">
11 </head>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td>
15 <td align="center"><a href="../../../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../../../more/index.htm">More</a></td>
20 </tr></table>
21 <hr>
22 <div class="spirit-nav">
23 <a accesskey="p" href="comp_compilers.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../perf.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="perf_test_app.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="section">
26 <div class="titlepage"><div><div><h2 class="title" style="clear: both">
27 <a name="math_toolkit.comparisons"></a><a class="link" href="comparisons.html" title="Comparisons to Other Open Source Libraries">Comparisons to Other Open Source
28     Libraries</a>
29 </h2></div></div></div>
30 <p>
31       We've run our performance tests both for our own code, and against other open
32       source implementations of the same functions. The results are presented below
33       to give you a rough idea of how they all compare. In order to give a more-or-less
34       level playing field our test data was screened against all the libraries being
35       tested, and any unsupported domains removed, likewise for any test cases that
36       gave large errors or unexpected non-finite values.
37     </p>
38 <div class="caution"><table border="0" summary="Caution">
39 <tr>
40 <td rowspan="2" align="center" valign="top" width="25"><img alt="[Caution]" src="../../../../../doc/src/images/caution.png"></td>
41 <th align="left">Caution</th>
42 </tr>
43 <tr><td align="left" valign="top"><p>
44         You should exercise extreme caution when interpreting these results, relative
45         performance may vary by platform, the tests use data that gives good code
46         coverage of <span class="emphasis"><em>our</em></span> code, but which may skew the results
47         towards the corner cases. Finally, remember that different libraries make
48         different choices with regard to performance verses numerical stability.
49       </p></td></tr>
50 </table></div>
51 <p>
52       The first results compare standard library functions to Boost equivalents with
53       MSVC-14.0:
54     </p>
55 <div class="table">
56 <a name="math_toolkit.comparisons.table_Library_Comparison_with_Microsoft_Visual_C_version_14_0_on_Windows_x64"></a><p class="title"><b>Table&#160;20.7.&#160;Library Comparison with Microsoft Visual C++ version 14.0 on Windows
57       x64</b></p>
58 <div class="table-contents"><table class="table" summary="Library Comparison with Microsoft Visual C++ version 14.0 on Windows
59       x64">
60 <colgroup>
61 <col>
62 <col>
63 <col>
64 </colgroup>
65 <thead><tr>
66 <th>
67               <p>
68                 Function
69               </p>
70             </th>
71 <th>
72               <p>
73                 boost 1.61
74               </p>
75             </th>
76 <th>
77               <p>
78                 math.h
79               </p>
80             </th>
81 </tr></thead>
82 <tbody>
83 <tr>
84 <td>
85               <p>
86                 cbrt<br> (85/85 tests selected)
87               </p>
88             </td>
89 <td>
90               <p>
91                 <span class="green">1.00<br> (45ns)</span>
92               </p>
93             </td>
94 <td>
95               <p>
96                 <span class="blue">1.44<br> (65ns)</span>
97               </p>
98             </td>
99 </tr>
100 <tr>
101 <td>
102               <p>
103                 cyl_bessel_j (integer order)<br> (267/268 tests selected)
104               </p>
105             </td>
106 <td>
107               <p>
108                 <span class="green">1.00<br> (103ns)</span>
109               </p>
110             </td>
111 <td>
112               <p>
113                 <span class="red">2.11<br> (217ns)</span>
114               </p>
115             </td>
116 </tr>
117 <tr>
118 <td>
119               <p>
120                 cyl_neumann (integer order)<br> (428/428 tests selected)
121               </p>
122             </td>
123 <td>
124               <p>
125                 <span class="blue">1.57<br> (225ns)</span>
126               </p>
127             </td>
128 <td>
129               <p>
130                 <span class="green">1.00<br> (143ns)</span>
131               </p>
132             </td>
133 </tr>
134 <tr>
135 <td>
136               <p>
137                 erf<br> (950/950 tests selected)
138               </p>
139             </td>
140 <td>
141               <p>
142                 <span class="green">1.10<br> (23ns)</span>
143               </p>
144             </td>
145 <td>
146               <p>
147                 <span class="green">1.00<br> (21ns)</span>
148               </p>
149             </td>
150 </tr>
151 <tr>
152 <td>
153               <p>
154                 erfc<br> (950/950 tests selected)
155               </p>
156             </td>
157 <td>
158               <p>
159                 <span class="green">1.00<br> (22ns)</span>
160               </p>
161             </td>
162 <td>
163               <p>
164                 <span class="red">3.36<br> (74ns)</span>
165               </p>
166             </td>
167 </tr>
168 <tr>
169 <td>
170               <p>
171                 expm1<br> (80/80 tests selected)
172               </p>
173             </td>
174 <td>
175               <p>
176                 <span class="green">1.00<br> (10ns)</span>
177               </p>
178             </td>
179 <td>
180               <p>
181                 <span class="green">1.10<br> (11ns)</span>
182               </p>
183             </td>
184 </tr>
185 <tr>
186 <td>
187               <p>
188                 lgamma<br> (400/400 tests selected)
189               </p>
190             </td>
191 <td>
192               <p>
193                 <span class="green">1.00<br> (73ns)</span>
194               </p>
195             </td>
196 <td>
197               <p>
198                 <span class="blue">1.74<br> (127ns)</span>
199               </p>
200             </td>
201 </tr>
202 <tr>
203 <td>
204               <p>
205                 log1p<br> (80/80 tests selected)
206               </p>
207             </td>
208 <td>
209               <p>
210                 <span class="green">1.08<br> (14ns)</span>
211               </p>
212             </td>
213 <td>
214               <p>
215                 <span class="green">1.00<br> (13ns)</span>
216               </p>
217             </td>
218 </tr>
219 <tr>
220 <td>
221               <p>
222                 tgamma<br> (400/400 tests selected)
223               </p>
224             </td>
225 <td>
226               <p>
227                 <span class="green">1.00<br> (77ns)</span>
228               </p>
229             </td>
230 <td>
231               <p>
232                 <span class="red">12.12<br> (933ns)</span>
233               </p>
234             </td>
235 </tr>
236 </tbody>
237 </table></div>
238 </div>
239 <br class="table-break"><p>
240       On Linux with GCC, we can also compare to the TR1 functions, and to GSL and
241       RMath:
242     </p>
243 <p>
244       [table_Library_Comparison_with_GNU_C_version_5_1_0_on_linux]
245     </p>
246 <p>
247       And finally we can compare the statistical distributions to GSL, RMath and
248       DCDFLIB:
249     </p>
250 <p>
251       [table_Distribution_performance_comparison_with_GNU_C_version_5_1_0_on_linux]
252     </p>
253 </div>
254 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
255 <td align="left"></td>
256 <td align="right"><div class="copyright-footer">Copyright &#169; 2006-2019 Nikhar
257       Agrawal, Anton Bikineev, Paul A. Bristow, Marco Guazzone, Christopher Kormanyos,
258       Hubert Holin, Bruno Lalande, John Maddock, Jeremy Murphy, Matthew Pulver, Johan
259       R&#229;de, Gautam Sewani, Benjamin Sobotta, Nicholas Thompson, Thijs van den Berg,
260       Daryle Walker and Xiaogang Zhang<p>
261         Distributed under the Boost Software License, Version 1.0. (See accompanying
262         file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
263       </p>
264 </div></td>
265 </tr></table>
266 <hr>
267 <div class="spirit-nav">
268 <a accesskey="p" href="comp_compilers.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../perf.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="perf_test_app.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
269 </div>
270 </body>
271 </html>