-
Notifications
You must be signed in to change notification settings - Fork 144
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
new Composite().dispose() is slow on Mac OS #912
Comments
History of performance tests by @akurtakov : #906 (comment) |
For the record - Perf tests results (at least as far as I'm aware) have only be produced by the project on Linux. I was never involved nor remember anything about anyone using these perf tests on Win/Mac in the open. |
I'd like to prevent regressions like this from happening again. The first step that comes to mind - instead of tracking perf data externally, add a sensible assertion in the test code. However, I'm not sure what is sensible. Is 250 ms per Composite normal on MacOS? |
Unfortunately, I have found any timing in VMs to be totally unreliable. Sometimes VMs just "sleep" for extended periods and next time they "wakeup" the wallclock is already above any threshold even though the VM was not active and thus did nothing. |
Exact, we see same in our internal tests in VM's. Any time/performance results totally unreliable |
Here, the test takes 28 minutes, how unreliable should VM be to skip half an hour? |
Depends on how host is configured and how many other instances use same hardware.I saw pauses of ~15 minutes , where the VM itself was not doing anything. |
If it's github runner - it might have been affected by the degraded GHA right now https://www.githubstatus.com/ |
The test was done on physical Mac Book Pro produced in 2021 and still took 28 minutes. VM slowdowns do not justify/explain the performance. |
Creation and disposal of a Composite on Mac OS are very slow
To Reproduce
Run
eclipse.platform.swt/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/Test_situational.java
Lines 72 to 105 in 02c8a22
It takes 28 minutes to execute on Mac OS
Expected behavior
The test should complete in seconds, like on Linux and Windows.
Screenshots
Environment:
Additional OS info (e.g. OS version, Linux Desktop, etc)
Reproducible in CI
Reproducible on MacOS Monterey
JRE/JDK version
17
Version since
The test performance meter was implemented incorrectly - it failed to measure deferred events.
Performance tests were never run on CI and performance assertions were disabled three years ago.
eclipse-platform/eclipse.platform.releng@071af51#diff-55cfefb6d6ca7ae136d8057fc7ea93d8b62af5db44fc77cec0f961fc68d2bdbdL85
So the exact date of regression is unclear.
Workaround (or) Additional context
Don't create composites on MacOS.
The text was updated successfully, but these errors were encountered: