mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 22:01:47 +00:00
[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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue