2 Commits

Author SHA1 Message Date
M.Amin Rayej
b046c0dcbb
benches: use criterion instead of bencher (#5981) 2023-09-10 16:42:53 +02:00
Christopher Hunt
e106c4d32b
benches: benchmark for things in block_on (#5440)
This additional benchmark exercises a common request/reply pattern using an MPSC for requests along with a oneshot payload as a reply mechanism. When used in a current threaded scenario, the bench is 17 times faster on my machine than when using the multi-threaded runtime and one worker thread. Not only that, but if I increase the number of worker threads to 6, performance degrades further.

Does this suggest a scheduling problem with the multi-threaded runtime?

No matter what, hopefully the benchmarks are a useful addition.
2023-02-14 23:05:10 +00:00