Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/illinker-test-assets.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'wasm/Microsoft.AspNetCore.Blazor.E2EPerformance/wwwroot/benchmarks/appStartup.js')
-rw-r--r--wasm/Microsoft.AspNetCore.Blazor.E2EPerformance/wwwroot/benchmarks/appStartup.js15
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();
+ }
+ });
+
+});