Skip to content

Conversation

SteveSandersonMS
Copy link
Member

@SteveSandersonMS SteveSandersonMS commented Mar 1, 2023

In preparation for all the SSR work we'll be doing, this PR:

  • Brings back the benchmarkapps\BlazingPizza.Server perf sample, updating it to run on the framework assemblies built from sources in this repo. Most of the code changes in this PR are just cleaning up and modernizing this, making it use current features like PageTitle, etc.
  • Adds a Crank benchmark and instructions Update: After discussion with @sebastienros, the benchmarking aspect is moved to the benchmarks repo. This PR is now simply a matter of fixing what was a broken/outdated sample, with no other changes.

For reference, here are the numbers I just got running it on aspnet-perf-win:

| load                   |         |
| ---------------------- | ------- |
| CPU Usage (%)          | 28      |
| Cores usage (%)        | 332     |
| Working Set (MB)       | 52      |
| Private Memory (MB)    | 144     |
| Start Time (ms)        | 95      |
| First Request (ms)     | 275     |
| Requests               | 539,855 |
| Bad responses          | 0       |
| Latency 50th (ms)      | 6.74    |
| Latency 75th (ms)      | 7.33    |
| Latency 90th (ms)      | 8.90    |
| Latency 95th (ms)      | 9.21    |
| Latency 99th (ms)      | 9.98    |
| Mean latency (ms)      | 7.10    |
| Max latency (ms)       | 59.47   |
| Requests/sec           | 36,073  |
| Requests/sec (max)     | 49,089  |
| Read throughput (MB/s) | 150.34  |

This is before any of the Blazor United-related SSR changes. It's doing server-side prerendering of the Blazing Pizza homepage.

@SteveSandersonMS SteveSandersonMS requested a review from a team as a code owner March 1, 2023 12:36
@mkArtakMSFT mkArtakMSFT added the area-blazor Includes: Blazor, Razor Components label Mar 2, 2023
@SteveSandersonMS SteveSandersonMS changed the title Blazor SSR benchmark Make BlazingPizza.Server sample work again Mar 7, 2023
@SteveSandersonMS SteveSandersonMS merged commit d132420 into main Mar 7, 2023
@SteveSandersonMS SteveSandersonMS deleted the stevesa/ssr-benchmark branch March 7, 2023 15:52
@ghost ghost added this to the 8.0-preview3 milestone Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants