This repository contains a simple benchmark of islands architecture against SSR on edge and SSR on an individual server.
nvm use
to use the right version of Nodenpm install
to install dependenciesnpm run start:cf
to run the edge test server
After that you should be able to access localhost:3000
and paths (/islands
and /ssr
) behind it.
Note that the edge server is automatically deployed to https://island-benchmark.pages.dev/
and you can access the same endpoints there.
Make sure you have a recent version of Deno installed and then run npm run start:deno
. The server uses port 8080 by default and to customize, set PORT
(i.e., PORT=1234 npm run start:ssr
).
There is also a Node version available at npm start
.
The individual server version is automatically deployed to https://island-benchmark.cyclic.app/
.
TypeScript is used for the edge code (CloudFlare workers) and the setup has been derived from wrangler init
.
To generate Lighthouse results, run the following:
npm run playwright
You can see the summaries in the output (FCP in ms) as a CSV to copy to main.tex
.
Autocannon (req/s) tests are behind npm run autocannon
. namespace. It emits a CSV that you should copy to LaTeX.