-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Before: ``` Benchmark Time CPU Iterations --------------------------------------------------------------------------------------------------------------- producer_consumer<concurrent::MpscQueue<std::size_t>>/1/1/1000000000 419 ns 419 ns 1722668 producer_consumer<concurrent::MpscQueue<std::size_t>>/2/1/1000000000 627 ns 621 ns 1099251 producer_consumer<concurrent::MpscQueue<std::size_t>>/4/1/1000000000 959 ns 956 ns 553335 ``` After: ``` Benchmark Time CPU Iterations --------------------------------------------------------------------------------------------------------------- producer_consumer<concurrent::MpscQueue<std::size_t>>/1/1/1000000000 209 ns 209 ns 3428423 producer_consumer<concurrent::MpscQueue<std::size_t>>/2/1/1000000000 534 ns 534 ns 1000000 producer_consumer<concurrent::MpscQueue<std::size_t>>/4/1/1000000000 624 ns 624 ns 984017 ``` Now the overhead mostly comes from `engine::Semaphore` and `engine::SingleConsumerEvent` that are used in `MpscQueue` for awaiting non-emptiness and non-fullness. commit_hash:cc8529376d0f83d5344648599b107a6ef268f2b5
- Loading branch information
Showing
20 changed files
with
153 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.