-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
....................... | ||
express | ||
....................... | ||
Running 10s test @ http://localhost:3000 | ||
8 threads and 1024 connections | ||
Thread Stats Avg Stdev Max +/- Stdev | ||
Latency 47.78ms 19.09ms 212.47ms 66.94% | ||
Req/Sec 1.31k 268.90 2.07k 72.38% | ||
104687 requests in 10.02s, 21.47MB read | ||
Socket errors: connect 0, read 877, write 0, timeout 0 | ||
Requests/sec: 10444.24 | ||
Transfer/sec: 2.14MB | ||
....................... | ||
fastify | ||
....................... | ||
Running 10s test @ http://localhost:3000 | ||
8 threads and 1024 connections | ||
Thread Stats Avg Stdev Max +/- Stdev | ||
Latency 19.16ms 7.24ms 114.56ms 58.84% | ||
Req/Sec 3.23k 782.93 4.92k 78.75% | ||
256793 requests in 10.02s, 33.55MB read | ||
Socket errors: connect 0, read 846, write 0, timeout 0 | ||
Requests/sec: 25619.91 | ||
Transfer/sec: 3.35MB | ||
....................... | ||
nest | ||
....................... | ||
Running 10s test @ http://localhost:3000 | ||
8 threads and 1024 connections | ||
Thread Stats Avg Stdev Max +/- Stdev | ||
Latency 49.39ms 16.95ms 174.21ms 69.37% | ||
Req/Sec 1.23k 468.57 2.48k 59.25% | ||
98406 requests in 10.06s, 20.27MB read | ||
Socket errors: connect 0, read 875, write 0, timeout 0 | ||
Requests/sec: 9779.15 | ||
Transfer/sec: 2.01MB | ||
....................... | ||
nest-fastify | ||
....................... | ||
Running 10s test @ http://localhost:3000 | ||
8 threads and 1024 connections | ||
Thread Stats Avg Stdev Max +/- Stdev | ||
Latency 26.63ms 11.03ms 91.14ms 72.37% | ||
Req/Sec 2.29k 801.61 4.71k 71.88% | ||
182595 requests in 10.04s, 24.03MB read | ||
Socket errors: connect 0, read 888, write 0, timeout 0 | ||
Requests/sec: 18192.36 | ||
Transfer/sec: 2.39MB |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
'use strict'; | ||
|
||
const express = require('express'); | ||
const app = express(); | ||
|
||
app.get('/', async (req, res) => res.send('Hello world')); | ||
app.listen(3000); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
'use strict'; | ||
|
||
const fastify = require('fastify')(); | ||
fastify.get('/', async (req, reply) => reply.send('Hello world')); | ||
fastify.listen(3000); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export declare class AppController { | ||
root(): string; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare class AppModule {} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo 'Library:' $1 | ||
node $1 & | ||
pid=$! | ||
|
||
sleep 2 | ||
|
||
wrk 'http://localhost:3000' \ | ||
-d 10 \ | ||
-c 1024 \ | ||
-t 8 | ||
|
||
kill $pid |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
: > all_output.txt | ||
|
||
lib=(express fastify nest nest-fastify) | ||
for item in ${lib[*]} | ||
do | ||
echo '.......................' >> all_output.txt | ||
echo $item >> all_output.txt | ||
echo '.......................' >> all_output.txt | ||
|
||
node $item & | ||
pid=$! | ||
|
||
sleep 2 | ||
|
||
wrk 'http://localhost:3000' \ | ||
-d 10 \ | ||
-c 1024 \ | ||
-t 8 >> all_output.txt | ||
|
||
kill $pid | ||
done |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export declare class ApplicationReferenceHost { | ||
private _applicationRef; | ||
applicationRef: any; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
class ApplicationReferenceHost { | ||
set applicationRef(applicationRef) { | ||
this._applicationRef = applicationRef; | ||
} | ||
get applicationRef() { | ||
return this._applicationRef; | ||
} | ||
} | ||
exports.ApplicationReferenceHost = ApplicationReferenceHost; |