mirror of
https://github.com/boostorg/coroutine.git
synced 2026-02-10 11:22:32 +00:00
66 lines
1.8 KiB
Plaintext
66 lines
1.8 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_coroutine__ 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.
|
|
|
|
[table Performance of asymmetric coroutines
|
|
[
|
|
[Platform]
|
|
[switch]
|
|
[construction (protected stack-allocator)]
|
|
[construction (preallocated stack-allocator)]
|
|
[construction (standard stack-allocator)]
|
|
]
|
|
[
|
|
[i386 (AMD Athlon 64 DualCore 4400+, Linux 32bit)]
|
|
[53 ns / 54 cycles]
|
|
[195 \u00b5s / 216006 cycles]
|
|
[9 \u00b5s / 9691 cycles]
|
|
[629 ns / 603 cycles]
|
|
]
|
|
[
|
|
[x86_64 (Intel Core2 Q6700, Linux 64bit)]
|
|
[12 ns / 39 cycles]
|
|
[37 \u00b5s / 101999 cycles]
|
|
[3 \u00b5s / 9719 cycles]
|
|
[248 ns / 632 cycles]
|
|
]
|
|
]
|
|
|
|
[table Performance of symmetric coroutines
|
|
[
|
|
[Platform]
|
|
[switch]
|
|
[construction (protected stack-allocator)]
|
|
[construction (preallocated stack-allocator)]
|
|
[construction (standard stack-allocator)]
|
|
]
|
|
[
|
|
[i386 (AMD Athlon 64 DualCore 4400+, Linux 32bit)]
|
|
[50 ns / 52 cycles]
|
|
[221 \u00b5s / 214170 cycles]
|
|
[245 ns / 245 cycles]
|
|
[481 ns / 501 cycles]
|
|
]
|
|
[
|
|
[x86_64 (Intel Core2 Q6700, Linux 64bit)]
|
|
[10 ns / 33 cycles]
|
|
[35 \u00b5s / 90504 cycles]
|
|
[95 ns / 241 cycles]
|
|
[199 ns / 508 cycles]
|
|
]
|
|
]
|
|
|
|
|
|
[endsect]
|