Skip to content

Instantly share code, notes, and snippets.

@LiSongMWO
Created July 20, 2017 15:40
Show Gist options
  • Save LiSongMWO/17f2735d22636cb3a4b275387cabacad to your computer and use it in GitHub Desktop.
Save LiSongMWO/17f2735d22636cb3a4b275387cabacad to your computer and use it in GitHub Desktop.
Benchmark results for different thread pool types.
=========================================
Benchmark with random task execution time
=========================================
Single queue thread pool: 2082 ms
Multi queue thread pool: 2220 ms
Work stealing queue thread pool: 11036 ms
Boost asio based thread pool: 2174 ms
=========================================
Benchmark with empty task
=========================================
Single queue thread pool: 124 ms
Multi queue thread pool: 107 ms
Work stealing queue thread pool: 480 ms
Boost asio based thread pool: 134 ms
=========================================
Benchmark with light weight data
=========================================
Single queue thread pool: 123 ms
Multi queue thread pool: 107 ms
Work stealing queue thread pool: 494 ms
Boost asio based thread pool: 130 ms
=========================================
Benchmark with heavy data
=========================================
Single queue thread pool: 131 ms
Multi queue thread pool: 107 ms
Work stealing queue thread pool: 500 ms
Boost asio based thread pool: 134 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment