Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Nov 18, 2024
1 parent d8163be commit 05d28a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py-polars/tests/benchmark/test_with_columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class _: # type: ignore[no-redef]
df1.with_columns(rhs)
times.append(perf_counter() - t)

factor = times[0] / times[1]
ratio = times[0] / times[1]

# Assert the relative rather than exact runtime to avoid flakiness in CI
# We pick a threshold just low enough to pass CI without any false
Expand All @@ -40,5 +40,5 @@ class _: # type: ignore[no-redef]
# M3 Pro 11-core | 200x | 20x
# EC2 47i.4xlarge | 150x | 13x
# GitHub CI runner | | 50x
if factor > 80:
raise AssertionError(factor)
if ratio > 80:
raise AssertionError(ratio)

0 comments on commit 05d28a5

Please sign in to comment.