ruff/crates/ruff_benchmark/benches
Carl Meyer 1c311e4fdb
[red-knot] update benchmark to run on tomllib (#12635)
Changes the red-knot benchmark to run on the stdlib "tomllib" library
(which is self-contained, four files, uses type annotations) instead of
on very small bits of handwritten code.

Also remove the `without_parse` benchmark: now that we are running on
real code that uses typeshed, we'd either have to pre-parse all of
typeshed (slow) or find some way to determine which typeshed modules
will be used by the benchmark (not feasible with reasonable complexity.)

## Test Plan

`cargo bench -p ruff_benchmark --bench red_knot`
2024-08-02 11:23:52 -07:00
..
formatter.rs Remove criterion/codspeed compat layer (#12524) 2024-07-26 12:22:16 +02:00
lexer.rs Remove criterion/codspeed compat layer (#12524) 2024-07-26 12:22:16 +02:00
linter.rs Remove criterion/codspeed compat layer (#12524) 2024-07-26 12:22:16 +02:00
parser.rs Remove criterion/codspeed compat layer (#12524) 2024-07-26 12:22:16 +02:00
red_knot.rs [red-knot] update benchmark to run on tomllib (#12635) 2024-08-02 11:23:52 -07:00