-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(python): Update benchmark tests (#15825)
- Loading branch information
Showing
23 changed files
with
484 additions
and
418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,9 @@ | ||
from pathlib import Path | ||
|
||
import pytest | ||
|
||
import polars as pl | ||
from tests.benchmark.datagen_groupby import generate_group_by_data | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def data_path() -> Path: | ||
return Path(__file__).parent / "data" | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def h2aoi_groupby_data_path(data_path: Path) -> Path: | ||
return data_path / "G1_1e7_1e2_5_0.csv" | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def h2oai_groupby_data(h2aoi_groupby_data_path: Path) -> pl.DataFrame: | ||
if not h2aoi_groupby_data_path.is_file(): | ||
pytest.skip("Dataset must be generated before running this test.") | ||
|
||
df = pl.read_csv( | ||
h2aoi_groupby_data_path, | ||
dtypes={ | ||
"id4": pl.Int32, | ||
"id5": pl.Int32, | ||
"id6": pl.Int32, | ||
"v1": pl.Int32, | ||
"v2": pl.Int32, | ||
"v3": pl.Float64, | ||
}, | ||
) | ||
return df | ||
@pytest.fixture(scope="session") | ||
def groupby_data() -> pl.DataFrame: | ||
return generate_group_by_data(10_000, 100, null_ratio=0.05) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.