From dbbe3526efdcb484904d4be0fe80fe0aa5cd8330 Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Mon, 22 Jul 2024 14:16:56 -0700 Subject: [PATCH] [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 --- crates/ruff_benchmark/benches/red_knot.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ruff_benchmark/benches/red_knot.rs b/crates/ruff_benchmark/benches/red_knot.rs index dbc6c089a3..11d2b23245 100644 --- a/crates/ruff_benchmark/benches/red_knot.rs +++ b/crates/ruff_benchmark/benches/red_knot.rs @@ -36,6 +36,8 @@ class Bar: return 48472783 if arg < 10: return 20 + while arg < 50: + arg += 1 return 36673 "#;