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 automatic benchmarking comparisons between other channels #5

Open
faern opened this issue Apr 28, 2020 · 0 comments
Open

Add automatic benchmarking comparisons between other channels #5

faern opened this issue Apr 28, 2020 · 0 comments

Comments

@faern
Copy link
Owner

faern commented Apr 28, 2020

Even if correctness and API niceness is the most important, speed is what sells :)

Write benchmarks that performs some common channel operations and compare the times between oneshot and a number of other popular channels. Of course good to compare with other oneshot channel types, but since normal channels can be used for single messages it makes sense to compare with those as well

  • std::sync::mpsc::channel() - Is not locked to be oneshot only. But it has a special oneshot mode active until the channel is used for multiple messages.

Oneshot channels

  • futures::channel::oneshot::channel() - has try_recv otherwise can only receive async.
  • tokio::sync::oneshot::channel - has try_recv otherwise can only receive async.

Other channels it might make sense to compare with

  • crossbeam_channel::bounded(1)
  • async_std::sync::channel(1)
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

No branches or pull requests

1 participant