-
Notifications
You must be signed in to change notification settings - Fork 331
Make C3D read time test relative #2221
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
base: main
Are you sure you want to change the base?
Conversation
…ent of read-time.
# Conflicts: # OpenSim/Common/Test/testC3DFileAdapter.cpp
:( |
It is very suspicious that the |
I don't know, but it seems like this approach won't work. |
The issue seems to stem from |
…notonically increasing instead of std::clock() for timing.
… the smaller test.sto file as the benchmark.
@chrisdembia and @tkuchida, I believe the combination of using |
Did you try running the |
The CPU could be doing other things when loading "test.sto" and/or "walking*.c3d", so I'm not sure wall clock time is the best metric. It also isn't obvious that it would take 1000× longer to load a file that is 1000× larger---wouldn't it depend on, e.g., how fragmented the file is (seek time)? It's difficult to think of a solution without knowing why the CI machine is slow. Perhaps the wall clock speed test should be skipped on CI? |
Yes it's possible, but the test files are pretty small. I am hoping that because the benchmark
Slow machines would be fine. The paradox I was running into was that CI would occasionally read the benchmark file at blazing speeds (faster than my desktop) such that the relative max load time was unrealistically fast and the test fails.
I could remove the test condition altogether and just have the test report the time. We would then have to manually monitor this time to make sure the load times don't creep or jump up again. |
My point was that I wouldn't expect a file to take 1000x longer to open if it's 1000x larger, not that files will necessarily be fragmented.
Yes, I recognize that the absolute speed of the machine is irrelevant: the issue is that files sometimes take more/less time to read than expected, based on linearly extrapolating the read time of a small file.
That seems reasonable. It's also possible to skip tests in the .yml files. |
@aseth1 is this still necessary? With the performance improvements with dealing with tables this seems unnecessary. Can I close and delete? |
Fixes issue #2217
Brief summary of changes
Update to #2218
Testing I've completed
All tests pass locally.
Looking for feedback on...
N/A
CHANGELOG.md (choose one)
This change is