Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / coroutine2 / doc / html / coroutine2 / performance.html
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Performance</title>
5 <link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7 <link rel="home" href="../index.html" title="Chapter&#160;1.&#160;Coroutine2">
8 <link rel="up" href="../index.html" title="Chapter&#160;1.&#160;Coroutine2">
9 <link rel="prev" href="stack/sanitizers.html" title="Support for sanitizers">
10 <link rel="next" href="architectures.html" title="Architectures">
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="stack/sanitizers.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="architectures.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="coroutine2.performance"></a><a class="link" href="performance.html" title="Performance">Performance</a>
28 </h2></div></div></div>
29 <p>
30       Performance measurements were taken using <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">highresolution_clock</span></code>,
31       with overhead corrections. The code was compiled with gcc-6.3.1, using build
32       options: variant = release, optimization = speed. Tests were executed on dual
33       Intel XEON E5 2620v4 2.2GHz, 16C/32T, 64GB RAM, running Linux (x86_64).
34     </p>
35 <div class="table">
36 <a name="coroutine2.performance.performance_of_context_switch"></a><p class="title"><b>Table&#160;1.1.&#160;Performance of context switch</b></p>
37 <div class="table-contents"><table class="table" summary="Performance of context switch">
38 <colgroup>
39 <col>
40 <col>
41 </colgroup>
42 <thead><tr>
43 <th>
44               <p>
45                 using <a href="../../../../../libs/context/doc/html/context/cc.html#implementation" target="_top">fcontext_t</a>
46               </p>
47             </th>
48 <th>
49               <p>
50                 using <a href="../../../../../libs/context/doc/html/context/cc.html#implementation" target="_top">ucontext_t</a>
51               </p>
52             </th>
53 </tr></thead>
54 <tbody><tr>
55 <td>
56               <p>
57                 26 ns / 56 CPU cycles
58               </p>
59             </td>
60 <td>
61               <p>
62                 542 ns / 1146 CPU cycles
63               </p>
64             </td>
65 </tr></tbody>
66 </table></div>
67 </div>
68 <br class="table-break">
69 </div>
70 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
71 <td align="left"></td>
72 <td align="right"><div class="copyright-footer">Copyright &#169; 2014 Oliver Kowalke<p>
73         Distributed under the Boost Software License, Version 1.0. (See accompanying
74         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>)
75       </p>
76 </div></td>
77 </tr></table>
78 <hr>
79 <div class="spirit-nav">
80 <a accesskey="p" href="stack/sanitizers.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="architectures.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
81 </div>
82 </body>
83 </html>