No description
  • HTML 71.2%
  • UrWeb 20.4%
  • Swift 3.5%
  • Haskell 1.4%
  • Elixir 1.1%
  • Other 2.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2016-07-11 15:28:09 +05:30
bottle Add bottle 2016-06-27 10:54:14 +05:30
database Add database setup script for fortunes 2016-07-03 15:47:39 +05:30
elixir_test Move Elixir resource point to the standard /hello 2016-06-27 23:47:35 +05:30
express-test Add express 2016-06-26 20:59:21 +05:30
falcon Add falcon 2016-06-26 21:46:49 +05:30
flask Add tornado + flask test, fix typo 2016-06-26 21:39:01 +05:30
gin Add DB benchmarks for gin 2016-07-04 00:50:56 +05:30
hapijs update hapijs example with support for postgres 2016-07-07 16:14:39 +05:30
iris Move go frameworks to their own directory 2016-07-03 16:33:36 +05:30
kitura-test Add kitura 2016-07-03 11:42:38 +05:30
sinatra Add sinatra fortunes benchmarks 2016-07-03 17:48:32 +05:30
urweb Add urweb benchmark 2016-07-11 15:28:09 +05:30
vapor-test Change zewo test to simple render, add vapor 2016-06-26 20:48:55 +05:30
warp-benchmark Add criterion benchmarks 2016-07-11 00:27:00 +05:30
zewo Change zewo test to simple render, add vapor 2016-06-26 20:48:55 +05:30
.gitignore update gitignore 2016-07-07 12:37:49 +05:30
.Package.toml Initial commit with Plug, Iris (Go), Gin (Go), Zewo(Swift) 2016-06-26 19:55:30 +05:30
.swift-version Change zewo test to simple render, add vapor 2016-06-26 20:48:55 +05:30
README.md Add DB benchmarks for warp 2016-07-05 00:28:45 +05:30
template.html Add sinatra fortunes benchmarks 2016-07-03 17:48:32 +05:30

Simple Server Benchmarks

Hardware:

Standard Mid 2014 MacBook Pro. i7 2.2Ghz, 16GB RAM, 256GB SSD.

Benchmarks:

Simple no template return (/hello)

Framework Requests/Sec Average Latency
Warp 102147 1.46 ms
Iris 86856 1.69 ms
Gin - without Logger 65341 2.29 ms
Plug - without Logger 41210 9.31 ms
Gin 29388 10.77 ms
Plug 14918 11.83 ms
Express 10118 14.60 ms
Vapor 8196 18.42 ms
Zewo 4948 31.02 ms
Flask + Tornado 1805 81.79 ms
Sinatra 974 203.71 ms
Bottle 546 1.38ms
Kitura 545 321.45 us
Flask 544 74.15 ms
Falcon 543 47.06 ms

Fortunes (/fortunes)

Framework Requests/Sec Average Latency
Warp 10217 14.60 ms
Gin 3340 61.20 ms
Sinatra 430 260.90 ms

Fortunes.json (/fortunes.json)

Framework Requests/Sec Average Latency
Warp 13255 11.14 ms
Gin 3222 56.63 ms
Sinatra 588 197.96 ms

Command to benchmark

wrk -t4 -c150 -d30s http://localhost:PORT/path

Contributing :

If you want to add more frameworks or find a better or doing feel free to send a PR my way.

The current structure is as follow:

  • /hello returns a simple "Hello, World!" message
  • /fortunes returns a rendered html with all the fortune cookie messages
  • /fortunes.json returns JSON with all the fortune cookie messages

You can find the schema for the fortunes table in database/fortunes.sql. All tests will use postgresql as the database.