Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add task_thread_pool to benchmarks #32

Merged
merged 3 commits into from
May 21, 2023
Merged

Add task_thread_pool to benchmarks #32

merged 3 commits into from
May 21, 2023

Conversation

alugowski
Copy link
Contributor

Add https://github.com/alugowski/task_thread_pool to the benchmarks.

task_thread_pool is a C++11 thread pool. It's not work-stealing, with performance between BS::thread_pool and the two work-stealing pools.

On my Mac:

| relative |               ms/op |                op/s |    err% |     total | matrix multiplication 256x256
|---------:|--------------------:|--------------------:|--------:|----------:|:------------------------------
|   100.0% |               84.86 |               11.78 |    0.5% |     15.24 | `dp::thread_pool - std::function`
|    69.9% |              121.44 |                8.23 |    4.8% |     21.32 | `BS::thread_pool`
|    71.9% |              118.07 |                8.47 |    5.7% |     21.19 | :wavy_dash: `task_thread_pool` (Unstable with ~16.3 iters. Increase `minEpochIterations` to e.g. 163)
|   117.7% |               72.08 |               13.87 |    3.2% |     12.98 | `riften::Thiefpool`

| relative |               ms/op |                op/s |    err% |     total | matrix multiplication 512x512
|---------:|--------------------:|--------------------:|--------:|----------:|:------------------------------
|   100.0% |               55.32 |               18.08 |    0.4% |      9.92 | `dp::thread_pool - std::function`
|    48.8% |              113.34 |                8.82 |    4.0% |     20.24 | `BS::thread_pool`
|    54.9% |              100.85 |                9.92 |    2.9% |     17.86 | `task_thread_pool`
|   105.6% |               52.37 |               19.09 |    0.4% |      9.44 | `riften::Thiefpool`

@DeveloperPaul123
Copy link
Owner

@alugowski Thanks for submitting this! Some really interesting results on my machine (Windows 11) with MSVC and Clang 16.
I've updated the benchmark results to reflect the new results with your library. Thanks again!

@DeveloperPaul123 DeveloperPaul123 merged commit fb7b9ac into DeveloperPaul123:master May 21, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants