Skip to content

Speedup our eight slowest pytests (one at a time please) #9718

Closed
@cclauss

Description

@cclauss

Feature description

At the end of our GitHub Actions build jobs, there is a list of the slowest ones.

Are there ways to speed up these tests without reducing our functionality or our code coverage?

Please only fix one algorithm per pull request.

  • 16.64s call neural_network/simple_neural_network.py::neural_network.simple_neural_network.forward_propagation
  • 6.15s call backtracking/word_search.py::backtracking.word_search.word_exists
  • 4.61s call digital_image_processing/test_digital_image_processing.py::test_local_binary_pattern
  • 2.59s call backtracking/power_sum.py::backtracking.power_sum.backtrack
  • 2.19s call machine_learning/xgboost_regressor.py::machine_learning.xgboost_regressor.main
  • 1.73s call maths/prime_numbers.py::maths.prime_numbers.slow_primes
  • 1.43s call backtracking/power_sum.py::backtracking.power_sum.solve
  • 1.00s call other/dijkstra_bankers_algorithm.py::other.dijkstra_bankers_algorithm.BankersAlgorithm.main
    ================= 1506 passed, 25 warnings in 71.23s (0:01:11) =================

Also, those 25 pytest warnings are worth fixing!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions