Commit a63544b
fix(bench): repair scan_bench for drifted types (stale since ~v2.5.0)
Benches wouldn't compile — types had drifted unchecked:
- TaintAnalyzer lost ::new() (now static-method API); rewrote
bench_taint_analysis to exercise query_flows against an empty FactDB
- WeakPoint gained `suppressed` field; fixture updated
- ProgramStatistics renamed/reshaped: expect_calls removed,
panic_paths -> panic_sites, added allocation_sites + io_operations
Headline numbers on this machine:
- assail_self_scan: ~55ms full scan of own src/ tree
- language_detect: ~47 ns/file
- rule_eval dispatch: ~4 ns
- taint_query_flows (empty DB): ~18 ns
Dogfood lesson: tree doesn't fail the build when the bench harness
rots. Worth a CI gate that runs `cargo bench --no-run` — deferred,
not in this commit.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6ffc1d7 commit a63544b
1 file changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | | - | |
89 | | - | |
| 89 | + | |
| 90 | + | |
90 | 91 | | |
91 | | - | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| |||
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| 126 | + | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| |||
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
143 | | - | |
144 | | - | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
146 | 150 | | |
147 | | - | |
148 | 151 | | |
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
152 | 155 | | |
153 | | - | |
154 | 156 | | |
| 157 | + | |
155 | 158 | | |
156 | 159 | | |
157 | 160 | | |
| |||
0 commit comments