ruvector/crates/ruvector-decompiler/benches
rUv 8315e0a61a fix(decompiler): review fixes, benchmarks, real-world validation
Bugs fixed:
- assert!() in witness verification → proper Err return
- Swapped property-to-name mappings in inferrer
- Escape sequences in beautifier indent_braces
- Doc comments: SHAKE-256 → SHA3-256 (correct hash function)

Performance:
- Cached regex compilation via once_cell::Lazy (7 regexes)
- HashSet for O(1) lookups (was Vec O(n))
- Optimized hex encoding with lookup table
- Added ES module export support

Benchmarks (criterion):
- 1KB: 58μs parse, 230μs pipeline
- 10KB: 581μs parse, 1.7ms pipeline
- 100KB: 5.4ms parse, 26.2ms pipeline
- 1MB: 53.5ms parse (linear scaling)

Real-world: Claude Code cli.js (10.53 MB):
- 27,477 declarations, 601,653 edges
- 1,344 HIGH confidence names (5.2%)
- 5,843 MEDIUM confidence names (22.8%)
- 24.6s total pipeline time

OSS fixtures: lodash, express, redux with self-learning loop

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-03 00:47:13 +00:00
..
bench_parser.rs fix(decompiler): review fixes, benchmarks, real-world validation 2026-04-03 00:47:13 +00:00
bench_pipeline.rs fix(decompiler): review fixes, benchmarks, real-world validation 2026-04-03 00:47:13 +00:00