Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,44 @@

This is a simple project to compare the performance of different SSR frameworks.

## Prerequisites

1. pnpm ([https://pnpm.io](https://pnpm.io))

1. autocannon ([https://github.com/mcollina/autocannon](https://github.com/mcollina/autocannon))

## Usage

0. Clone this repo:
```
git clone https://github.com/platformatic/ssr-performance-showdown
cd ssr-performance-showdown
```

1. Go to "fastify-html" directory:
```
cd fastify-html
```

1. Install packages:
```
pnpm install
```

1. Start server:
```
pnpm start
```
Make sure to change the port in `server.js` file if port 3000 is already in use.

1. Run benchmark:
```
autocannon http://localhost:3000
```

1. Repeat the above process in the framework directory of your choice


## License

Apache-2.0