• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[/
2          Copyright Oliver Kowalke 2014.
3 Distributed under the Boost Software License, Version 1.0.
4    (See accompanying file LICENSE_1_0.txt or copy at
5          http://www.boost.org/LICENSE_1_0.txt
6]
7
8[#performance]
9[section:performance Performance]
10
11Performance measurements were taken using `std::chrono::highresolution_clock`,
12with overhead corrections.
13The code was compiled with gcc-6.3.1, using build options:
14variant = release, optimization = speed.
15Tests were executed on dual Intel XEON E5 2620v4 2.2GHz, 16C/32T, 64GB RAM,
16running Linux (x86_64).
17
18[table Performance of context switch
19    [[callcc()/continuation (fcontext_t)] [callcc()/continuation (ucontext_t)] [callcc()/continuation (Windows-Fiber)]]
20    [
21        [9 ns / 19 CPU cycles]
22        [547 ns / 1130 CPU cycles]
23        [49 ns / 98 CPU cycles]
24    ]
25]
26
27
28[endsect]
29