Skip to content

Commit 12f09a7

Browse files
authored
Merge pull request compio-rs#225 from Berrysoft/new-bench
refactor(bench): rewrite fs bench
2 parents 14361dd + 2f2898c commit 12f09a7

File tree

2 files changed

+609
-74
lines changed

2 files changed

+609
-74
lines changed

compio/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ compio-macros = { workspace = true }
5151
criterion = { workspace = true, features = ["async_tokio"] }
5252
futures-channel = { workspace = true }
5353
futures-util = { workspace = true }
54+
rand = "0.8.5"
5455
tempfile = { workspace = true }
5556
tokio = { workspace = true, features = [
5657
"fs",
@@ -69,6 +70,9 @@ windows-sys = { workspace = true, features = ["Win32_Storage_FileSystem"] }
6970
nix = { workspace = true, features = ["fs"] }
7071
libc = { workspace = true }
7172

73+
[target.'cfg(target_os = "linux")'.dev-dependencies]
74+
monoio = { version = "0.2.2", default-features = false, features = ["iouring"] }
75+
7276
[features]
7377
default = ["runtime", "io-uring"]
7478
io-uring = ["compio-driver/io-uring"]
@@ -116,6 +120,8 @@ nightly = [
116120
"try_trait_v2",
117121
]
118122

123+
real_blackbox = ["criterion/real_blackbox"]
124+
119125
[[example]]
120126
name = "basic"
121127
required-features = ["macros"]

0 commit comments

Comments
 (0)