Skip to content

Commit fb1bf3c

Browse files
committed
test: add benchmarks for ui hotspots
1 parent 362a8a7 commit fb1bf3c

7 files changed

Lines changed: 335 additions & 9 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/target
22
/*.log
33
/*.gif
4+
/AGENTS.md

Cargo.lock

Lines changed: 215 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,19 @@ lto = "fat" # Enables Link-time Optimization.
6161
opt-level = "z" # Prioritizes small binary size. Use `3` if you prefer speed.
6262
strip = true # Ensures debug symbols are removed.
6363

64+
[profile.profiling]
65+
inherits = "release"
66+
debug = true
67+
strip = false
68+
6469

6570
[build-dependencies]
6671
anyhow = "1.0.101"
6772
vergen-gix = { version = "9.1.0", features = ["build", "cargo"] }
73+
74+
[dev-dependencies]
75+
criterion = { version = "0.5.1", features = ["html_reports"] }
76+
77+
[[bench]]
78+
name = "ui_hotspots"
79+
harness = false

0 commit comments

Comments
 (0)