mirror of https://github.com/astral-sh/ruff
[ty] Reduce size of the many-tuple-assignments benchmark (#18131)
## Summary The previous version took several minute to complete on codspeed.
This commit is contained in:
parent
9910ec700c
commit
e677cabd69
|
|
@ -331,12 +331,6 @@ fn benchmark_many_tuple_assignments(criterion: &mut Criterion) {
|
|||
t += (7,)
|
||||
if flag():
|
||||
t += (8,)
|
||||
if flag():
|
||||
t += (9,)
|
||||
if flag():
|
||||
t += (10,)
|
||||
if flag():
|
||||
t += (11,)
|
||||
|
||||
# Perform some kind of operation on the union type
|
||||
print(1 in t)
|
||||
|
|
|
|||
Loading…
Reference in New Issue