Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make react-dom ssr section more accurate #15

Merged
merged 1 commit into from Aug 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 2 additions & 18 deletions README.md
Expand Up @@ -203,29 +203,13 @@ SSR throughput of the dashboard page, measured by [autocannon](https://github.co

Measure Node vs Bun vs Deno at SSR speed of a non trivial (the dashboard) React app. The below is requests per second. Larger numbers are better.

##### Results using the same react-dom/server:

```
┌─────────┬──────────────────┬─────┬─────┬─────┬───────┬─────────┐
│ (index) │ name │ 1% │ 50% │ 99% │ Avg │ Std Dev │
├─────────┼──────────────────┼─────┼─────┼─────┼───────┼─────────┤
│ 0 │ 'react-ssr-deno' │ 440 │ 550 │ 628 │ 546 │ 56.23 │
│ 1 │ 'react-ssr-bun' │ 276 │ 386 │ 476 │ 391.9 │ 57.61 │
│ 2 │ 'react-ssr-node' │ 328 │ 408 │ 420 │ 400.6 │ 25.44 │
└─────────┴──────────────────┴─────┴─────┴─────┴───────┴─────────┘
```

##### Results including Bun using a Bun-optimized react-dom/server

In Bun's benchmarks they use a fork of react-dom/server optimized for Bun. This is the results of that:

```
┌─────────┬──────────────────┬─────┬─────┬─────┬───────┬─────────┐
│ (index) │ name │ 1% │ 50% │ 99% │ Avg │ Std Dev │
├─────────┼──────────────────┼─────┼─────┼─────┼───────┼─────────┤
│ 0 │ 'react-ssr-bun' │ 598 │ 681 │ 737 │ 680.9 │ 47.96 │
│ 1 │ 'react-ssr-deno' │ 46061066059169.64
│ 2 │ 'react-ssr-node' │ 340416430404.2 │ 25.44 │
│ 1 │ 'react-ssr-deno' │ 44055062854656.23
│ 2 │ 'react-ssr-node' │ 328408420400.6 │ 25.44 │
└─────────┴──────────────────┴─────┴─────┴─────┴───────┴─────────┘
```

Expand Down