redos_bench
Benchmarks regex patterns for ReDoS by comparing evil vs benign strings and sweeping pump sizes, classifying growth as linear, polynomial, or exponential to name the vulnerable engine.
Instructions
Time the evil vs benign string AND sweep increasing pump sizes to classify growth as linear / polynomial / exponential. The verdict names the engine.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| engine | No | python | |
| qlimit | No | ||
| pattern | Yes | ||
| timeout_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||