Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conform "bench_isin" to match generator column names #11549

Merged
merged 3 commits into from
Oct 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions python/cudf/benchmarks/API/bench_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ def bench_merge(benchmark, dataframe, num_key_cols):
@pytest.mark.parametrize(
"values",
[
range(1000),
{f"key{i}": range(1000) for i in range(10)},
cudf.DataFrame({f"key{i}": range(1000) for i in range(10)}),
cudf.Series(range(1000)),
lambda: range(50),
lambda: {f"{string.ascii_lowercase[i]}": range(50) for i in range(10)},
lambda: cudf.DataFrame(
{f"{string.ascii_lowercase[i]}": range(50) for i in range(10)}
),
lambda: cudf.Series(range(50)),
],
)
def bench_isin(benchmark, dataframe, values):
benchmark(dataframe.isin, values)
benchmark(dataframe.isin, values())


@pytest.fixture(
Expand Down