Skip to content

Commit

Permalink
TEST-#5064: update TimeConcat benchmark with new parameter 'ignore_in…
Browse files Browse the repository at this point in the history
…dex' (#5065)

Signed-off-by: Myachev <anatoly.myachev@intel.com>
  • Loading branch information
anmyachev committed Sep 30, 2022
1 parent 7d7e38b commit 2d21561
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
13 changes: 9 additions & 4 deletions asv_bench/benchmarks/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,19 +149,24 @@ def time_merge(self, shapes, how, sort):


class TimeConcat:
param_names = ["shapes", "how", "axis"]
param_names = ["shapes", "how", "axis", "ignore_index"]
params = [
get_benchmark_shapes("TimeConcat"),
["inner", "outer"],
[0, 1],
[True, False],
]

def setup(self, shapes, how, axis):
def setup(self, shapes, how, axis, ignore_index):
self.df1 = generate_dataframe("int", *shapes[0], RAND_LOW, RAND_HIGH)
self.df2 = generate_dataframe("int", *shapes[1], RAND_LOW, RAND_HIGH)

def time_concat(self, shapes, how, axis):
execute(IMPL.concat([self.df1, self.df2], axis=axis, join=how))
def time_concat(self, shapes, how, axis, ignore_index):
execute(
IMPL.concat(
[self.df1, self.df2], axis=axis, join=how, ignore_index=ignore_index
)
)


class TimeAppend:
Expand Down
1 change: 1 addition & 0 deletions docs/release_notes/release_notes-0.16.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ Key Features and Updates
* TEST-#5066: Add outer join case for `TimeConcat` benchmark (#5067)
* FEAT-#4706: Add Modin ClassLogger to PandasDataframePartitionManager (#4707)
* TEST-#5014: Simplify adding new ASV benchmarks (#5015)
* TEST-#5064: Update `TimeConcat` benchmark with new parameter `ignore_index` (#5065)
* PERF-#4944: Avoid default_to_pandas in ``Series.cat.codes``, ``Series.dt.tz``, and ``Series.dt.to_pytimedelta`` (#4833)
* Refactor Codebase
* REFACTOR-#4530: Standardize access to physical data in partitions (#4563)
Expand Down

0 comments on commit 2d21561

Please sign in to comment.