diff options
Diffstat (limited to 'wasm/Microsoft.AspNetCore.Blazor.E2EPerformance/wwwroot/benchmarks/appStartup.js')
-rw-r--r-- | wasm/Microsoft.AspNetCore.Blazor.E2EPerformance/wwwroot/benchmarks/appStartup.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/wasm/Microsoft.AspNetCore.Blazor.E2EPerformance/wwwroot/benchmarks/appStartup.js b/wasm/Microsoft.AspNetCore.Blazor.E2EPerformance/wwwroot/benchmarks/appStartup.js new file mode 100644 index 0000000..4f11b64 --- /dev/null +++ b/wasm/Microsoft.AspNetCore.Blazor.E2EPerformance/wwwroot/benchmarks/appStartup.js @@ -0,0 +1,15 @@ +import { group, benchmark } from './lib/minibench/minibench.js'; +import { BlazorApp } from './util/BlazorApp.js'; + +group('App Startup', () => { + + benchmark('Time to first UI', async () => { + const app = new BlazorApp(); + try { + await app.start(); + } finally { + app.dispose(); + } + }); + +}); |