Skip to content

Commit b547247

Browse files
jschweJiawei Wang
andcommitted
Draft: Add BWoS-queue backend to tokio
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 <[email protected]> Designed-by: Jiawei Wang <[email protected]> Signed-off-by: Jonathan Schwender <[email protected]> Signed-off-by: Jiawei Wang <[email protected]> Signed-off-by: Ming Fu <[email protected]>
1 parent c84d0a1 commit b547247

35 files changed

+5347
-528
lines changed

bwosqueue/Cargo.toml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[package]
2+
name = "bwosqueue"
3+
version = "1.0.0"
4+
edition = "2018"
5+
6+
[dependencies]
7+
# msrv currently 1.31 -> okay!
8+
crossbeam-utils = { version = "0.8", default-features = false}
9+
# MSRV # 1.51
10+
array-init = "2.1"
11+
12+
13+
[dev-dependencies]
14+
criterion = { version = "0.4.0", features = ["html_reports"] }
15+
core_affinity = "0.7.6"
16+
rand = "0.8.5"
17+
tracing = "0.1.37"
18+
19+
20+
[target.'cfg(loom)'.dependencies]
21+
loom = "0.5"
22+
23+
[features]
24+
default = ["std"]
25+
std = []
26+
unstable = []
27+
stats = []
28+
29+
30+
[[bench]]
31+
name = "bench"
32+
harness = false
33+
34+
[profile.bench]
35+
debug-assertions = false
36+
lto = true
37+
opt-level = 3

0 commit comments

Comments
 (0)