https://github.com/dancastillo/benchmarks-web
https://github.com/dancastillo/benchmarks-web
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dancastillo/benchmarks-web
- Owner: dancastillo
- Created: 2022-11-17T16:57:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-17T17:55:34.000Z (over 2 years ago)
- Last Synced: 2025-01-20T17:50:45.644Z (4 months ago)
- Language: TypeScript
- Size: 38.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Benchmark Node.js Web Frameworks
## Getting Started
### Installation
1. Clone the repo
```sh
git clone https://github.com/dancastillo/benchmarks-web
```
2. Change directory
```sh
cd benchmarks-web
```
3. Install NPM packages
```sh
npm install
```
or```sh
yarn install
```## Usage
Test all
```
yarn start
``````sh
Available options:
-l
Which web frameworks to benchmark
# Directly from https://github.com/mcollina/autocannon
-c NUM
The number of concurrent connections to use. default: 10.
-p NUM
The number of pipelined requests to use. default: 1.
-d SEC
The number of seconds to run the autocannon. default: 10.
```* `-l` - list out which files to bench mark. Default: `all`
Run all object files `*-object.ts`
```sh
yarn start -l object
```Run specific file `fastify.ts`
```sh
yarn start -l fastify
```Run specific files `fastify.ts express.ts`
```sh
yarn start -l fastify -l express
```