2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-16 13:22:17 +00:00
Files
fiber/doc/performance.qbk
Oliver Kowalke ca7e8be37c update docu
2015-05-23 18:27:08 +02:00

50 lines
1.3 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 measurements were taken using `std::chrono::highresolution_clock`,
with overhead corrections.
The code was compiled using the build options:
variant = release, optimization = speed
[footnote Intel Core2 Q6700, x86_64, 3GHz].
[table Overhead of creating and joining
[[thread] [fiber] [tbb] [qthread]]
[[31 \u00b5s] [1.5 \u00b5s] [570 ns] [620 ns]]
]
[table Overhead of detach
[[thread] [fiber]]
[[20 \u00b5s] [3 \u00b5s]]
]
[table Overhead of yield
[[thread] [fiber]]
[[38 \u00b5s] [1.9 \u00b5s]]
]
[table Overhead of waiting on a future
[[thread] [fiber]]
[[32 \u00b5s] [2.7 \u00b5s]]
]
[table Scaling of creating and joining
[[average of] [thread] [fiber]]
[[10] [50.65 \u00b5s] [3.769 \u00b5s]]
[[50] [52.99 \u00b5s] [2.789 \u00b5s]]
[[100] [50.44 \u00b5s] [2.450 \u00b5s]]
[[500] [45.19 \u00b5s] [2.919 \u00b5s]]
[[1000] [42.59 \u00b5s] [3.607 \u00b5s]]
[[5000] [42.30 \u00b5s] [4.579 \u00b5s]]
[[10000] [41.07 \u00b5s] [4.219 \u00b5s]]
]
[endsect]