Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include instruction to run benchmark #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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