Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
90 changes: 89 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,89 @@
node_modules

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ Benchmark loopback
./run.sh loopback
```

Benchmark restify
``` bash
./run.sh restify
```
84 changes: 48 additions & 36 deletions all_output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,69 +4,81 @@ express
Running 10s test @ http://localhost:3000
8 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 44.53ms 28.49ms 559.73ms 98.90%
Req/Sec 2.47k 0.99k 4.91k 65.75%
188409 requests in 10.05s, 38.63MB read
Socket errors: connect 85, read 0, write 0, timeout 0
Requests/sec: 18738.44
Transfer/sec: 3.84MB
Latency 92.20ms 30.86ms 288.48ms 63.49%
Req/Sec 602.53 157.68 1.07k 74.00%
48116 requests in 10.05s, 9.87MB read
Socket errors: connect 0, read 884, write 0, timeout 0
Requests/sec: 4786.02
Transfer/sec: 0.98MB
-----------------------
fastify
-----------------------
Running 10s test @ http://localhost:3000
8 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 29.93ms 69.23ms 1.89s 98.16%
Req/Sec 4.87k 1.78k 15.75k 87.88%
387584 requests in 10.07s, 56.18MB read
Socket errors: connect 85, read 0, write 0, timeout 0
Requests/sec: 38496.94
Transfer/sec: 5.58MB
Latency 53.58ms 22.10ms 158.52ms 71.31%
Req/Sec 1.17k 412.89 2.58k 71.00%
93340 requests in 10.05s, 13.53MB read
Socket errors: connect 0, read 976, write 1, timeout 0
Requests/sec: 9288.32
Transfer/sec: 1.35MB
-----------------------
nest
-----------------------
Running 10s test @ http://localhost:3000
8 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 56.25ms 20.88ms 530.82ms 95.00%
Req/Sec 1.99k 650.52 4.36k 76.52%
156659 requests in 10.08s, 32.27MB read
Socket errors: connect 85, read 0, write 0, timeout 0
Requests/sec: 15535.03
Transfer/sec: 3.20MB
Latency 164.94ms 63.77ms 508.19ms 77.27%
Req/Sec 413.35 177.04 1.08k 71.50%
33077 requests in 10.08s, 6.81MB read
Socket errors: connect 0, read 1110, write 0, timeout 0
Requests/sec: 3282.25
Transfer/sec: 692.35KB
-----------------------
nest-fastify
-----------------------
Running 10s test @ http://localhost:3000
8 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 35.82ms 48.04ms 1.05s 98.62%
Req/Sec 3.52k 1.10k 7.80k 72.18%
279937 requests in 10.05s, 40.85MB read
Socket errors: connect 85, read 0, write 0, timeout 0
Requests/sec: 27862.07
Transfer/sec: 4.07MB
Latency 88.95ms 30.85ms 369.75ms 69.98%
Req/Sec 738.07 396.95 2.37k 62.88%
59004 requests in 10.07s, 8.61MB read
Socket errors: connect 0, read 875, write 2, timeout 0
Requests/sec: 5857.61
Transfer/sec: 0.85MB
-----------------------
hyron
-----------------------
Running 10s test @ http://localhost:3000
8 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 22.88ms 10.89ms 486.01ms 93.78%
Req/Sec 4.81k 1.43k 8.99k 70.75%
383495 requests in 10.06s, 40.60MB read
Socket errors: connect 85, read 0, write 0, timeout 0
Requests/sec: 38102.60
Transfer/sec: 4.03MB
Latency 57.54ms 18.62ms 217.51ms 69.61%
Req/Sec 1.18k 434.89 3.07k 70.38%
94271 requests in 10.07s, 9.98MB read
Socket errors: connect 0, read 921, write 3, timeout 0
Requests/sec: 9359.60
Transfer/sec: 0.99MB
-----------------------
loopback
-----------------------
Running 10s test @ http://localhost:3000
8 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 95.56ms 56.67ms 1.20s 98.20%
Req/Sec 1.08k 496.62 2.59k 69.01%
85573 requests in 10.06s, 19.01MB read
Socket errors: connect 85, read 0, write 0, timeout 0
Requests/sec: 8506.82
Transfer/sec: 1.89MB
Latency 226.22ms 92.07ms 1.05s 70.04%
Req/Sec 231.21 87.76 525.00 63.60%
18403 requests in 10.07s, 4.09MB read
Socket errors: connect 0, read 876, write 0, timeout 0
Requests/sec: 1828.21
Transfer/sec: 415.99KB
-----------------------
restify
-----------------------
Running 10s test @ http://localhost:3000
8 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 91.54ms 36.03ms 317.62ms 83.64%
Req/Sec 622.01 347.38 1.45k 59.29%
49389 requests in 10.10s, 7.63MB read
Socket errors: connect 0, read 637, write 0, timeout 0
Requests/sec: 4891.94
Transfer/sec: 773.92KB
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"fastify": "^2.6.0",
"hyron": "^2.6.10",
"reflect-metadata": "^0.1.13",
"restify": "^8.3.3",
"rxjs": "^6.5.2"
}
}
12 changes: 12 additions & 0 deletions raw.js_output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
-----------------------
raw.js
-----------------------
Running 10s test @ http://localhost:3000
8 threads and 1024 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 45.82ms 19.98ms 213.74ms 66.33%
Req/Sec 1.46k 301.11 2.71k 80.50%
116990 requests in 10.05s, 12.38MB read
Socket errors: connect 0, read 963, write 0, timeout 0
Requests/sec: 11635.62
Transfer/sec: 1.23MB
7 changes: 7 additions & 0 deletions restify.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict';

const restify = require('restify');
const app = restify.createServer();

app.get('/', (req, res) => res.send('Hello world'));
app.listen(3000);
2 changes: 1 addition & 1 deletion run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

: > all_output.txt

lib=(express fastify nest nest-fastify hyron loopback)
lib=(express fastify nest nest-fastify hyron loopback restify)
for item in ${lib[*]}
do
echo '-----------------------' >> all_output.txt
Expand Down
56 changes: 56 additions & 0 deletions wrk/obj/LuaJIT-2.1.0-beta3/COPYRIGHT
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
===============================================================================
LuaJIT -- a Just-In-Time Compiler for Lua. http://luajit.org/

Copyright (C) 2005-2017 Mike Pall. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

[ MIT license: http://www.opensource.org/licenses/mit-license.php ]

===============================================================================
[ LuaJIT includes code from Lua 5.1/5.2, which has this license statement: ]

Copyright (C) 1994-2012 Lua.org, PUC-Rio.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

===============================================================================
[ LuaJIT includes code from dlmalloc, which has this license statement: ]

This is a version (aka dlmalloc) of malloc/free/realloc written by
Doug Lea and released to the public domain, as explained at
http://creativecommons.org/licenses/publicdomain

===============================================================================
Loading