An open API service indexing awesome lists of open source software.

https://github.com/chainbound/async-rust-benchmarks

A collection of async Rust benchmarks aimed to understand the performance implications of various async patterns.
https://github.com/chainbound/async-rust-benchmarks

async benchmark rust tokio

Last synced: 10 months ago
JSON representation

A collection of async Rust benchmarks aimed to understand the performance implications of various async patterns.

Awesome Lists containing this project

README

          

# Async Rust Performance Benchmarks

> Benchmarking the performance of async Rust primitives and patterns.

## Benchmarks
| Benchmark | Description | Code | Results |
|-----------|-------------|------|-------|
| [`01.rs`](benches/01.rs) | `Future` implementation vs. `tokio::select!` loop for actors | [`src/01/`](src/01) | [`README.md`](src/01/README.md) |
| [`02.rs`](benches/02.rs) | `JoinSet` vs. `FuturesUnordered` | | |
| [`03.rs`](benches/03.rs) | The cost of `Pin>>` (`async-trait` etc) | | |
| [`04.rs`](benches/04.rs) | When to use `spawn_blocking` | | |