]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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 | ||
10 | Performance of __boost_context__ was measured on the platforms shown in the | |
11 | following table. Performance measurements were taken using `rdtsc` and | |
12 | `boost::chrono::high_resolution_clock`, with | |
13 | overhead corrections, on x86 platforms. In each case, cache warm-up was | |
14 | accounted for, and the one running thread was pinned | |
15 | to a single CPU. The code was compiled using the build options, | |
16 | 'variant = release cxxflags = -DBOOST_DISABLE_ASSERTS'. | |
17 | ||
18 | [table Performance of context switch | |
19 | [[Platform] [ucontext_t] [execution_context (v1)] [execution_context (v2)]] | |
20 | [ | |
21 | [x86_64 [footnote Intel Core2 Q6700]] | |
22 | [547 ns / 1433 cycles] | |
23 | [51 ns / 141 cycles] | |
24 | [7 ns / 18 cycles] | |
25 | ] | |
26 | ] | |
27 | ||
28 | ||
29 | [endsect] |