-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[browser] benchmark for appstart with memory snapshot (#93477)
- Loading branch information
1 parent
bcec497
commit 82e6c60
Showing
4 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,10 +29,21 @@ try { | |
window.muteErrors = () => { | ||
mute = true; | ||
} | ||
|
||
const urlParams = new URLSearchParams(window.location.search); | ||
const myParam = urlParams.get('memorySnapshot'); | ||
|
||
Blazor.start({ | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
pavelsavara
Author
Member
|
||
configureRuntime: dotnet => { | ||
if (myParam === "true") { | ||
dotnet.withStartupMemoryCache(true); | ||
} | ||
} | ||
}); | ||
|
||
} | ||
catch (err) { | ||
if (!mute) { | ||
console.error(`WASM ERROR ${err}`); | ||
} | ||
exit(1, err); | ||
} |
This file contains 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
This file contains 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
This file contains 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
Looks like there is large penalty for autostart="false".
That can lead to a situation, where we will miss regression in default startup without autostart used, which is the default case.
@pavelsavara could you make the use of
autostart
attribute andBlazor.start
call optional and use it only for the memory snapshot measurement?