test(bench): add benchmark

This commit is contained in:
EdJoPaTo
2024-04-30 22:38:16 +02:00
parent 37ade72330
commit 701be9315d
2 changed files with 157 additions and 0 deletions
+13
View File
@@ -17,10 +17,23 @@ unsafe_code = "forbid"
pedantic = "warn"
nursery = "warn"
[profile.bench]
codegen-units = 1
debug = true
lto = true
[dependencies]
ratatui = { version = "0.26", default-features = false }
unicode-width = "0.1"
[dev-dependencies]
criterion = "0.5"
crossterm = "0.27"
ratatui = "0.26"
[target.'cfg(target_family = "unix")'.dev-dependencies]
pprof = { version = "0.13", features = ["criterion", "flamegraph"] }
[[bench]]
name = "bench"
harness = false