Skip to content

Speed up test times 🚀 #1124

@williambdean

Description

@williambdean

If you are motivated to help speed up some tests, we would appreciate it!

Here are some of the slowest test times:

(9 minutes 23 seconds) tests --ignore=tests/tensor --ignore=tests/scan --ignore=tests/xtensor
============================= slowest 50 durations =============================
64.91s call     tests/sparse/test_basic.py::TestUsmm::test_basic
20.95s call     tests/test_ifelse.py::TestIfelse::test_not_lazy_if_inplace
16.09s call     tests/scalar/test_basic.py::TestUpgradeToFloat::test_unary
9.06s call     tests/sparse/test_basic.py::TestCasting::test_cast
8.90s call     tests/scalar/test_basic.py::TestUpgradeToFloat::test_binary
8.27s call     tests/sparse/test_basic.py::TestCasting::test_infer_shape
8.12s call     tests/scalar/test_basic.py::TestUpgradeToFloat::test_true_div
7.96s call     tests/test_rop.py::TestRopLop::test_max
7.44s call     tests/scalar/test_math.py::test_scalarloop_grad_mixed_dtypes[op2-scalar_loop_grads2]
6.27s call     tests/sparse/sandbox/test_sp.py::TestSP::test_convolution
6.20s call     tests/sparse/sandbox/test_sp.py::TestSP::test_maxpool
5.77s call     tests/link/c/test_cmodule.py::test_cache_race_condition
5.45s call     tests/compile/test_builders.py::TestOpFromGraph::test_L_op_disconnected_output_grad
5.21s call     tests/sparse/test_basic.py::TestAddMul::test_AddSD
4.98s call     tests/sparse/test_basic.py::TestStructuredDot::test_dot_sparse_sparse
4.34s call     tests/test_gradient.py::test_subgraph_grad
3.92s call     tests/compile/test_compilelock.py::test_locking_multiprocess_spawn
3.58s call     tests/scalar/test_math.py::test_scalarloop_grad_mixed_dtypes[op3-scalar_loop_grads3]
3.47s call     tests/compile/test_misc.py::test_nnet
3.38s call     tests/compile/test_debugmode.py::test_debugmode_basic
2.98s call     tests/compile/test_builders.py::TestOpFromGraph::test_rop_multiple_outputs[False]
2.97s call     tests/sparse/test_basic.py::TestCsmProperties::test_csm_properties_grad
2.94s call     tests/test_gradient.py::TestJacobian::test_jacobian_matrix[vectorize=False]
2.83s call     tests/graph/test_compute_test_value.py::TestComputeTestValue::test_scan
2.66s call     tests/test_gradient.py::TestGrad::test_grad_grad_cubic
2.66s call     tests/compile/function/test_pfunc.py::TestPfunc::test_shared
2.59s call     tests/compile/function/test_pfunc.py::TestAliasingRules::test_input_aliasing_affecting_inplace_operations
2.58s call     tests/sparse/test_basic.py::TestSpSum::test_grad
2.57s call     tests/sparse/test_basic.py::TestCsm::test_csm_grad
2.43s call     tests/sparse/test_basic.py::TestVStack::test_grad
2.43s call     tests/sparse/test_basic.py::TestHStack::test_grad
2.32s call     tests/test_rop.py::TestRopLop::test_alloc
2.31s call     tests/test_gradient.py::TestJacobian::test_jacobian_disconnected_inputs[vectorize=False]
2.29s call     tests/scalar/test_basic.py::test_grad_abs
2.29s call     tests/test_gradient.py::test_known_grads
2.25s call     tests/test_gradient.py::TestJacobian::test_jacobian_matrix[vectorize=True]
2.24s call     tests/compile/test_builders.py::TestOpFromGraph::test_grad_override[OpFromGraph]
2.22s call     tests/compile/test_profiling.py::TestProfiling::test_profiling
2.21s call     tests/compile/test_builders.py::TestOpFromGraph::test_compute_test_value
2.21s call     tests/compile/test_monitormode.py::test_not_inplace
2.19s call     tests/test_gradient.py::TestHessianVectorProduct::test_rosen
2.13s call     tests/test_rop.py::TestRopLop::test_elemwise0
2.12s call     tests/test_gradient.py::TestZeroGrad::test_grad
2.11s call     tests/graph/test_compute_test_value.py::TestComputeTestValue::test_empty_elemwise
2.11s call     tests/test_breakpoint.py::TestPdbBreakpoint::test_infer_shape
2.11s call     tests/sparse/test_basic.py::TestDots::test_int32_dtype
2.03s call     tests/compile/function/test_types.py::TestFunction::test_swap_SharedVariable_with_given
1.96s call     tests/compile/function/test_pfunc.py::TestAliasingRules::test_potential_output_aliasing_induced_by_updates
1.93s call     tests/link/c/test_basic.py::test_shared_input_output
1.90s call     tests/compile/test_debugmode.py::TestViewMap::test_aliased_outputs_bad
=========================== short test summary info ============================
(9 minutes 6 seconds) tests/scan
============================= slowest 50 durations =============================
34.46s call     tests/scan/test_basic.py::TestScan::test_second_derivative_disconnected_cost_with_mit_mot
27.83s call     tests/scan/test_basic.py::TestScan::test_grad_multiple_outs_taps_backwards
21.94s call     tests/scan/test_basic.py::TestScan::test_grad_mitsot
19.30s call     tests/scan/test_basic.py::TestScan::test_R_op[False]
18.66s call     tests/scan/test_basic.py::TestExamples::test_grad_multiple_outs_some_disconnected
17.09s call     tests/scan/test_basic.py::TestScan::test_R_op_2[False]
16.69s call     tests/scan/test_rewriting.py::TestPushOutNonSeqScan::test_pushout_seqs
16.66s call     tests/scan/test_basic.py::TestScan::test_R_op[True]
15.66s call     tests/scan/test_checkpoints.py::TestScanCheckpoint::test_backward_pass
15.12s call     tests/scan/test_rewriting.py::TestPushOutAddScan::test_machine_translation
13.78s call     tests/scan/test_basic.py::TestScan::test_R_op_2[True]
10.58s call     tests/scan/test_basic.py::TestScan::test_grad_of_grad_of_state
10.48s call     tests/scan/test_basic.py::TestScan::test_grad_dtype_change
9.61s call     tests/scan/test_basic.py::TestScan::test_grad_multiple_outs
7.82s call     tests/scan/test_basic.py::TestExamples::test_grad_multiple_outs_some_disconnected_2
7.64s call     tests/scan/test_basic.py::TestScan::test_grad_one_output
7.62s call     tests/scan/test_basic.py::TestScan::test_grad_multiple_taps_state
6.95s call     tests/scan/test_basic.py::TestScan::test_grad_multiple_outs_taps
6.93s call     tests/scan/test_basic.py::TestExamples::test_default_value_broadcasted
6.69s call     tests/scan/test_basic.py::TestScan::test_shared_arguments_with_updates
6.62s call     tests/scan/test_checkpoints.py::TestScanCheckpoint::test_forward_pass
6.53s call     tests/scan/test_basic.py::TestGradUntil::test_grad_until_and_truncate_sequence_taps
6.51s call     tests/scan/test_basic.py::test_compute_test_value_grad
6.08s call     tests/scan/test_basic.py::TestScan::test_inner_grad
5.99s call     tests/scan/test_rewriting.py::TestSaveMem::test_save_mem_store_steps
5.35s call     tests/scan/test_basic.py::TestScan::test_grad_multiple_outs_some_uncomputable
5.25s call     tests/scan/test_basic.py::TestScan::test_inner_graph_cloning[default_rng]
5.25s call     tests/scan/test_basic.py::TestGradUntil::test_grad_until_ndim_greater_one
5.09s call     tests/scan/test_rewriting.py::TestSaveMem::test_savemem_opt_0_step
4.95s call     tests/scan/test_basic.py::TestScan::test_grad_multiple_seqs_different_nsteps
4.80s call     tests/scan/test_basic.py::test_compute_test_values
3.93s call     tests/scan/test_basic.py::TestScan::test_grad_duplicate_outputs
3.70s call     tests/scan/test_basic.py::TestGradUntil::test_grad_until
3.57s call     tests/scan/test_basic.py::TestScan::test_grad_sitsot
3.42s call     tests/scan/test_rewriting.py::TestScanInplaceOptimizer::test_simple_rnn_2
3.33s call     tests/scan/test_basic.py::TestExamples::test_gibbs_chain
3.13s call     tests/scan/test_basic.py::TestScan::test_non_shaped_input_disconnected_gradient[inside-explicit]
3.10s call     tests/scan/test_basic.py::test_compute_test_value_grad_cast
3.01s call     tests/scan/test_basic.py::TestScan::test_only_nonseq_inputs
2.86s call     tests/scan/test_basic.py::TestScan::test_grad_multiple_outs_some_truncate
2.72s call     tests/scan/test_basic.py::TestExamples::test_same
2.69s call     tests/scan/test_basic.py::TestScan::test_grad_wrt_shared
2.44s call     tests/scan/test_rewriting.py::TestSaveMem::test_while_scan_taps
2.31s call     tests/scan/test_basic.py::TestExamples::test_return_steps
2.13s call     tests/scan/test_basic.py::TestScan::test_R_op_mitmot[False]
2.12s call     tests/scan/test_rewriting.py::TestSaveMem::test_save_mem_reduced_number_of_steps
2.06s call     tests/scan/test_basic.py::TestGradUntil::test_grad_until_and_truncate
2.02s call     tests/scan/test_basic.py::TestExamples::test_not_working_infer_shape
1.99s call     tests/scan/test_rewriting.py::TestRemoveConstantsAndUnusedInputsScan::test_remove_constants_and_unused_inputs_scan_seqs
1.97s call     tests/scan/test_basic.py::TestExamples::test_grad_bug_disconnected_input
=========================== short test summary info ============================
(15 minutes 26 seconds) tests/tensor --ignore=tests/tensor/rewriting --ignore=tests/tensor/test_math.py --ignore=tests/tensor/test_basic.py --ignore=tests/tensor/test_inplace.py --ignore=tests/tensor/conv --ignore=tests/tensor/test_blas.py --ignore=tests/tensor/test_elemwise.py --ignore=tests/tensor/test_math_scipy.py
============================= slowest 50 durations =============================
42.16s call     tests/tensor/test_subtensor.py::TestSubtensor::test_shape_i_const
26.24s call     tests/tensor/test_blockwise.py::TestCholesky::test_grad
21.25s call     tests/tensor/test_optimize.py::test_minimize_vector_x[Newton-CG]
13.05s call     tests/tensor/test_subtensor.py::TestSubtensor::test_grad_list
9.97s call     tests/tensor/test_casting.py::TestCasting::test_convert_to_complex
7.95s call     tests/tensor/test_optimize.py::test_root_system_of_equations
7.74s call     tests/tensor/test_blockwise.py::TestSolveVector::test_grad
6.95s call     tests/tensor/test_blockwise.py::TestMatrixInverse::test_grad
6.14s call     tests/tensor/test_subtensor.py::TestInferShape::test_IncSubtensor
5.87s call     tests/tensor/test_fft.py::TestFFT::test_grad_rfft
5.85s call     tests/tensor/random/rewriting/test_basic.py::test_Subtensor_lift[indices17-True-dist_op17-dist_params17-None]
5.55s call     tests/tensor/test_extra_ops.py::TestRepeat::test_basic[int8-3]
5.54s call     tests/tensor/random/rewriting/test_basic.py::test_Subtensor_lift[indices2-True-dist_op2-dist_params2-None]
5.42s call     tests/tensor/test_blas_c.py::TestCGemvNoFlags::test_cgemv
5.29s call     tests/tensor/test_pad.py::test_nd_padding[asymmetric-reflect]
5.26s call     tests/tensor/test_subtensor.py::TestIncSubtensor::test_grad_inc_set
5.17s call     tests/tensor/test_blas_c.py::TestBlasStrides::test_gemm
4.96s call     tests/tensor/test_blockwise.py::TestSolveMatrix::test_grad
4.64s call     tests/tensor/test_blas_c.py::TestBlasStridesC::test_gemm
4.62s call     tests/tensor/test_shape.py::TestReshape::test_more_shapes
4.54s call     tests/tensor/test_extra_ops.py::TestCumOp::test_grad
4.37s call     tests/tensor/test_subtensor.py::TestSubtensor::test_ok_list
4.22s call     tests/tensor/test_slinalg.py::test_solve_discrete_are_grad[True]
3.96s call     tests/tensor/test_extra_ops.py::TestRavelMultiIndex::test_ravel_multi_index
3.91s call     tests/tensor/test_slinalg.py::test_cholesky_grad_indef
3.88s call     tests/tensor/test_slinalg.py::test_solve_discrete_are_grad[False]
3.86s call     tests/tensor/test_slinalg.py::test_solve_discrete_lyapunov[direct-matrix-complex]
3.74s call     tests/tensor/test_nlinalg.py::TestEighFloat32::test_grad
3.62s call     tests/tensor/test_slinalg.py::test_solve_discrete_lyapunov_gradient[direct-matrix-float]
3.62s call     tests/tensor/test_extra_ops.py::TestBinCount::test_bincountFn[int16]
3.62s call     tests/tensor/test_extra_ops.py::TestBinCount::test_bincountFn[int8]
3.62s call     tests/tensor/test_extra_ops.py::TestBinCount::test_bincountFn[int32]
3.39s call     tests/tensor/test_blockwise.py::test_scan_gradient_core_type
3.38s call     tests/tensor/test_extra_ops.py::test_cpu_contiguous
3.25s call     tests/tensor/test_pad.py::test_reflect_pad[even-asymmetrical_left-3d square]
3.25s call     tests/tensor/test_pad.py::test_reflect_pad[even-asymmetric_right-3d square]
3.19s call     tests/tensor/test_fft.py::TestFFT::test_rfft_float
3.18s call     tests/tensor/test_pad.py::test_reflect_pad[even-symmetrical-3d square]
3.17s call     tests/tensor/test_pad.py::test_nd_padding[symmetric-reflect]
3.17s call     tests/tensor/test_extra_ops.py::TestBinCount::test_bincountFn[int64]
3.14s call     tests/tensor/test_pad.py::test_nd_padding[asymmetric-symmetric]
3.12s call     tests/tensor/test_extra_ops.py::TestRepeat::test_basic[uint32-3]
3.12s call     tests/tensor/test_extra_ops.py::TestRepeat::test_basic[int32-3]
3.12s call     tests/tensor/test_extra_ops.py::TestRepeat::test_basic[uint16-3]
3.12s call     tests/tensor/test_extra_ops.py::TestRepeat::test_basic[uint8-3]
3.11s call     tests/tensor/test_extra_ops.py::TestRepeat::test_basic[int16-3]
3.00s call     tests/tensor/test_optimize.py::test_minimize_vector_x[powell]
2.97s call     tests/tensor/test_slinalg.py::test_solve_discrete_lyapunov[direct-batch-complex]
2.96s call     tests/tensor/test_xlogx.py::test_xlogy0
2.96s call     tests/tensor/test_slinalg.py::test_solve_discrete_lyapunov_gradient[direct-batch-float]
=========================== short test summary info ============================
(10 minutes 46 seconds) tests/tensor/test_basic.py tests/tensor/test_inplace.py tests/tensor/conv
============================= slowest 50 durations =============================
63.84s call     tests/tensor/test_basic.py::TestSecondSameRank::test_good
42.57s call     tests/tensor/conv/test_abstract_conv.py::TestAbstractConvNoOptim::test_all
31.19s call     tests/tensor/test_basic.py::TestTriangle::test_tril_triu
22.24s call     tests/tensor/conv/test_abstract_conv.py::TestGroupedConv3dNoOptim::test_fwd
19.32s call     tests/tensor/test_basic.py::TestAllocDiag::test_alloc_diag_values
17.59s call     tests/tensor/conv/test_abstract_conv.py::TestGroupedConv3dNoOptim::test_gradweights
12.00s call     tests/tensor/conv/test_abstract_conv.py::TestGroupedConv3dNoOptim::test_gradinputs
11.42s call     tests/tensor/test_basic.py::TestJoinAndSplit::test_roll
11.21s call     tests/tensor/conv/test_abstract_conv.py::TestUnsharedConv::test_fwd
10.34s call     tests/tensor/test_basic.py::TestSecondBroadcast::test_good
9.52s call     tests/tensor/test_basic.py::TestNdGrid::test_mgrid_pytensor_variable_numpy_equiv
7.98s call     tests/tensor/test_inplace.py::TestMulInplaceBroadcast::test_good
7.94s call     tests/tensor/test_inplace.py::TestAddInplaceBroadcast::test_good
7.93s call     tests/tensor/test_inplace.py::TestSubInplaceBroadcast::test_good
7.02s call     tests/tensor/test_inplace.py::TestModInplaceBroadcast::test_good
6.91s call     tests/tensor/test_inplace.py::TestIntDivInplaceBroadcast::test_good
6.45s call     tests/tensor/test_inplace.py::TestMinimumInplaceBroadcast::test_good
6.42s call     tests/tensor/conv/test_abstract_conv.py::TestUnsharedConv::test_gradinput
6.37s call     tests/tensor/test_inplace.py::TestMaximumInplaceBroadcast::test_good
5.03s call     tests/tensor/test_basic.py::TestJoinAndSplit::test_stack_hessian
4.40s call     tests/tensor/test_inplace.py::TestTrueDivInplaceBroadcast::test_good
4.19s call     tests/tensor/test_inplace.py::TestPowInplaceBroadcast::test_good
3.95s call     tests/tensor/test_basic.py::TestAllocBroadcast::test_good
3.94s call     tests/tensor/test_inplace.py::TestSqrInplaceBroadcast::test_good
3.94s call     tests/tensor/test_basic.py::TestAlloc::test_alloc_constant_folding
3.94s call     tests/tensor/test_inplace.py::TestNegInplaceBroadcast::test_good
3.69s call     tests/tensor/test_basic.py::TestJoinAndSplit::test_broadcastable_flags_many_dims_and_inputs
3.68s call     tests/tensor/test_inplace.py::TestArctan2InplaceBroadcast::test_good
3.46s call     tests/tensor/conv/test_abstract_conv.py::TestUnsharedConv::test_gradweight
3.38s call     tests/tensor/test_basic.py::TestSwitchBroadcast::test_grad
3.18s call     tests/tensor/test_basic.py::TestZerosLikeBroadcast::test_good
3.17s call     tests/tensor/conv/test_abstract_conv.py::TestGroupedConvNoOptim::test_gradweights
3.14s call     tests/tensor/test_inplace.py::TestAbsInplaceBroadcast::test_good
3.09s call     tests/tensor/test_inplace.py::TestTruncInplaceBroadcast::test_good
3.06s call     tests/tensor/conv/test_abstract_conv.py::TestGroupedConvNoOptim::test_fwd
2.96s call     tests/tensor/test_basic.py::TestSwitchBroadcast::test_good
2.88s call     tests/tensor/test_basic.py::TestAlloc13GradBroadcast::test_grad
2.65s call     tests/tensor/conv/test_abstract_conv.py::TestConvGradInputsShape::test_check_shape
2.52s call     tests/tensor/conv/test_abstract_conv.py::TestAssertConvShape::test_basic
2.49s call     tests/tensor/conv/test_abstract_conv.py::TestGroupedConvNoOptim::test_gradinputs
2.49s call     tests/tensor/test_basic.py::TestAllocDimshuffleGradBroadcast::test_grad
2.46s call     tests/tensor/test_basic.py::TestJoinAndSplit::test_broadcastable_flag_assignment_mixed_thisaxes
2.44s call     tests/tensor/test_basic.py::TestTile::test_tile_grad
2.40s call     tests/tensor/test_basic.py::TestARange::test_infer_shape[custom]
2.37s call     tests/tensor/conv/test_abstract_conv.py::TestBilinearUpsampling::test_fractional_bilinear_upsampling
2.35s call     tests/tensor/conv/test_abstract_conv.py::TestBilinearUpsampling::test_bilinear_kernel_1D
2.32s call     tests/tensor/test_basic.py::TestOnesLikeBroadcast::test_good
2.32s call     tests/tensor/conv/test_abstract_conv.py::TestCausalConv::test_interface
2.32s call     tests/tensor/test_basic.py::TestJoinAndSplit::test_join_matrix1[False]
2.31s call     tests/tensor/test_inplace.py::TestSgnInplaceBroadcast::test_good
=========================== short test summary info ============================
(14 minutes 45 seconds) tests/tensor/test_math.py
============================= slowest 50 durations =============================
159.37s call     tests/tensor/test_math.py::TestSumProdReduceDtype::test_reduce_custom_dtype
73.26s call     tests/tensor/test_math.py::TestProdWithoutZerosDtype::test_prod_without_zeros_custom_dtype
30.89s call     tests/tensor/test_math.py::TestProdWithoutZerosDtype::test_prod_without_zeros_custom_acc_dtype
28.01s call     tests/tensor/test_math.py::TestMaxAndArgmax::test_grad
16.15s call     tests/tensor/test_math.py::test_var
15.68s call     tests/tensor/test_math.py::TestSumProdReduceDtype::test_reduce_default_dtype
13.98s call     tests/tensor/test_math.py::TestPowBroadcast::test_grad
13.17s call     tests/tensor/test_math.py::TestTensordot::test_basic
11.83s call     tests/tensor/test_math.py::TestComparison::test_isclose
11.53s call     tests/tensor/test_math.py::TestAddBroadcast::test_good
9.83s call     tests/tensor/test_math.py::TestProd::test_verify_grad
9.64s call     tests/tensor/test_math.py::TestMulBroadcast::test_good
9.15s call     tests/tensor/test_math.py::TestArctan2Broadcast::test_grad
8.85s call     tests/tensor/test_math.py::TestSubBroadcast::test_grad
8.34s call     tests/tensor/test_math.py::TestArctan2Broadcast::test_good
8.25s call     tests/tensor/test_math.py::TestSubBroadcast::test_good
7.61s call     tests/tensor/test_math.py::TestModBroadcast::test_good
7.00s call     tests/tensor/test_math.py::TestMinimumBroadcast::test_grad
7.00s call     tests/tensor/test_math.py::TestMaximumBroadcast::test_grad
6.99s call     tests/tensor/test_math.py::TestCeilIntDivBroadcast::test_good
6.80s call     tests/tensor/test_math.py::TestTrueDivBroadcast::test_grad
6.78s call     tests/tensor/test_math.py::TestClip1::test_good
6.76s call     tests/tensor/test_math.py::TestTrueDivBroadcast::test_good
6.65s call     tests/tensor/test_math.py::TestModBroadcast::test_grad
6.57s call     tests/tensor/test_math.py::TestMinimumBroadcast::test_good
6.55s call     tests/tensor/test_math.py::TestMulBroadcast::test_grad
6.54s call     tests/tensor/test_math.py::TestMaximumBroadcast::test_good
6.23s call     tests/tensor/test_math.py::TestProd::test_prod_no_zeros_in_input
6.13s call     tests/tensor/test_math.py::TestProd::test_other_grad_tests
6.04s call     tests/tensor/test_math.py::TestClip2::test_clip_repeat_verify_grad
5.63s call     tests/tensor/test_math.py::TestProdWithoutZerosDtype::test_prod_without_zeros_default_acc_dtype
5.63s call     tests/tensor/test_math.py::TestOuter::test_grad
5.61s call     tests/tensor/test_math.py::TestMinMax::test_grad_min
4.88s call     tests/tensor/test_math.py::TestDenseDot::test_good
4.79s call     tests/tensor/test_math.py::TestPowBroadcast::test_good
4.53s call     tests/tensor/test_math.py::TestMeanDtype::test_mean_default_dtype
4.16s call     tests/tensor/test_math.py::TestAdd::test_complex_all_ops
4.12s call     tests/tensor/test_math.py::TestOuter::test_outer
4.08s call     tests/tensor/test_math.py::TestSqrBroadcast::test_good
4.04s call     tests/tensor/test_math.py::TestAbsBroadcast::test_good
3.90s call     tests/tensor/test_math.py::TestDivimpl::test_impls
3.81s call     tests/tensor/test_math.py::test_cov
3.23s call     tests/tensor/test_math.py::TestInvBroadcast::test_good
3.22s call     tests/tensor/test_math.py::TestTanhBroadcast::test_good
3.20s call     tests/tensor/test_math.py::TestExpBroadcast::test_good
3.20s call     tests/tensor/test_math.py::TestSinhBroadcast::test_good
3.20s call     tests/tensor/test_math.py::TestCoshBroadcast::test_good
3.20s call     tests/tensor/test_math.py::TestRad2degBroadcast::test_good
3.20s call     tests/tensor/test_math.py::TestExpm1Broadcast::test_good
3.19s call     tests/tensor/test_math.py::TestExp2Broadcast::test_good
=========================== short test summary info ============================
(10 minutes 14 seconds) tests/tensor/test_blas.py tests/tensor/test_elemwise.py tests/tensor/test_math_scipy.py
============================= slowest 50 durations =============================
146.50s call     tests/tensor/test_elemwise.py::TestCAReduce::test_c
50.71s call     tests/tensor/test_blas.py::TestGemmNoFlags::test_gemm
21.63s call     tests/tensor/test_math_scipy.py::TestGammaIncBroadcast::test_grad
19.30s call     tests/tensor/test_blas.py::test_dot22scalar
15.88s call     tests/tensor/test_elemwise.py::TestCAReduce::test_perform
12.65s call     tests/tensor/test_math_scipy.py::TestBetaincBroadcast::test_grad
9.56s call     tests/tensor/test_math_scipy.py::TestGammaInccBroadcast::test_grad
8.19s call     tests/tensor/test_elemwise.py::TestCAReduce::test_c_noopt
8.02s call     tests/tensor/test_math_scipy.py::TestBetaIncGrad::test_stan_grad_partial
7.38s call     tests/tensor/test_math_scipy.py::test_gammainc_ddk_tabulated_values
7.02s call     tests/tensor/test_elemwise.py::TestCAReduce::test_perform_nan
6.49s call     tests/tensor/test_blas.py::test_local_dot22_to_dot22scalar
6.34s call     tests/tensor/test_math_scipy.py::TestHyp2F1Broadcast::test_grad
6.19s call     tests/tensor/test_blas.py::test_dot22scalar_cast
6.15s call     tests/tensor/test_elemwise.py::TestBroadcast::test_c
5.85s call     tests/tensor/test_math_scipy.py::TestBetaincInplaceBroadcast::test_grad
5.18s call     tests/tensor/test_blas.py::test_dot_w_self
5.04s call     tests/tensor/test_elemwise.py::TestElemwise::test_infer_shape
4.87s call     tests/tensor/test_elemwise.py::TestBroadcast::test_c_inplace
4.64s call     tests/tensor/test_elemwise.py::TestCAReduce::test_infer_shape
4.54s call     tests/tensor/test_blas.py::TestBlasStrides::test_gemm
4.47s call     tests/tensor/test_math_scipy.py::TestChi2SFBroadcast::test_good
4.35s call     tests/tensor/test_math_scipy.py::TestErfcxBroadcast::test_grad
4.34s call     tests/tensor/test_math_scipy.py::TestHyp2F1Grad::test_hyp2f1_grad_stan_cases
4.16s call     tests/tensor/test_math_scipy.py::TestErfBroadcast::test_grad
4.08s call     tests/tensor/test_blas.py::test_batched_tensordot
3.72s call     tests/tensor/test_blas.py::test_gemm_opt0
3.56s call     tests/tensor/test_math_scipy.py::TestGammalnBroadcast::test_good
3.49s call     tests/tensor/test_math_scipy.py::TestGammalnInplaceBroadcast::test_good
3.29s call     tests/tensor/test_blas.py::test_gemm_nested
3.14s call     tests/tensor/test_math_scipy.py::TestErfBroadcast::test_good
2.91s call     tests/tensor/test_elemwise.py::TestCAReduce::test_c_nan
2.78s call     tests/tensor/test_blas.py::TestGemm::test_non_contiguous
2.68s call     tests/tensor/test_blas.py::test_upcasting_scalar_nogemm
2.66s call     tests/tensor/test_blas.py::test_gemm_opt_vector_stuff
2.53s call     tests/tensor/test_blas.py::test_gemm_unrolled
2.47s call     tests/tensor/test_math_scipy.py::TestErfcBroadcast::test_grad
2.43s call     tests/tensor/test_math_scipy.py::TestSigmoidInplaceBroadcast::test_grad
2.41s call     tests/tensor/test_math_scipy.py::TestBetaIncGrad::test_boik_robison_cox
2.38s call     tests/tensor/test_math_scipy.py::TestSoftplusInplaceBroadcast::test_grad
2.18s call     tests/tensor/test_elemwise.py::TestDimShuffle::test_c_or_py
2.13s call     tests/tensor/test_blas.py::TestBatchedDot::test_grad
2.11s call     tests/tensor/test_math_scipy.py::TestErfcxBroadcast::test_good
2.07s call     tests/tensor/test_blas.py::TestGer::test_c64_7_1
2.04s call     tests/tensor/test_math_scipy.py::TestHyp2F1Grad::test_unused_grad_loop_opt[wrt4]
2.03s call     tests/tensor/test_math_scipy.py::TestErfcxInplaceBroadcast::test_good
1.95s call     tests/tensor/test_blas.py::TestBlasStrides::test_dot22scalar
1.91s call     tests/tensor/test_math_scipy.py::TestHyp2F1Grad::test_unused_grad_loop_opt[wrt3]
1.91s call     tests/tensor/test_math_scipy.py::TestHyp2F1Grad::test_unused_grad_loop_opt[wrt5]
1.80s call     tests/tensor/test_math_scipy.py::test_kve
=========================== short test summary info ============================
(7 minutes 7 seconds) ubuntu-latest test py3.13 numpy>=2.0 : fast-compile 1 : float32 0 : tests/tensor --ignore=tests/tensor/rewriting --ignore=tests/tensor/test_math.py --ignore=tests/tensor/test_basic.py --ignore=tests/tensor/test_inplace.py --ignore=tests/tensor/conv --ignore=tests/tensor/test_blas.py --ignore=tests/tensor/test_elemwise.py --ignore=tests/tensor/test_math_scipy.py
============================= slowest 50 durations =============================
11.87s call     tests/tensor/test_subtensor.py::TestSubtensor::test_shape_i_const
6.06s call     tests/tensor/random/rewriting/test_basic.py::test_Subtensor_lift[indices17-True-dist_op17-dist_params17-None]
5.73s call     tests/tensor/random/rewriting/test_basic.py::test_Subtensor_lift[indices2-True-dist_op2-dist_params2-None]
5.47s call     tests/tensor/test_subtensor.py::TestSubtensor::test_grad_list
5.27s call     tests/tensor/test_pad.py::test_nd_padding[asymmetric-reflect]
4.78s call     tests/tensor/test_blas_c.py::TestBlasStrides::test_gemm
4.77s call     tests/tensor/test_blockwise.py::TestCholesky::test_grad
4.17s call     tests/tensor/test_blas_c.py::TestBlasStridesC::test_gemm
3.35s call     tests/tensor/test_pad.py::test_nd_padding[symmetric-reflect]
3.20s call     tests/tensor/test_pad.py::test_reflect_pad[even-asymmetrical_left-3d square]
3.19s call     tests/tensor/test_pad.py::test_reflect_pad[even-asymmetric_right-3d square]
3.18s call     tests/tensor/test_pad.py::test_reflect_pad[even-symmetrical-3d square]
2.83s call     tests/tensor/random/rewriting/test_basic.py::test_Subtensor_lift[indices9-True-dist_op9-dist_params9-size9]
2.78s call     tests/tensor/test_fft.py::TestFFT::test_grad_rfft
2.55s call     tests/tensor/test_pad.py::test_nd_padding[symmetric-mean]
2.51s call     tests/tensor/test_pad.py::test_nd_padding[asymmetric-mean]
2.40s call     tests/tensor/test_optimize.py::test_minimize_vector_x[Newton-CG]
2.27s call     tests/tensor/random/rewriting/test_basic.py::test_Subtensor_lift[indices6-False-dist_op6-dist_params6-size6]
2.18s call     tests/tensor/random/test_utils.py::TestSharedRandomStream::test_tutorial
2.13s call     tests/tensor/test_optimize.py::test_minimize_vector_x[powell]
2.08s call     tests/tensor/test_subtensor.py::test_indexed_result_shape[test_array12-test_idx12]
2.07s call     tests/tensor/test_extra_ops.py::TestRavelMultiIndex::test_ravel_multi_index
1.90s call     tests/tensor/test_pad.py::test_nd_padding[symmetric-linear_ramp]
1.87s call     tests/tensor/test_blas_c.py::TestCGemvNoFlags::test_cgemv
1.86s call     tests/tensor/test_pad.py::test_symmetric_pad[even-asymmetric_right-3d square]
1.84s call     tests/tensor/test_optimize.py::test_root_system_of_equations
1.83s call     tests/tensor/random/rewriting/test_basic.py::test_Subtensor_lift[indices3-True-dist_op3-dist_params3-size3]
1.78s call     tests/tensor/test_blas_c.py::TestSdotNoFlags::test_cgemv
1.75s call     tests/tensor/test_optimize.py::test_minimize_vector_x[L-BFGS-B]
1.74s call     tests/tensor/random/test_basic.py::test_normal_ShapeFeature
1.70s call     tests/tensor/test_pad.py::test_nd_padding[asymmetric-symmetric]
1.70s call     tests/tensor/test_pad.py::test_nd_padding[symmetric-symmetric]
1.69s call     tests/tensor/test_pad.py::test_symmetric_pad[even-asymmetrical_left-3d square]
1.66s call     tests/tensor/test_pad.py::test_symmetric_pad[even-symmetrical-3d square]
1.62s call     tests/tensor/random/rewriting/test_basic.py::test_local_rv_size_lift[dist_op1-dist_params1-None]
1.60s call     tests/tensor/test_pad.py::test_reflect_pad[even-symmetrical-2d square]
1.60s call     tests/tensor/test_pad.py::test_nd_padding[asymmetric-wrap]
1.58s call     tests/tensor/test_interpolate.py::test_interpolate_scalar_no_extrapolate[None-None-linear]
1.57s call     tests/tensor/test_pad.py::test_reflect_pad[even-asymmetrical_left-2d square]
1.56s call     tests/tensor/test_pad.py::test_reflect_pad[even-asymmetric_right-2d square]
1.56s call     tests/tensor/test_blas_c.py::TestBlasStrides::test_dot22scalar
1.45s call     tests/tensor/test_pad.py::test_nd_padding[symmetric-wrap]
1.38s call     tests/tensor/random/rewriting/test_basic.py::test_local_rv_size_lift[dist_op2-dist_params2-size2]
1.36s call     tests/tensor/test_pad.py::test_stat_pad[2-mean-asymmetric_right-3d square]
1.36s call     tests/tensor/random/rewriting/test_basic.py::test_Subtensor_lift[indices4-True-dist_op4-dist_params4-None]
1.36s call     tests/tensor/test_pad.py::test_stat_pad[2-mean-asymmetrical_left-3d square]
1.34s call     tests/tensor/test_pad.py::test_stat_pad[2-mean-symmetrical-3d square]
1.32s call     tests/tensor/random/rewriting/test_basic.py::test_Subtensor_lift[indices16-True-dist_op16-dist_params16-size16]
1.32s call     tests/tensor/test_pad.py::test_linear_ramp_pad[0-asymmetrical_left-3d square]
1.31s call     tests/tensor/test_slinalg.py::test_solve_discrete_lyapunov_gradient[direct-batch-float]
=========================== short test summary info ============================

You can find more information on how to contribute here

Automatically generated by GitHub Action
Latest run date: 2025-08-07
Run logs: 16792662634

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions