Skip to content

Commit

Permalink
Merge pull request #15 from Jarred-Sumner/main
Browse files Browse the repository at this point in the history
Make react-dom ssr section more accurate
  • Loading branch information
steve8708 committed Aug 22, 2022
2 parents 2fb93ec + afdc01a commit 2c01eaf
Showing 1 changed file with 2 additions and 18 deletions.
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

0 comments on commit 2c01eaf

Please sign in to comment.