Cargo.toml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. [package]
  2. name = "bench"
  3. version = "0.1.0"
  4. edition = "2021"
  5. publish = false
  6. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
  7. [features]
  8. default = []
  9. # These feature flags can be disabled if we don't want to run comparison
  10. # benchmarks, such as when just comparing two `thingbuf` versions.
  11. comparisons = ["crossbeam", "async-std", "futures", "tokio-sync", "std-sync"]
  12. tokio-sync = ["tokio/sync"]
  13. std-sync = []
  14. [dependencies]
  15. thingbuf = { path = ".." }
  16. criterion = { version = "0.3.5", features = ["async_tokio"] }
  17. # for comparison benchmarks
  18. tokio = { version = "1.14.0", features = ["rt", "rt-multi-thread", "sync", "parking_lot"] }
  19. crossbeam = { version = "0.8.1", optional = true }
  20. async-std = { version = "1", optional = true }
  21. futures = { version = "0.3", optional = true }
  22. [[bench]]
  23. name = "sync_spsc"
  24. harness = false
  25. [[bench]]
  26. name = "async_mpsc"
  27. harness = false
  28. [[bench]]
  29. name = "async_mpsc_nowait"
  30. harness = false
  31. [[bench]]
  32. name = "async_spsc"
  33. harness = false