2
0
mirror of https://github.com/boostorg/context.git synced 2026-02-21 15:02:26 +00:00
Files
context/doc/performance.qbk
2016-11-11 08:05:13 +01:00

30 lines
966 B
Plaintext

[/
Copyright Oliver Kowalke 2014.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt
]
[section:performance Performance]
Performance of __boost_context__ was measured on the platforms shown in the
following table. Performance measurements were taken using `rdtsc` and
`boost::chrono::high_resolution_clock`, with
overhead corrections, on x86 platforms. In each case, cache warm-up was
accounted for, and the one running thread was pinned
to a single CPU. The code was compiled using the build options,
'variant = release cxxflags = -DBOOST_DISABLE_ASSERTS'.
[table Performance of context switch
[[Platform] [ucontext_t] [execution_context (v1)] [execution_context (v2)]]
[
[x86_64 [footnote Intel Core i7-4770S 3.10GHz]]
[547 ns / 1433 cycles]
[30 ns / 80 cycles]
[8 ns / 25 cycles]
]
]
[endsect]