mirror of https://github.com/astral-sh/ruff
[red-knot] add while-loop to benchmark (#12464)
So we can get some signal from the benchmark result on https://github.com/astral-sh/ruff/pull/12413
This commit is contained in:
parent
f22c8ab811
commit
dbbe3526ef
|
|
@ -36,6 +36,8 @@ class Bar:
|
||||||
return 48472783
|
return 48472783
|
||||||
if arg < 10:
|
if arg < 10:
|
||||||
return 20
|
return 20
|
||||||
|
while arg < 50:
|
||||||
|
arg += 1
|
||||||
return 36673
|
return 36673
|
||||||
"#;
|
"#;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue