• 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[section:performance Performance]
9
10Performance measurements were taken using `std::chrono::highresolution_clock`,
11with overhead corrections.
12The code was compiled with gcc-6.3.1, using build options:
13variant = release, optimization = speed.
14Tests were executed on dual Intel XEON E5 2620v4 2.2GHz, 16C/32T, 64GB RAM,
15running Linux (x86_64).
16
17[table Performance of context switch
18    [[using __fcontext__] [using [@boost:/libs/context/doc/html/context/cc.html#implementation ucontext_t]]]
19    [
20        [26 ns / 56 CPU cycles]
21        [542 ns / 1146 CPU cycles]
22    ]
23]
24
25[endsect]
26