@@ -588,7 +588,7 @@ def test_invalid_argument_handling(function, expected_error, args, kwargs):
588
588
589
589
590
590
@pytest .mark .skipif (not numpy_available , reason = "NumPy is not installed" )
591
- @pytest .mark .repeat (50 )
591
+ @pytest .mark .repeat (5 )
592
592
@pytest .mark .parametrize ("ndim" , [11 , 97 , 1536 ])
593
593
@pytest .mark .parametrize ("dtype" , ["float64" , "float32" , "float16" ])
594
594
@pytest .mark .parametrize ("metric" , ["inner" , "euclidean" , "sqeuclidean" , "cosine" ])
@@ -617,7 +617,7 @@ def test_dense(ndim, dtype, metric, capability, stats_fixture):
617
617
618
618
619
619
@pytest .mark .skipif (not numpy_available , reason = "NumPy is not installed" )
620
- @pytest .mark .repeat (50 )
620
+ @pytest .mark .repeat (5 )
621
621
@pytest .mark .parametrize ("ndim" , [11 , 97 ])
622
622
@pytest .mark .parametrize (
623
623
"dtypes" , # representation datatype and compute precision
@@ -674,7 +674,7 @@ def test_curved(ndim, dtypes, metric, capability, stats_fixture):
674
674
675
675
@pytest .mark .skipif (is_running_under_qemu (), reason = "Complex math in QEMU fails" )
676
676
@pytest .mark .skipif (not numpy_available , reason = "NumPy is not installed" )
677
- @pytest .mark .repeat (50 )
677
+ @pytest .mark .repeat (5 )
678
678
@pytest .mark .parametrize ("ndim" , [11 , 97 ])
679
679
@pytest .mark .parametrize ("dtype" , ["complex128" , "complex64" ])
680
680
@pytest .mark .parametrize ("capability" , possible_capabilities )
@@ -707,7 +707,7 @@ def test_curved_complex(ndim, dtype, capability, stats_fixture):
707
707
708
708
709
709
@pytest .mark .skipif (not numpy_available , reason = "NumPy is not installed" )
710
- @pytest .mark .repeat (50 )
710
+ @pytest .mark .repeat (5 )
711
711
@pytest .mark .parametrize ("ndim" , [11 , 97 , 1536 ])
712
712
@pytest .mark .parametrize ("metric" , ["inner" , "euclidean" , "sqeuclidean" , "cosine" ])
713
713
@pytest .mark .parametrize ("capability" , possible_capabilities )
@@ -747,7 +747,7 @@ def test_dense_bf16(ndim, metric, capability, stats_fixture):
747
747
748
748
749
749
@pytest .mark .skipif (not numpy_available , reason = "NumPy is not installed" )
750
- @pytest .mark .repeat (50 )
750
+ @pytest .mark .repeat (5 )
751
751
@pytest .mark .parametrize ("ndim" , [11 , 16 , 33 ])
752
752
@pytest .mark .parametrize ("metric" , ["bilinear" , "mahalanobis" ])
753
753
@pytest .mark .parametrize ("capability" , possible_capabilities )
@@ -806,7 +806,7 @@ def test_curved_bf16(ndim, metric, capability, stats_fixture):
806
806
807
807
808
808
@pytest .mark .skipif (not numpy_available , reason = "NumPy is not installed" )
809
- @pytest .mark .repeat (50 )
809
+ @pytest .mark .repeat (5 )
810
810
@pytest .mark .parametrize ("ndim" , [11 , 97 , 1536 ])
811
811
@pytest .mark .parametrize ("dtype" , ["int8" , "uint8" ])
812
812
@pytest .mark .parametrize ("metric" , ["inner" , "euclidean" , "sqeuclidean" , "cosine" ])
@@ -852,7 +852,7 @@ def test_dense_i8(ndim, dtype, metric, capability, stats_fixture):
852
852
853
853
@pytest .mark .skipif (not numpy_available , reason = "NumPy is not installed" )
854
854
@pytest .mark .skipif (not scipy_available , reason = "SciPy is not installed" )
855
- @pytest .mark .repeat (50 )
855
+ @pytest .mark .repeat (5 )
856
856
@pytest .mark .parametrize ("ndim" , [11 , 97 , 1536 ])
857
857
@pytest .mark .parametrize ("metric" , ["jaccard" , "hamming" ])
858
858
@pytest .mark .parametrize ("capability" , possible_capabilities )
@@ -883,7 +883,7 @@ def test_dense_bits(ndim, metric, capability, stats_fixture):
883
883
884
884
@pytest .mark .skipif (not numpy_available , reason = "NumPy is not installed" )
885
885
@pytest .mark .skipif (not scipy_available , reason = "SciPy is not installed" )
886
- @pytest .mark .repeat (50 )
886
+ @pytest .mark .repeat (5 )
887
887
@pytest .mark .parametrize ("ndim" , [11 , 97 , 1536 ])
888
888
@pytest .mark .parametrize ("dtype" , ["float32" , "float16" ])
889
889
@pytest .mark .parametrize ("capability" , possible_capabilities )
@@ -937,7 +937,7 @@ def test_cosine_zero_vector(ndim, dtype, capability):
937
937
938
938
@pytest .mark .skip (reason = "Lacks overflow protection: https://github.com/ashvardanian/SimSIMD/issues/206" ) # TODO
939
939
@pytest .mark .skipif (not numpy_available , reason = "NumPy is not installed" )
940
- @pytest .mark .repeat (50 )
940
+ @pytest .mark .repeat (5 )
941
941
@pytest .mark .parametrize ("ndim" , [11 , 97 , 1536 ])
942
942
@pytest .mark .parametrize ("dtype" , ["float64" , "float32" , "float16" ])
943
943
@pytest .mark .parametrize ("metric" , ["inner" , "euclidean" , "sqeuclidean" , "cosine" ])
@@ -971,7 +971,7 @@ def test_overflow(ndim, dtype, metric, capability):
971
971
972
972
@pytest .mark .skip (reason = "Lacks overflow protection: https://github.com/ashvardanian/SimSIMD/issues/206" ) # TODO
973
973
@pytest .mark .skipif (not numpy_available , reason = "NumPy is not installed" )
974
- @pytest .mark .repeat (50 )
974
+ @pytest .mark .repeat (5 )
975
975
@pytest .mark .parametrize ("ndim" , [131072 , 262144 ])
976
976
@pytest .mark .parametrize ("metric" , ["inner" , "euclidean" , "sqeuclidean" , "cosine" ])
977
977
@pytest .mark .parametrize ("capability" , possible_capabilities )
@@ -1001,7 +1001,7 @@ def test_overflow_i8(ndim, metric, capability):
1001
1001
1002
1002
@pytest .mark .skipif (is_running_under_qemu (), reason = "Complex math in QEMU fails" )
1003
1003
@pytest .mark .skipif (not numpy_available , reason = "NumPy is not installed" )
1004
- @pytest .mark .repeat (50 )
1004
+ @pytest .mark .repeat (5 )
1005
1005
@pytest .mark .parametrize ("ndim" , [11 , 97 , 1536 ])
1006
1006
@pytest .mark .parametrize ("dtype" , ["complex128" , "complex64" ])
1007
1007
@pytest .mark .parametrize ("capability" , possible_capabilities )
@@ -1018,23 +1018,19 @@ def test_dot_complex(ndim, dtype, capability, stats_fixture):
1018
1018
result = np .array (result )
1019
1019
1020
1020
np .testing .assert_allclose (result , expected , atol = SIMSIMD_ATOL , rtol = SIMSIMD_RTOL )
1021
- collect_errors (
1022
- "dot" , ndim , dtype , accurate , accurate_dt , expected , expected_dt , result , result_dt , stats_fixture
1023
- )
1021
+ collect_errors ("dot" , ndim , dtype , accurate , accurate_dt , expected , expected_dt , result , result_dt , stats_fixture )
1024
1022
1025
1023
accurate_dt , accurate = profile (np .vdot , a .astype (np .complex128 ), b .astype (np .complex128 ))
1026
1024
expected_dt , expected = profile (np .vdot , a , b )
1027
1025
result_dt , result = profile (simd .vdot , a , b )
1028
1026
result = np .array (result )
1029
1027
1030
1028
np .testing .assert_allclose (result , expected , atol = SIMSIMD_ATOL , rtol = SIMSIMD_RTOL )
1031
- collect_errors (
1032
- "vdot" , ndim , dtype , accurate , accurate_dt , expected , expected_dt , result , result_dt , stats_fixture
1033
- )
1029
+ collect_errors ("vdot" , ndim , dtype , accurate , accurate_dt , expected , expected_dt , result , result_dt , stats_fixture )
1034
1030
1035
1031
1036
1032
@pytest .mark .skipif (not numpy_available , reason = "NumPy is not installed" )
1037
- @pytest .mark .repeat (100 )
1033
+ @pytest .mark .repeat (5 )
1038
1034
@pytest .mark .parametrize ("dtype" , ["uint16" , "uint32" ])
1039
1035
@pytest .mark .parametrize ("first_length_bound" , [10 , 100 , 1000 ])
1040
1036
@pytest .mark .parametrize ("second_length_bound" , [10 , 100 , 1000 ])
@@ -1064,7 +1060,7 @@ def test_intersect(dtype, first_length_bound, second_length_bound, capability):
1064
1060
1065
1061
1066
1062
@pytest .mark .skipif (not numpy_available , reason = "NumPy is not installed" )
1067
- @pytest .mark .repeat (50 )
1063
+ @pytest .mark .repeat (5 )
1068
1064
@pytest .mark .parametrize ("ndim" , [11 , 97 , 1536 ])
1069
1065
@pytest .mark .parametrize ("dtype" , ["float64" , "float32" , "float16" , "int8" , "uint8" ])
1070
1066
@pytest .mark .parametrize ("kernel" , ["fma" ])
@@ -1125,7 +1121,7 @@ def test_fma(ndim, dtype, kernel, capability, stats_fixture):
1125
1121
1126
1122
1127
1123
@pytest .mark .skipif (not numpy_available , reason = "NumPy is not installed" )
1128
- @pytest .mark .repeat (50 )
1124
+ @pytest .mark .repeat (5 )
1129
1125
@pytest .mark .parametrize ("ndim" , [11 , 97 , 1536 ])
1130
1126
@pytest .mark .parametrize ("dtype" , ["float64" , "float32" , "float16" , "int8" , "uint8" ])
1131
1127
@pytest .mark .parametrize ("kernel" , ["wsum" ])
@@ -1395,7 +1391,7 @@ def test_cdist_complex(ndim, input_dtype, out_dtype, metric, capability):
1395
1391
1396
1392
@pytest .mark .skipif (not numpy_available , reason = "NumPy is not installed" )
1397
1393
@pytest .mark .skipif (not scipy_available , reason = "SciPy is not installed" )
1398
- @pytest .mark .repeat (50 )
1394
+ @pytest .mark .repeat (5 )
1399
1395
@pytest .mark .parametrize ("ndim" , [11 , 97 , 1536 ])
1400
1396
@pytest .mark .parametrize ("out_dtype" , [None , "float32" , "float16" , "int8" ])
1401
1397
@pytest .mark .parametrize ("capability" , possible_capabilities )
0 commit comments