Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.


Performance of Boost.Coroutine2 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 1.1. Performance of asymmetric coroutines (using execution_context)



construction (protected stack-allocator)

construction (standard stack-allocator)

x86_64 [a]

16 ns / 50 cycles

7 µs / 22133 cycles

1.7 µs / 5383 cycles

[a] Intel Core i7-4770S 3.10GHz