Uh oh!
There was an error while loading. Please reload this page.
[wasm] Add AppStart task to the bench Sample - #61481
Conversation
Measure browser app start times, 2 measurements implemented. First to measure till the JS window.pageshow event, second to measure time when we reach managed C# code. Example ouput: | measurement | time | |-:|-:| | AppStart, Page show | 108.1400ms | | AppStart, Reach managed | 240.2174ms |
ghost
commented
Nov 11, 2021
Tagging subscribers to this area: Issue DetailsMeasure browser app start times, 2 measurements implemented. First to measure till the JS window.pageshow event, second to measure Example ouput:
|
Uh oh!
There was an error while loading. Please reload this page.
| { | ||
| RunStep(); | ||
| if (HasRunStepAsync) | ||
| await RunStepAsync(); |
There was a problem hiding this comment.
Note that the async continuation is probably executed from setTimer(... , 0) so, if there is work in that scheduler, it may impact measurement. But compared to whole emscripten startup, probably not big problem.
There was a problem hiding this comment.
Yeah. I think there should not be much else happening at that time, besides things which are part of the startup.
Not sure whether we can improve that.
Measure browser app start times, 2 measurements implemented.
First to measure till the JS window.pageshow event, second to measure
time when we reach managed C# code.
Example ouput: