Cargo.toml 941 B

123456789101112131415161718192021222324252627282930313233343536
  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. # These feature flags can be disabled if we don't want to run comparison
  9. # benchmarks, such as when just comparing two `thingbuf` versions.
  10. comparisons = ["crossbeam", "async-std", "futures", "tokio-sync", "std-sync"]
  11. tokio-sync = ["tokio/sync"]
  12. std-sync = []
  13. [dependencies]
  14. thingbuf = { path = ".." }
  15. criterion = { version = "0.3.5", features = ["async_tokio"] }
  16. # for comparison benchmarks
  17. tokio = { version = "1.14.0", features = ["rt", "rt-multi-thread", "sync"] }
  18. crossbeam = { version = "0.8.1", optional = true }
  19. async-std = { version = "1", optional = true }
  20. futures = { version = "0.3", optional = true }
  21. [[bench]]
  22. name = "sync_spsc"
  23. harness = false
  24. [[bench]]
  25. name = "async_mpsc"
  26. harness = false
  27. [[bench]]
  28. name = "async_spsc"
  29. harness = false