performance.qbk 846 B

12345678910111213141516171819202122232425262728
  1. [/
  2. Copyright Oliver Kowalke 2014.
  3. Distributed under the Boost Software License, Version 1.0.
  4. (See accompanying file LICENSE_1_0.txt or copy at
  5. http://www.boost.org/LICENSE_1_0.txt
  6. ]
  7. [#performance]
  8. [section:performance Performance]
  9. Performance measurements were taken using `std::chrono::highresolution_clock`,
  10. with overhead corrections.
  11. The code was compiled with gcc-6.3.1, using build options:
  12. variant = release, optimization = speed.
  13. Tests were executed on dual Intel XEON E5 2620v4 2.2GHz, 16C/32T, 64GB RAM,
  14. running Linux (x86_64).
  15. [table Performance of context switch
  16. [[callcc()/continuation (fcontext_t)] [callcc()/continuation (ucontext_t)] [callcc()/continuation (Windows-Fiber)]]
  17. [
  18. [9 ns / 19 CPU cycles]
  19. [547 ns / 1130 CPU cycles]
  20. [49 ns / 98 CPU cycles]
  21. ]
  22. ]
  23. [endsect]