Skip to content

Instantly share code, notes, and snippets.

@cfsghost
Last active March 14, 2017 11:20
Show Gist options
  • Save cfsghost/3874fa2886e84488e9ee619b50a3fe49 to your computer and use it in GitHub Desktop.
Save cfsghost/3874fa2886e84488e9ee619b50a3fe49 to your computer and use it in GitHub Desktop.
Benchmark for Node.js web frameworks
$ make test -f Makefile2
> [email protected] postinstall /Users/fred/projects/koa-benchmark/koa2
> babel koa2-async.js --out-file koa2-async-compile.js
prepare complete
benchmark koa-1
1 middleware
6295.24
5 middleware
5709.64
10 middleware
6164.59
15 middleware
5517.11
20 middleware
6012.58
30 middleware
5576.01
50 middleware
5074.16
100 middleware
4520.03
benchmark koa-2
1 middleware
6598.36
5 middleware
6612.93
10 middleware
6609.67
15 middleware
6861.87
20 middleware
6935.84
30 middleware
6282.66
50 middleware
6183.14
100 middleware
5900.97
benchmark koa-2-async
1 async middleware
6179.17
5 async middleware
5454.48
10 async middleware
4789.97
15 async middleware
4350.31
20 async middleware
3881.81
30 async middleware
3336.28
50 async middleware
2692.35
100 async middleware
1930.77
benchmark express
1 middleware
6473.59
5 middleware
6085.91
10 middleware
5902.13
15 middleware
5720.15
20 middleware
5086.27
30 middleware
5060.40
50 middleware
4629.10
100 middleware
3813.46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment