@@ -12,32 +12,32 @@ def benchmark_block_matrix_nested_multiply(tmp_path):
12
12
bm .write (str (tmp_path / 'result.mt' ), overwrite = True )
13
13
14
14
15
- @pytest .mark .benchmark ()
15
+ @pytest .mark .benchmark (mds = 1.2 , instances = 10 , iterations = 5 , burn_in_iterations = 5 )
16
16
def benchmark_make_ndarray ():
17
17
ht = hl .utils .range_table (200_000 )
18
18
ht = ht .annotate (x = hl .nd .array (hl .range (ht .idx )))
19
19
ht ._force_count ()
20
20
21
21
22
- @pytest .mark .benchmark ()
22
+ @pytest .mark .benchmark (mds = 1.2 , instances = 10 , iterations = 20 , burn_in_iterations = 10 )
23
23
def benchmark_ndarray_addition ():
24
24
arr = hl .nd .ones ((1024 , 1024 ))
25
25
hl .eval (arr + arr )
26
26
27
27
28
- @pytest .mark .benchmark ()
28
+ @pytest .mark .benchmark (mds = 1.2 , instances = 20 , iterations = 5 , burn_in_iterations = 10 )
29
29
def benchmark_ndarray_matmul_int64 ():
30
30
arr = hl .nd .arange (1024 * 1024 ).map (hl .int64 ).reshape ((1024 , 1024 ))
31
31
hl .eval (arr @ arr )
32
32
33
33
34
- @pytest .mark .benchmark ()
34
+ @pytest .mark .benchmark (mds = 1.1 , instances = 20 , iterations = 15 , burn_in_iterations = 6 )
35
35
def benchmark_ndarray_matmul_float64 ():
36
36
arr = hl .nd .arange (1024 * 1024 ).map (hl .float64 ).reshape ((1024 , 1024 ))
37
37
hl .eval (arr @ arr )
38
38
39
39
40
- @pytest .mark .benchmark ()
40
+ @pytest .mark .benchmark (mds = 1.2 , instances = 10 , iterations = 5 , burn_in_iterations = 10 )
41
41
@pytest .mark .xtimeout (200 )
42
42
def benchmark_blockmatrix_write_from_entry_expr_range_mt (tmp_path ):
43
43
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):
55
55
)
56
56
57
57
58
- @pytest .mark .benchmark ()
58
+ @pytest .mark .benchmark (mds = 1.1 , instances = 5 , iterations = 8 , burn_in_iterations = 10 )
59
+ @pytest .mark .xtimeout (200 )
59
60
def benchmark_sum_table_of_ndarrays ():
60
61
ht = hl .utils .range_table (400 ).annotate (nd = hl .nd .ones ((4096 , 4096 )))
61
62
ht .aggregate (hl .agg .ndarray_sum (ht .nd ))
62
63
63
64
64
- @pytest .mark .benchmark ()
65
+ @pytest .mark .benchmark (mds = 1.1 , instances = 10 , iterations = 5 , burn_in_iterations = 4 )
65
66
@pytest .mark .xtimeout (250 )
66
67
def benchmark_block_matrix_to_matrix_table_row_major ():
67
68
mt = hl .utils .range_matrix_table (20_000 , 20_000 , n_partitions = 4 )
0 commit comments