mirror of
https://github.com/boostorg/context.git
synced 2026-01-27 18:52:16 +00:00
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
[/
|
|
Copyright Oliver Kowalke 2009.
|
|
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`, with
|
|
overhead corrections, on x86 platforms. In each case, stack protection was
|
|
active, 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'.
|
|
|
|
The numbers in the table are the number of cycles per iteration, based upon an
|
|
average computed over 1000 iterations.
|
|
|
|
[table Perfomance of context switch
|
|
[[Platform] [ucontext_t] [fcontext_t]]
|
|
[
|
|
[AMD Athlon 64 DualCore 4400+ (32bit Linux)]
|
|
[1771 cycles]
|
|
[146 cycles]
|
|
]
|
|
[
|
|
[Intel Core2 Quad (64bit Linux)]
|
|
[1739 cycles]
|
|
[117 cycles]
|
|
]
|
|
]
|
|
|
|
|
|
[endsect]
|