eknkc / ssr-benchmark

Benchmarking JS web framework SSR performance
745 stars 172 forks source link

Use Remix `defer` for test parity #2

Closed kiliman closed 1 month ago

kiliman commented 1 month ago

Since your benchmark uses async for the other frameworks, this updates Remix to use defer and Await for test parity.

Using defer improved performance from 401 to 515 ops/sec on average.

The table data is emulated as async and requires Suspense on react, solid and vue. On Next it is loaded in an async RSC component. On Remix it is loaded in a route loader function.