performance.qbk 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. [/
  2. Copyright Oliver Kowalke 2009.
  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. [section:performance Performance]
  8. Performance of __boost_coroutine__ was measured on the platforms shown in the
  9. following table. Performance measurements were taken using `rdtsc` and
  10. `boost::chrono::high_resolution_clock`, with overhead corrections, on x86
  11. platforms. In each case, cache warm-up was accounted for, and the one
  12. running thread was pinned to a single CPU.
  13. [table Performance of asymmetric coroutines
  14. [
  15. [Platform]
  16. [switch]
  17. [construction (protected stack-allocator)]
  18. [construction (preallocated stack-allocator)]
  19. [construction (standard stack-allocator)]
  20. ]
  21. [
  22. [i386 (AMD Athlon 64 DualCore 4400+, Linux 32bit)]
  23. [49 ns / 50 cycles]
  24. [51 \u00b5s / 51407 cycles]
  25. [14 \u00b5s / 15231 cycles]
  26. [14 \u00b5s / 15216 cycles]
  27. ]
  28. [
  29. [x86_64 (Intel Core2 Q6700, Linux 64bit)]
  30. [12 ns / 39 cycles]
  31. [16 \u00b5s / 41802 cycles]
  32. [6 \u00b5s / 10350 cycles]
  33. [6 \u00b5s / 18817 cycles]
  34. ]
  35. ]
  36. [table Performance of symmetric coroutines
  37. [
  38. [Platform]
  39. [switch]
  40. [construction (protected stack-allocator)]
  41. [construction (preallocated stack-allocator)]
  42. [construction (standard stack-allocator)]
  43. ]
  44. [
  45. [i386 (AMD Athlon 64 DualCore 4400+, Linux 32bit)]
  46. [47 ns / 49 cycles]
  47. [27 \u00b5s / 28002 cycles]
  48. [98 ns / 116 cycles]
  49. [319 ns / 328 cycles]
  50. ]
  51. [
  52. [x86_64 (Intel Core2 Q6700, Linux 64bit)]
  53. [10 ns / 33 cycles]
  54. [10 \u00b5s / 22828 cycles]
  55. [42 ns / 710 cycles]
  56. [135 ns / 362 cycles]
  57. ]
  58. ]
  59. [endsect]