Skip to content

Commit

Permalink
[benchmark] Fix scan benchmarks (#10685)
Browse files Browse the repository at this point in the history
Also rename so that these don't pop up as spurious performance changes
  • Loading branch information
tpoterba authored Jul 22, 2021
1 parent 68ed374 commit ac0fbe6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down

0 comments on commit ac0fbe6

Please sign in to comment.