-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Speedup test_car_interfaces
#32536
Comments
A good place to optimize is the hypothesis example generation. Speeds are ~2x faster than our current version in version 4.51.0 and get slower somewhere between then and 4.55.3. The latest version (6.102.6) is even slower compared to our current version (6.47). You can root cause and open a PR to hypothesis or openpilot depending on where the optimization lies. |
Another option is to optimize get_fuzzy_car_interface_args by caching params_strategy to avoid regenerating strategies each time. Additionally, drawing st.dictionaries is quite slow; according to my tests, it can take up to 0.3 seconds. |
I tried this and it didn't seem to work.
Right so it's likely a problem in the underlying library |
test_car_interfaces
test_car_interfaces
Is this bounty still available? I'm looking to work on it but am confused if it has already been claimed by one of the PRs above |
This comment was marked as spam.
This comment was marked as spam.
Getting this result on a
So to achieve the original goal, we need to see about a ~5-6x speedup still. |
I ran on m3 MBP—appreciate the clarification! |
Hey guys, This bounty appears open under Projects so I attempted it. I believe with a few changes I have improved it to your specifications without making the tests less effective (about a 8x improvement on my machine, i7-7700k). I'll open a PR in a bit, can you guys lock the bounty if my PR is satisfactory? First PR I've done on this repository by the way, so please let me know if there's anything I am missing. |
You can put up a PR and we will review it. |
Takes ~1-2s per car. That's a big hit since we support nearly 300 different cars.
Goal is <=0.2s avg and <1s max on the CI machine, with the same test coverage. There's likely two or three things slowing this test down that'll be obvious with a bit of profiling.
Command to run:
Current output on my workstation
The text was updated successfully, but these errors were encountered: