Skip to content

Conversation

@javiercn
Copy link
Member

@javiercn javiercn commented Jan 22, 2026

Summary

Updates the BlazingPizza SSR benchmark app to target .NET 10.0 and fixes the benchmark YAML configuration.

Changes

  • Updated BlazingPizza.Server.csproj from net8.0 to net10.0
  • Fixed scenarios/blazor.benchmarks.yml:
    • Moved arguments from inside source to job level
    • Added readyStateText: Application started. so crank waits for the app to be ready

Testing

  • ✅ Build succeeds with .NET 10.0
  • ✅ App runs and renders correctly (validated in browser)
  • ✅ Benchmark runs successfully: 595,155 requests, 0 bad responses, ~40K req/sec

Running the benchmark

Run the SSR benchmark:

crank --config scenarios/blazor.benchmarks.yml --scenario ssr --profile aspnet-perf-win

Run with PerfView trace collection (includes async task stacks):

crank --config scenarios/blazor.benchmarks.yml --scenario ssr --profile aspnet-perf-win --application.collect true --application.collectArguments "BufferSizeMB=1024;CircularMB=4096;KernelEvents=default+ThreadTime;Providers=Microsoft-Diagnostics-DiagnosticSource:0:0,System.Threading.Tasks.TplEventSource:0xFFFF:5,.NETTasks:0x1ff:@StacksEnabled=true"

- Updated Program.cs to use AddRazorComponents/MapRazorComponents
- Created Components folder with App.razor, Routes.razor
- Moved Pages to Components/Pages
- Moved Shared to Components/Layout
- Removed _Host.cshtml (replaced by App.razor)
- Updated scripts from blazor.server.js to blazor.web.js
- Added UseAntiforgery middleware
@javiercn javiercn merged commit fa65092 into main Jan 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants