Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
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
2 changes: 0 additions & 2 deletions sdc/tests/tests_perf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ class TestSuite(unittest.TestCase):

# calculate compilation time of `hpat_func` based in `pyfunc`
compile_results = calc_compilation(pyfunc, test_data, iter_number=self.iter_number)
# Warming up
hpat_func(test_data)

# calculate execution and boxing/unboxing times of `hpat_func`
exec_times, boxing_times = get_times(hpat_func, test_data, iter_number=self.iter_number)
Expand Down
3 changes: 0 additions & 3 deletions sdc/tests/tests_perf/test_perf_df.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ def _test_jitted(self, pyfunc, record, *args, **kwargs):

cfunc = numba.njit(pyfunc)

# Warming up
cfunc(*args, **kwargs)

# execution and boxing time
record["test_results"], record["boxing_results"] = \
get_times(cfunc, *args, **kwargs)
Expand Down
3 changes: 0 additions & 3 deletions sdc/tests/tests_perf/test_perf_df_rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ def _test_jitted(self, pyfunc, record, *args, **kwargs):

cfunc = numba.njit(pyfunc)

# Warming up
cfunc(*args, **kwargs)

# execution and boxing time
record['test_results'], record['boxing_results'] = get_times(cfunc,
*args,
Expand Down
3 changes: 0 additions & 3 deletions sdc/tests/tests_perf/test_perf_numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ def _test_jitted(self, pyfunc, record, *args, **kwargs):

sdc_func = sdc.jit(pyfunc)

# Warming up
sdc_func(*args, **kwargs)

# execution and boxing time
record["test_results"], record["boxing_results"] = \
get_times(sdc_func, *args, **kwargs)
Expand Down
3 changes: 0 additions & 3 deletions sdc/tests/tests_perf/test_perf_read_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ def _test_jitted(self, pyfunc, record, *args, **kwargs):

sdc_func = sdc.jit(pyfunc)

# Warming up
sdc_func(*args, **kwargs)

# execution and boxing time
record["test_results"], record["boxing_results"] = \
get_times(sdc_func, *args, **kwargs)
Expand Down
3 changes: 0 additions & 3 deletions sdc/tests/tests_perf/test_perf_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ def _test_jitted(self, pyfunc, record, *args, **kwargs):

sdc_func = sdc.jit(pyfunc)

# Warming up
sdc_func(*args, **kwargs)

# execution and boxing time
record["test_results"], record["boxing_results"] = \
get_times(sdc_func, *args, **kwargs)
Expand Down
2 changes: 0 additions & 2 deletions sdc/tests/tests_perf/test_perf_series_str.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ def _test_case(self, pyfunc, name, total_data_length, input_data=None, *args, **
test_data = pd.Series(data)

compile_results = calc_compilation(pyfunc, test_data, iter_number=self.iter_number)
# Warming up
hpat_func(test_data)

exec_times, boxing_times = get_times(hpat_func, test_data, iter_number=self.iter_number)

Expand Down
4 changes: 4 additions & 0 deletions sdc/tests/tests_perf/test_perf_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ def get_times(f, *args, iter_number=5):
"""Get time of boxing+unboxing and internal execution"""
exec_times = []
boxing_times = []

# Warming up
f(*args)
Comment thread
PokhodenkoSA marked this conversation as resolved.

for _ in range(iter_number):
ext_start = time.time()
int_result, _ = f(*args)
Expand Down