Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Accelerate test cases #111

Open
3 of 5 tasks
iopapamanoglou opened this issue Oct 29, 2024 · 2 comments · Fixed by #114
Open
3 of 5 tasks

Accelerate test cases #111

iopapamanoglou opened this issue Oct 29, 2024 · 2 comments · Fixed by #114
Assignees

Comments

@iopapamanoglou
Copy link
Contributor

iopapamanoglou commented Oct 29, 2024

Feature Request

❯ pytest --durations=20

12 workers [563 items]    
........s......................................................................................................... [ 20%]
.s...s............s............................................................................................... [ 40%]
.....................................................................s....s.......................s.s.ss....ss.s.. [ 60%]
..sss.................ss..........s...s...........s....s..............................s......s.................... [ 80%]
..........................................s..................s.............................................        [100%]
================================================== slowest 20 durations ==================================================
24.44s call     test/libs/picker/test_pickers.py::TestPickerPerformanceApi::test_simple_full
9.86s call     test/core/test_hierarchy_connect.py::test_regression_rp2040_usb_diffpair_full
9.03s call     test/libs/picker/test_pickers.py::TestPickerPerformanceJlcpcb::test_simple_full
8.45s call     test/core/test_performance.py::TestPerformance::test_no_connect
5.46s call     test/core/test_performance.py::TestPerformance::test_complex_module
4.86s call     test/libs/test_e_series.py::TestESeries::test_ratio
4.31s call     test/core/test_hierarchy_connect.py::test_regression_rp2040_usb_diffpair
3.97s call     test/libs/picker/test_pickers.py::TestPickerApi::test_find_ldo
2.52s call     test/libs/kicad/test_fileformats.py::test_dump_load_equality[C_kicad_netlist_file-path2]
2.44s call     test/libs/picker/test_pickers.py::TestPickerApi::test_find_capacitor
2.41s call     test/core/test_performance.py::TestPerformance::test_mif_connect_check
2.39s call     test/libs/picker/test_pickers.py::TestPickerApi::test_find_diode
2.34s call     test/libs/picker/test_pickers.py::TestPickerApi::test_find_resistor
2.12s call     test/libs/picker/test_pickers.py::TestPickerApi::test_find_led
2.01s call     test/libs/kicad/test_fileformats.py::test_parser
1.70s call     test/libs/picker/test_pickers.py::TestPickerApi::test_find_inductor
1.50s call     test/libs/picker/test_pickers.py::TestPickerApi::test_find_tvs
1.45s call     test/libs/picker/test_pickers.py::TestPickerJlcpcb::test_find_tvs
1.43s call     test/core/test_performance.py::TestPerformance::test_get_all
1.30s call     test/libs/kicad/test_fileformats.py::test_dump_load_equality[C_kicad_sch_file-path5]
============================================ 537 passed, 26 skipped in 33.76s ============================================

OLD

================================================= 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

  • I agree to follow this project's Code of Conduct
@sam-mellor
Copy link
Contributor

For TestPickerPerformanceApi:
image

Diminishing returns now on accelerating the same API endpoints.

@iopapamanoglou
Copy link
Contributor Author

For TestPickerPerformanceApi: image

Diminishing returns now on accelerating the same API endpoints.

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants