Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit de2126d

Browse files
authored
Merge pull request #43 from fastify/refactor-benchmarks
Refactor benchmarks + Fix undici tests
2 parents a530b8c + f90d9f6 commit de2126d

12 files changed

+16
-109
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,5 @@ typings/
6060
.vscode/
6161

6262
.idea
63+
64+
.DS_Store

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
language: node_js
22
node_js:
3+
- "10"
34
- "12"
5+
- "14"
46

57
before_install:
68
- npm install -g npm@latest

README.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,9 @@ service.get('/service/hi', (req, res) => res.send('Hello World!'))
3737

3838
service.start(3000)
3939
```
40+
4041
## Benchmarks
41-
Benchmark scripts can be found in `benchmark` folder.
42-
> `fast-proxy` is fast with F
43-
```bash
44-
wrk -t8 -c50 -d20s http://127.0.0.1:8080/service/hi
45-
```
46-
- **fast-proxy-undici/0http**: Requests/sec **19014.13** (HTTP pipelining = 10)
47-
- **fast-proxy/0http**: Requests/sec **17791.10**
48-
- **fast-proxy/restana**: Requests/sec **17013.53**
49-
- **fast-proxy-undici/0http**: Requests/sec 15320.76 (HTTP pipelining = 1)
50-
- **fastify-reply-from**: Requests/sec 12056.81
51-
- **http-proxy**: Requests/sec 408.97
42+
Please see: https://github.com/jkyberneees/nodejs-proxy-benchmarks
5243

5344
## API
5445

benchmark/fast-proxy-0http-gateway.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

benchmark/fast-proxy-restana-gateway.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

benchmark/fast-proxy-undici-0http-gateway.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

benchmark/fast-proxy-undici-pipelining-0http-gateway.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

benchmark/fastify-reply-from-gateway.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

benchmark/http-proxy-gateway.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

benchmark/service.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)