From ac0fbe6076174e62f99bbfe6e6a846689a31e58b Mon Sep 17 00:00:00 2001 From: Tim Poterba Date: Thu, 22 Jul 2021 11:03:26 -0400 Subject: [PATCH] [benchmark] Fix scan benchmarks (#10685) Also rename so that these don't pop up as spurious performance changes --- .../python/benchmark_hail/run/matrix_table_benchmarks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/benchmark/python/benchmark_hail/run/matrix_table_benchmarks.py b/benchmark/python/benchmark_hail/run/matrix_table_benchmarks.py index 4f2dc3d4d21..a1d101b4271 100644 --- a/benchmark/python/benchmark_hail/run/matrix_table_benchmarks.py +++ b/benchmark/python/benchmark_hail/run/matrix_table_benchmarks.py @@ -352,16 +352,16 @@ def kyle_sex_specific_qc(mt_path): @benchmark() -def matrix_table_scan_count_rows(): +def matrix_table_scan_count_rows_2(): mt = hl.utils.range_matrix_table(n_rows=200_000_000, n_cols=10, n_partitions=16) - mt.annotate_rows(x=hl.scan.count()) + mt = mt.annotate_rows(x=hl.scan.count()) mt._force_count_rows() @benchmark() -def matrix_table_scan_count_cols(): +def matrix_table_scan_count_cols_2(): mt = hl.utils.range_matrix_table(n_cols=10_000_000, n_rows=10) - mt.annotate_cols(x=hl.scan.count()) + mt = mt.annotate_cols(x=hl.scan.count()) mt._force_count_rows()