1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 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 1. Context"> 8<link rel="up" href="../index.html" title="Chapter 1. Context"> 9<link rel="prev" href="struct__preallocated_.html" title="Struct preallocated"> 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="struct__preallocated_.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="context.performance"></a><a name="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="context.performance.performance_of_context_switch"></a><p class="title"><b>Table 1.1. 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<col> 42</colgroup> 43<thead><tr> 44<th> 45 <p> 46 callcc()/continuation (fcontext_t) 47 </p> 48 </th> 49<th> 50 <p> 51 callcc()/continuation (ucontext_t) 52 </p> 53 </th> 54<th> 55 <p> 56 callcc()/continuation (Windows-Fiber) 57 </p> 58 </th> 59</tr></thead> 60<tbody><tr> 61<td> 62 <p> 63 9 ns / 19 CPU cycles 64 </p> 65 </td> 66<td> 67 <p> 68 547 ns / 1130 CPU cycles 69 </p> 70 </td> 71<td> 72 <p> 73 49 ns / 98 CPU cycles 74 </p> 75 </td> 76</tr></tbody> 77</table></div> 78</div> 79<br class="table-break"> 80</div> 81<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 82<td align="left"></td> 83<td align="right"><div class="copyright-footer">Copyright © 2014 Oliver Kowalke<p> 84 Distributed under the Boost Software License, Version 1.0. (See accompanying 85 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>) 86 </p> 87</div></td> 88</tr></table> 89<hr> 90<div class="spirit-nav"> 91<a accesskey="p" href="struct__preallocated_.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> 92</div> 93</body> 94</html> 95