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

FEAT-#2553: add ability to run microbenchmarks for old Modin version #2554

Merged
merged 1 commit into from
Dec 17, 2020
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
14 changes: 11 additions & 3 deletions asv_bench/benchmarks/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,20 @@
import numpy as np
import pandas

from modin.config import TestDatasetSize, AsvImplementation
from .utils import generate_dataframe, RAND_LOW, RAND_HIGH, random_string

ASV_USE_IMPL = AsvImplementation.get()
try:
from modin.config import TestDatasetSize, AsvImplementation

if TestDatasetSize.get() == "Big":
ASV_USE_IMPL = AsvImplementation.get()
ASV_DATASET_SIZE = TestDatasetSize.get()
except ImportError:
# The same benchmarking code can be run for different versions of Modin, so in
# case of an error importing important variables, we'll just use predefined values
ASV_USE_IMPL = "modin"
ASV_DATASET_SIZE = "Big" if pd.DEFAULT_NPARTITIONS >= 32 else "Small"

if ASV_DATASET_SIZE == "Big":
BINARY_OP_DATA_SIZE = [
(5000, 5000, 5000, 5000),
# the case extremely inefficient
Expand Down