Add timing measurement for integration tests#986
Open
xingzihai wants to merge 1 commit into
Open
Conversation
- Add TimingResult and TimingRecorder classes in Cesium.TestFramework
- Modify IntegrationTestRunner.DoTestWithTiming to measure time for each stage:
- Native compiler compile time
- Native executable run time
- Cesium compiler compile time
- Cesium executable run time
- Output timing results to JSON file (integration-test-timing-{OS}-{timestamp}.json)
- This addresses issue ForNeVeR#985: Speed up the integration tests
ForNeVeR
requested changes
Apr 2, 2026
Owner
ForNeVeR
left a comment
There was a problem hiding this comment.
Sadly, compilation breaks in this PR, would you please take a look?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR addresses issue #985 by adding timing measurement for integration tests.
Changes
TimingResult.csandTimingRecorder.csinCesium.TestFrameworkto record test timing informationIntegrationTestRunner.csto measure time for each test stage:integration-test-timing-{OS}-{timestamp}.json) at the end of the test runOutput Format
The JSON file contains:
Purpose
This allows CI teams to download the timing results and analyze which stages of the integration tests are taking the most time, helping to identify optimization opportunities.
Example Output
{ "os": "Windows", "timestamp": "2025-04-01T12:00:00Z", "tests": [ { "testName": "Net.hello.c_Bit32", "sourceFile": "hello.c", "targetArch": "Bit32", "targetFramework": "Net", "nativeCompileTimeMs": 1234, "nativeRunTimeMs": 56, "cesiumCompileTimeMs": 789, "cesiumRunTimeMs": 23, "totalTimeMs": 2102 } ], "summary": { "totalTests": 100, "totalNativeCompileTimeMs": 12345, "totalCesiumCompileTimeMs": 67890, "totalTimeMs": 80235 } }Fixes #985