atopile / faebryk

Open-source software-defined EDA
MIT License
22 stars 0 forks source link

Accelerate test cases #111

Open iopapamanoglou opened 1 day ago

iopapamanoglou commented 1 day ago

Feature Request

❯ pytest -v -n auto --durations=10

================================================= slowest 10 durations ==================================================
153.43s call     test/libs/picker/test_pickers.py::TestPickerPerformanceApi::test_simple_full
47.86s call     test/library/test_basic.py::test_init_args[RaspberryPiPicoBase_ReferenceDesign-RaspberryPiPicoBase_ReferenceDesign]
38.62s call     test/library/test_basic.py::test_init_args[RP2040_ReferenceDesign-RP2040_ReferenceDesign]
32.15s call     test/library/test_basic.py::test_init_args[CH344Q_ReferenceDesign-CH344Q_ReferenceDesign]
26.06s call     test/library/test_basic.py::test_init_args[RP2040-RP2040]
15.30s call     test/libs/picker/test_pickers.py::TestPickerPerformanceJlcpcb::test_simple_full
12.38s call     test/library/test_basic.py::test_init_args[CBM9002A_56ILG_ReferenceDesign-CBM9002A_56ILG_ReferenceDesign]
12.13s call     test/libs/test_e_series.py::TestESeries::test_ratio
10.96s call     test/libs/picker/test_pickers.py::TestPickerApi::test_find_ldo
8.92s call     test/libs/picker/test_pickers.py::TestPickerJlcpcb::test_find_tvs
====================================== 487 passed, 63 skipped in 203.06s (0:03:23) ======================================

Code of Conduct

sam-mellor commented 12 hours ago

For TestPickerPerformanceApi:

image

Diminishing returns now on accelerating the same API endpoints.