https://github.com/inkooboo/thread-pool-cpp
High performance C++11 thread pool
https://github.com/inkooboo/thread-pool-cpp
Last synced: 2 months ago
JSON representation
High performance C++11 thread pool
- Host: GitHub
- URL: https://github.com/inkooboo/thread-pool-cpp
- Owner: inkooboo
- License: mit
- Created: 2013-07-17T14:43:45.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2020-10-04T13:43:40.000Z (over 4 years ago)
- Last Synced: 2024-07-31T22:46:33.885Z (10 months ago)
- Language: C++
- Homepage:
- Size: 136 KB
- Stars: 563
- Watchers: 29
- Forks: 125
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- AwesomeCppGameDev - thread-pool-cpp
README
thread-pool-cpp
=================
[](https://travis-ci.org/inkooboo/thread-pool-cpp)
[](https://codecov.io/gh/inkooboo/thread-pool-cpp)
[](./LICENSE)* It is highly scalable and fast.
* It is header only.
* No external dependencies, only standard library needed.
* It implements both work-stealing and work-distribution balancing startegies.
* It implements cooperative scheduling strategy.Example run:
Post job to thread pool is much faster than for boost::asio based thread pool.Benchmark job reposting
***thread pool cpp***
reposted 1000001 in 61.6754 ms
reposted 1000001 in 62.0187 ms
reposted 1000001 in 62.8785 ms
reposted 1000001 in 70.2714 ms
***asio thread pool***
reposted 1000001 in 1381.58 ms
reposted 1000001 in 1390.35 ms
reposted 1000001 in 1391.84 ms
reposted 1000001 in 1393.19 msSee benchmark/benchmark.cpp for benchmark code.
All code except [MPMCBoundedQueue](https://github.com/inkooboo/thread-pool-cpp/blob/master/include/thread_pool/mpmc_bounded_queue.hpp)
is under MIT license.