Skip to content

Commit 3295314

Browse files
committed
Merge branch 'master' of github.com:nestjs/nest into refactor/delete_resolve_factory_instance_method
2 parents b296cab + b272ec3 commit 3295314

95 files changed

Lines changed: 5727 additions & 3860 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
5858

5959
#### Sponsors
6060

61-
<a href="https://scal.io"><img src="https://nestjs.com/img/scalio-logo.svg" width="110" /></a> &nbsp; <a href="http://angularity.io"><img src="http://angularity.io/media/logo.svg" height="30" /></a> &nbsp; <a href="http://gojob.com"><img src="https://gojob.com/w/wp-content/uploads/2017/02/cropped-Logo-web-home.png" height="40" /> &nbsp; <!--<a href="https://keycdn.com"><img src="https://nestjs.com/img/keycdn.svg" height="30" /></a> &nbsp;--> <a href="https://hostpresto.com"><img src="https://nestjs.com/img/hostpresto.png" height="30" /></a>
61+
<a href="https://scal.io"><img src="https://nestjs.com/img/scalio-logo.svg" width="110" /></a> &nbsp; <a href="http://angularity.io"><img src="http://angularity.io/media/logo.svg" height="30" /></a> &nbsp; <a href="http://gojob.com"><img src="https://gojob.com/w/wp-content/uploads/2017/02/cropped-Logo-web-home.png" height="40" /> &nbsp; <!--<a href="https://keycdn.com"><img src="https://nestjs.com/img/keycdn.svg" height="30" /></a> &nbsp;--> <a href="https://hostpresto.com"><img src="https://nestjs.com/img/hostpresto.png" height="30" /></a> &nbsp; <a href="https://genuinebee.com/"><img src="https://nestjs.com/img/genuinebee.svg" height="34" /></a>
62+
6263

6364
## Backers
6465

benchmarks/all_output.txt

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
-----------------------
2+
express
3+
-----------------------
4+
Running 10s test @ http://localhost:3000
5+
8 threads and 1024 connections
6+
Thread Stats Avg Stdev Max +/- Stdev
7+
Latency 47.78ms 19.09ms 212.47ms 66.94%
8+
Req/Sec 1.31k 268.90 2.07k 72.38%
9+
104687 requests in 10.02s, 21.47MB read
10+
Socket errors: connect 0, read 877, write 0, timeout 0
11+
Requests/sec: 10444.24
12+
Transfer/sec: 2.14MB
13+
-----------------------
14+
fastify
15+
-----------------------
16+
Running 10s test @ http://localhost:3000
17+
8 threads and 1024 connections
18+
Thread Stats Avg Stdev Max +/- Stdev
19+
Latency 21.80ms 8.73ms 78.12ms 55.78%
20+
Req/Sec 2.99k 0.92k 5.67k 68.88%
21+
238550 requests in 10.02s, 31.17MB read
22+
Socket errors: connect 0, read 862, write 0, timeout 0
23+
Requests/sec: 23795.79
24+
Transfer/sec: 3.11MB
25+
-----------------------
26+
nest
27+
-----------------------
28+
Running 10s test @ http://localhost:3000
29+
8 threads and 1024 connections
30+
Thread Stats Avg Stdev Max +/- Stdev
31+
Latency 54.00ms 22.33ms 200.25ms 62.23%
32+
Req/Sec 1.15k 338.60 1.88k 66.12%
33+
91348 requests in 10.05s, 18.82MB read
34+
Socket errors: connect 0, read 983, write 0, timeout 0
35+
Requests/sec: 9093.64
36+
Transfer/sec: 1.87MB
37+
-----------------------
38+
nest-fastify
39+
-----------------------
40+
Running 10s test @ http://localhost:3000
41+
8 threads and 1024 connections
42+
Thread Stats Avg Stdev Max +/- Stdev
43+
Latency 29.31ms 11.71ms 101.96ms 70.03%
44+
Req/Sec 2.17k 0.93k 4.12k 63.13%
45+
173241 requests in 10.05s, 22.80MB read
46+
Socket errors: connect 0, read 934, write 0, timeout 0
47+
Requests/sec: 17233.87
48+
Transfer/sec: 2.27MB

benchmarks/express.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict';
2+
3+
const express = require('express');
4+
const app = express();
5+
6+
app.get('/', async (req, res) => res.send('Hello world'));
7+
app.listen(3000);

benchmarks/fastify.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
const fastify = require('fastify')();
4+
fastify.get('/', async (req, reply) => reply.send('Hello world'));
5+
fastify.listen(3000);

benchmarks/nest-fastify.js

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

benchmarks/nest.js

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export declare class AppController {
2+
root(): string;
3+
}

benchmarks/nest/app.controller.js

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

benchmarks/nest/app.controller.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

benchmarks/nest/app.module.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export declare class AppModule {}

0 commit comments

Comments
 (0)