ruff/crates/ruff_benchmark/benches
David Peter 301d9985d8
[ty] Add benchmark for union of tuples (#18076)
## Summary

Add a micro-benchmark for the code pattern observed in
https://github.com/astral-sh/ty/issues/362.

This currently takes around 1 second on my machine.

## Test Plan

```bash
cargo bench -p ruff_benchmark -- 'ty_micro\[many_tuple' --sample-size 10
```
2025-05-13 22:14:30 +02:00
..
formatter.rs Pass `ParserOptions` to the parser (#16220) 2025-02-19 10:50:50 -05:00
lexer.rs [ci]: Fixup codspeed upgrade (#16790) 2025-03-17 09:14:22 +01:00
linter.rs Use `#[expect(lint)]` over `#[allow(lint)]` where possible (#17822) 2025-05-03 21:20:31 +02:00
parser.rs [ci]: Fixup codspeed upgrade (#16790) 2025-03-17 09:14:22 +01:00
ty.rs [ty] Add benchmark for union of tuples (#18076) 2025-05-13 22:14:30 +02:00