diff --git a/.gitignore b/.gitignore index 96ef6c0..84b4036 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ /target Cargo.lock +flamegraph.svg +perf.data +perf.data.old diff --git a/Cargo.toml b/Cargo.toml index 8096db1..67dbd85 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,15 +23,24 @@ __test = [] [dependencies] crossbeam-utils = { version = "0.8.12", default-features = false } -parking = { version = "2.0.0", optional = true } +parking = { version = "2.0", optional = true } [dev-dependencies] -criterion = "0.3.4" waker-fn = "1" +[dev-dependencies.criterion] +version = "0.4" +default-features = false +features = ["cargo_bench_support"] + [[bench]] name = "bench" harness = false [lib] bench = false + +[profile.release] +codegen-units = 1 +debug = 1 +lto = "thin"