[wasm] Add AppStart task to the bench Sample (#61481)
authorRadek Doulik <radek.doulik@gmail.com>
Fri, 12 Nov 2021 14:34:56 +0000 (15:34 +0100)
committerGitHub <noreply@github.com>
Fri, 12 Nov 2021 14:34:56 +0000 (15:34 +0100)
commit35704e44e5d1b158f21512b1c1081a0e025bde3f
treedc2189f95c18756176ba744cb598b9d79dc595f4
parent5fa6dd364982be4ffd83358adbf130d88049c72a
[wasm] Add AppStart task to the bench Sample (#61481)

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 |
src/mono/sample/wasm/browser-bench/AppStart.cs [new file with mode: 0644]
src/mono/sample/wasm/browser-bench/BenchTask.cs
src/mono/sample/wasm/browser-bench/Program.cs
src/mono/sample/wasm/browser-bench/Wasm.Browser.Bench.Sample.csproj
src/mono/sample/wasm/browser-bench/appstart-frame.html [new file with mode: 0644]
src/mono/sample/wasm/browser-bench/appstart.js [new file with mode: 0644]
src/mono/sample/wasm/browser-bench/index.html
src/mono/sample/wasm/browser-bench/runtime.js
src/mono/sample/wasm/browser-bench/style.css [new file with mode: 0644]