2019-12-24 20:53:20 -08:00
|
|
|
[package]
|
|
|
|
|
name = "benches"
|
|
|
|
|
version = "0.0.0"
|
|
|
|
|
publish = false
|
2023-06-12 02:21:50 +09:00
|
|
|
edition = "2021"
|
2024-10-23 18:48:07 +02:00
|
|
|
license = "MIT"
|
2019-12-24 20:53:20 -08:00
|
|
|
|
2023-02-27 10:21:42 -08:00
|
|
|
[features]
|
|
|
|
|
test-util = ["tokio/test-util"]
|
|
|
|
|
|
2019-12-24 20:53:20 -08:00
|
|
|
[dependencies]
|
2021-05-05 21:49:00 +02:00
|
|
|
tokio = { version = "1.5.0", path = "../tokio", features = ["full"] }
|
2023-09-10 18:12:53 +03:30
|
|
|
criterion = "0.5.1"
|
2025-05-28 13:32:24 +02:00
|
|
|
rand = "0.9"
|
|
|
|
|
rand_chacha = "0.9"
|
2019-12-24 20:53:20 -08:00
|
|
|
|
2021-05-05 21:49:00 +02:00
|
|
|
[dev-dependencies]
|
2021-12-10 13:16:17 -05:00
|
|
|
tokio-util = { version = "0.7.0", path = "../tokio-util", features = ["full"] }
|
2024-10-23 18:48:07 +02:00
|
|
|
tokio-stream = { version = "0.1", path = "../tokio-stream" }
|
2021-05-05 21:49:00 +02:00
|
|
|
|
2020-09-22 15:40:44 -07:00
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
|
|
|
libc = "0.2.42"
|
|
|
|
|
|
2019-12-24 20:53:20 -08:00
|
|
|
[[bench]]
|
|
|
|
|
name = "spawn"
|
|
|
|
|
path = "spawn.rs"
|
|
|
|
|
harness = false
|
2020-01-27 23:48:35 -05:00
|
|
|
|
2024-01-27 22:52:55 +04:00
|
|
|
[[bench]]
|
|
|
|
|
name = "sync_broadcast"
|
|
|
|
|
path = "sync_broadcast.rs"
|
|
|
|
|
harness = false
|
|
|
|
|
|
2020-01-27 23:48:35 -05:00
|
|
|
[[bench]]
|
2020-11-13 19:30:52 -08:00
|
|
|
name = "sync_mpsc"
|
|
|
|
|
path = "sync_mpsc.rs"
|
2020-01-27 23:48:35 -05:00
|
|
|
harness = false
|
2020-03-05 10:31:37 -08:00
|
|
|
|
2023-02-15 10:05:10 +11:00
|
|
|
[[bench]]
|
|
|
|
|
name = "sync_mpsc_oneshot"
|
|
|
|
|
path = "sync_mpsc_oneshot.rs"
|
|
|
|
|
harness = false
|
|
|
|
|
|
2023-02-18 15:51:08 +01:00
|
|
|
[[bench]]
|
|
|
|
|
name = "sync_watch"
|
|
|
|
|
path = "sync_watch.rs"
|
|
|
|
|
harness = false
|
|
|
|
|
|
2023-05-20 17:08:00 -07:00
|
|
|
[[bench]]
|
|
|
|
|
name = "rt_current_thread"
|
|
|
|
|
path = "rt_current_thread.rs"
|
|
|
|
|
harness = false
|
|
|
|
|
|
2020-03-05 10:31:37 -08:00
|
|
|
[[bench]]
|
2020-11-13 19:30:52 -08:00
|
|
|
name = "rt_multi_threaded"
|
|
|
|
|
path = "rt_multi_threaded.rs"
|
2020-03-05 10:31:37 -08:00
|
|
|
harness = false
|
2020-03-23 13:45:48 -07:00
|
|
|
|
2023-04-19 13:07:10 +02:00
|
|
|
[[bench]]
|
|
|
|
|
name = "sync_notify"
|
|
|
|
|
path = "sync_notify.rs"
|
|
|
|
|
harness = false
|
2020-03-23 13:45:48 -07:00
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
|
name = "sync_rwlock"
|
|
|
|
|
path = "sync_rwlock.rs"
|
|
|
|
|
harness = false
|
|
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
|
name = "sync_semaphore"
|
|
|
|
|
path = "sync_semaphore.rs"
|
|
|
|
|
harness = false
|
2020-09-22 15:40:44 -07:00
|
|
|
|
2025-06-11 10:07:34 +02:00
|
|
|
[[target.'cfg(unix)'.bench]]
|
2020-09-22 15:40:44 -07:00
|
|
|
name = "signal"
|
|
|
|
|
path = "signal.rs"
|
|
|
|
|
harness = false
|
2021-05-05 21:49:00 +02:00
|
|
|
|
2025-06-11 10:07:34 +02:00
|
|
|
[[target.'cfg(unix)'.bench]]
|
2021-05-05 21:49:00 +02:00
|
|
|
name = "fs"
|
|
|
|
|
path = "fs.rs"
|
|
|
|
|
harness = false
|
2022-10-03 11:58:21 +01:00
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
|
name = "copy"
|
|
|
|
|
path = "copy.rs"
|
|
|
|
|
harness = false
|
2023-02-27 10:21:42 -08:00
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
|
name = "time_now"
|
|
|
|
|
path = "time_now.rs"
|
|
|
|
|
harness = false
|
2024-05-03 21:37:52 +08:00
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
|
name = "time_timeout"
|
|
|
|
|
path = "time_timeout.rs"
|
|
|
|
|
harness = false
|
2025-01-26 01:46:21 +09:00
|
|
|
|
|
|
|
|
[lints]
|
|
|
|
|
workspace = true
|