Skip to content

Commit

Permalink
Draft: Add BWoS-queue backend to tokio
Browse files Browse the repository at this point in the history
This commit is a work-in-progress snapshot of BWoS for
tokio, with the intention to get early feedback.
Currently, the BWoS queue is just dropped in as a replacement,
with the intention to make benchmarking easier (just patch
downstream crates to use the modified version).

Before merging the queue should be integrated as an alternate
queue instead of replacing the current one.

The design of the BWoS queue was done by Jiawei Wang.

Co-authored-by: Jiawei Wang <jiawei.wang@huawei.com>
Designed-by: Jiawei Wang <jiawei.wang@huawei.com>
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
Signed-off-by: Jiawei Wang <jiawei.wang@huawei.com>
Signed-off-by: Ming Fu <ming.fu@huawei.com>
  • Loading branch information
jschwe and Jiawei Wang committed May 20, 2023
1 parent c84d0a1 commit b547247
Show file tree
Hide file tree
Showing 35 changed files with 5,347 additions and 528 deletions.
37 changes: 37 additions & 0 deletions bwosqueue/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[package]
name = "bwosqueue"
version = "1.0.0"
edition = "2018"

[dependencies]
# msrv currently 1.31 -> okay!
crossbeam-utils = { version = "0.8", default-features = false}
# MSRV # 1.51
array-init = "2.1"


[dev-dependencies]
criterion = { version = "0.4.0", features = ["html_reports"] }
core_affinity = "0.7.6"
rand = "0.8.5"
tracing = "0.1.37"


[target.'cfg(loom)'.dependencies]
loom = "0.5"

[features]
default = ["std"]
std = []
unstable = []
stats = []


[[bench]]
name = "bench"
harness = false

[profile.bench]
debug-assertions = false
lto = true
opt-level = 3
Loading

0 comments on commit b547247

Please sign in to comment.