eknkc / ssr-benchmark

Benchmarking JS web framework SSR performance
758 stars 171 forks source link

Use Remix `defer` for test parity #2

Closed kiliman closed 7 months ago

kiliman commented 7 months 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.