test(bench): add benchmark
This commit is contained in:
+13
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user