I'm working on a large Blazor WebAssembly application and looking for ways to implement benchmarking to measure performance (e.g., load times, navigation times, rendering times, and response times for certain actions). I'd like to implement it globally across the app.
I'd like to understand:
Are there any recommended approaches for benchmarking in Blazor WebAssembly?
Are there any libraries or tools that work well with WASM specifically?
Is it better to measure performance directly in the browser using JavaScript interop or are there .NET-native solutions?
How can I collect and analyze the results in a way that's meaningful over time (e.g., comparing builds or tracking regressions)?
Are there any known limitations or pitfalls to be aware of when benchmarking in Blazor WebAssembly?
Any suggestions, experiences, or best practices would be greatly appreciated. Thanks!