@@ -12,32 +12,32 @@ def benchmark_block_matrix_nested_multiply(tmp_path):
1212 bm .write (str (tmp_path / 'result.mt' ), overwrite = True )
1313
1414
15- @pytest .mark .benchmark ()
15+ @pytest .mark .benchmark (mds = 1.2 , instances = 10 , iterations = 5 , burn_in_iterations = 5 )
1616def benchmark_make_ndarray ():
1717 ht = hl .utils .range_table (200_000 )
1818 ht = ht .annotate (x = hl .nd .array (hl .range (ht .idx )))
1919 ht ._force_count ()
2020
2121
22- @pytest .mark .benchmark ()
22+ @pytest .mark .benchmark (mds = 1.2 , instances = 10 , iterations = 20 , burn_in_iterations = 10 )
2323def benchmark_ndarray_addition ():
2424 arr = hl .nd .ones ((1024 , 1024 ))
2525 hl .eval (arr + arr )
2626
2727
28- @pytest .mark .benchmark ()
28+ @pytest .mark .benchmark (mds = 1.2 , instances = 20 , iterations = 5 , burn_in_iterations = 10 )
2929def benchmark_ndarray_matmul_int64 ():
3030 arr = hl .nd .arange (1024 * 1024 ).map (hl .int64 ).reshape ((1024 , 1024 ))
3131 hl .eval (arr @ arr )
3232
3333
34- @pytest .mark .benchmark ()
34+ @pytest .mark .benchmark (mds = 1.1 , instances = 20 , iterations = 15 , burn_in_iterations = 6 )
3535def benchmark_ndarray_matmul_float64 ():
3636 arr = hl .nd .arange (1024 * 1024 ).map (hl .float64 ).reshape ((1024 , 1024 ))
3737 hl .eval (arr @ arr )
3838
3939
40- @pytest .mark .benchmark ()
40+ @pytest .mark .benchmark (mds = 1.2 , instances = 10 , iterations = 5 , burn_in_iterations = 10 )
4141@pytest .mark .xtimeout (200 )
4242def benchmark_blockmatrix_write_from_entry_expr_range_mt (tmp_path ):
4343 mt = hl .utils .range_matrix_table (40_000 , 40_000 , n_partitions = 4 )
@@ -55,13 +55,14 @@ def benchmark_blockmatrix_write_from_entry_expr_range_mt_standardize(tmp_path):
5555 )
5656
5757
58- @pytest .mark .benchmark ()
58+ @pytest .mark .benchmark (mds = 1.1 , instances = 5 , iterations = 8 , burn_in_iterations = 10 )
59+ @pytest .mark .xtimeout (200 )
5960def benchmark_sum_table_of_ndarrays ():
6061 ht = hl .utils .range_table (400 ).annotate (nd = hl .nd .ones ((4096 , 4096 )))
6162 ht .aggregate (hl .agg .ndarray_sum (ht .nd ))
6263
6364
64- @pytest .mark .benchmark ()
65+ @pytest .mark .benchmark (mds = 1.1 , instances = 10 , iterations = 5 , burn_in_iterations = 4 )
6566@pytest .mark .xtimeout (250 )
6667def benchmark_block_matrix_to_matrix_table_row_major ():
6768 mt = hl .utils .range_matrix_table (20_000 , 20_000 , n_partitions = 4 )
0 commit comments