This project aims to be a load benchmarking suite, no more, no less
Measuring response times (routing times) for each framework (middleware).
Results are not production-ready yet
- Helping decide between languages, depending on use case
- Learning languages, best practices, devops culture ...
- Having fun ❤️
- Crystal as
built-in
tools are made in this language - Docker as frameworks are
isolated
into containers - wrk as benchmarking tool,
>= 4.1.0
- postgresql to store data,
>= 10
ℹ️ you need wrk
stable
git clone --branch 4.1.0 https://github.com/wg/wrk
docker
is used for development purpose, production
results will be computed on DigitalOcean
- Install all dependencies
shards install
- Build internal tools
shards build
- Create and initialize the database
createdb -U postgres benchmark
psql -U postgres -d benchmark < .ci/dump.sql
export DATABASE_URL="postgresql://postgres@localhost/benchmark"
- Make configuration
bin/make config
- Build containers
jobs are either languages (example : crystal) or frameworks (example : router.cr)
bin/neph [job1] [job2] [job3] ...
- Export all results readme
bin/db to_readme
Language | Framework | Speed (req/s ) |
Horizontal scale (parallelism) | Vertical scale (concurrency) | |
---|---|---|---|---|---|
1 | nim (1.0) | httpbeast (0.2) | 196 919 | ||
2 | javascript (12.13) | sifrr (0.0) | 193 353 | ||
3 | javascript (12.13) | nanoexpress (1.1) | 184 062 | ||
4 | c (11) | agoo-c (0.7) | 182 586 | ||
5 | go (1.13) | fasthttp (1.8) | 171 769 | ||
6 | go (1.13) | router (1.6) | 167 387 | ||
7 | go (1.13) | fasthttprouter (0.1) | 166 979 | ||
8 | go (1.13) | atreugo (10.1) | 164 220 | ||
9 | go (1.13) | fiber (0.6) | 162 330 | ||
10 | go (1.13) | gorouter-fasthttp (4.2) | 161 720 | ||
11 | c (11) | kore (3.3) | 159 210 | ||
12 | crystal (0.31) | toro (0.4) | 157 145 | ||
13 | crystal (0.31) | router.cr (0.2) | 156 240 | ||
14 | nim (1.0) | jester (0.4) | 154 680 | ||
15 | java (8) | rapidoid (5.5) | 153 757 | ||
16 | crystal (0.31) | raze (0.3) | 151 466 | ||
17 | crystal (0.31) | spider-gazelle (2.3) | 149 405 | ||
18 | crystal (0.31) | grip (0.26) | 147 688 | ||
19 | crystal (0.31) | kemal (0.26) | 145 521 | ||
20 | crystal (0.31) | amber (0.3) | 136 456 | ||
21 | crystal (0.31) | orion (2.1) | 127 023 | ||
22 | ruby (2.6) | agoo (2.11) | 126 928 | ||
23 | php (7.4) | workerman (3.5) | 115 842 | ||
24 | go (1.13) | rte (0.0) | 111 531 | ||
25 | go (1.13) | gorouter (4.2) | 108 425 | ||
26 | go (1.13) | aero (1.3) | 104 589 | ||
27 | go (1.13) | chi (4.0) | 104 515 | ||
28 | go (1.13) | kami (2.2) | 102 894 | ||
29 | csharp (7.3) | aspnetcore (3.0) | 102 224 | ||
30 | go (1.13) | beego (1.12) | 101 273 | ||
31 | go (1.13) | violetear (7.0) | 100 277 | ||
32 | go (1.13) | goroute (0.0) | 99 668 | ||
33 | go (1.13) | echo (4.1) | 99 070 | ||
34 | go (1.13) | gin (1.5) | 98 787 | ||
35 | go (1.13) | gorilla-mux (1.7) | 97 858 | ||
36 | java (8) | act (1.8) | 93 632 | ||
37 | go (1.13) | webgo (3.0) | 93 623 | ||
38 | cpp (11) | drogon (1.0) | 90 545 | ||
39 | go (1.13) | air (0.14) | 87 642 | ||
40 | javascript (12.13) | polkadot (1.0) | 86 634 | ||
41 | javascript (12.13) | 0http (2.2) | 83 377 | ||
42 | swift (5.1) | perfect (3.1) | 83 337 | ||
43 | go (1.13) | gf (1.11) | 80 673 | ||
44 | javascript (12.13) | restana (4.0) | 76 261 | ||
45 | python (3.8) | falcon (2.0) | 76 192 | ||
46 | javascript (12.13) | polka (0.5) | 74 663 | ||
47 | javascript (12.13) | rayo (1.3) | 72 431 | ||
48 | go (1.13) | mars (1.0) | 66 033 | ||
49 | python (3.8) | bottle (0.12) | 62 869 | ||
50 | php (7.4) | one (1.9) | 62 243 | ||
51 | javascript (12.13) | muneem (2.4) | 61 992 | ||
52 | javascript (12.13) | foxify (0.1) | 59 736 | ||
53 | javascript (12.13) | fastify (2.11) | 59 681 | ||
54 | python (3.8) | asgineer (0.7) | 57 123 | ||
55 | python (3.8) | blacksheep (0.2) | 52 905 | ||
56 | swift (5.1) | kitura-nio (2.8) | 52 561 | ||
57 | javascript (12.13) | koa (2.11) | 51 994 | ||
58 | swift (5.1) | kitura (2.8) | 51 925 | ||
59 | javascript (12.13) | iotjs-express (0.0) | 51 432 | ||
60 | rust (1.4) | gotham (0.4) | 50 221 | ||
61 | python (3.8) | pyramid (1.1) | 50 173 | ||
62 | swift (5.1) | vapor (3.3) | 49 783 | ||
63 | php (7.4) | hyperf (1.0) | 49 540 | ||
64 | kotlin (1.3) | ktor (1.2) | 48 857 | ||
65 | python (3.8) | starlette (0.13) | 47 818 | ||
66 | python (3.8) | hug (2.6) | 46 437 | ||
67 | javascript (12.13) | express (4.17) | 44 864 | ||
68 | cpp (11) | evhtp (1.2) | 44 819 | ||
69 | scala (2.12) | akkahttp (10.1) | 44 503 | ||
70 | java (8) | javalin (3.5) | 43 790 | ||
71 | php (7.4) | imi (1.0) | 43 412 | ||
72 | clojure (1.10) | coast (1.0) | 43 042 | ||
73 | php (7.4) | sw-fw-less (preview) | 42 635 | ||
74 | ruby (2.6) | syro (3.1) | 39 558 | ||
75 | ruby (2.6) | roda (3.27) | 37 737 | ||
76 | javascript (12.13) | restify (8.5) | 35 702 | ||
77 | java (8) | micronaut (1.2) | 35 239 | ||
78 | java (8) | spring-boot (2.1) | 34 388 | ||
79 | javascript (12.13) | hapi (19.0) | 33 829 | ||
80 | php (7.4) | swoft (2.0) | 33 373 | ||
81 | ruby (2.6) | cuba (3.9) | 33 089 | ||
82 | scala (2.12) | http4s (0.18) | 32 132 | ||
83 | fsharp (7.3) | suave (2.5) | 32 104 | ||
84 | python (3.8) | fastapi (0.46) | 31 432 | ||
85 | python (3.8) | responder (2.0) | 31 019 | ||
86 | rust (1.4) | nickel (0.11) | 30 868 | ||
87 | ruby (2.6) | rack-routing (0.0) | 28 831 | ||
88 | python (3.8) | molten (0.27) | 27 514 | ||
89 | python (3.8) | aiohttp (3.6) | 27 395 | ||
90 | python (3.8) | clastic (19.9) | 26 715 | ||
91 | javascript (12.13) | moleculer (0.13) | 26 345 | ||
92 | crystal (0.31) | lucky (0.18) | 25 392 | ||
93 | ruby (2.6) | camping (2.1) | 25 168 | ||
94 | python (3.8) | flask (1.1) | 24 884 | ||
95 | python (3.8) | masonite (2.3) | 24 703 | ||
96 | javascript (12.13) | turbo_polka (0.3) | 22 748 | ||
97 | ruby (2.6) | flame (4.18) | 21 884 | ||
98 | python (3.8) | bocadillo (0.18) | 21 665 | ||
99 | crystal (0.31) | athena (0.7) | 21 320 | ||
100 | python (3.8) | sanic (19.12) | 21 300 | ||
101 | ruby (2.6) | plezi (0.16) | 20 526 | ||
102 | php (7.4) | spiral (2.4) | 17 621 | ||
103 | rust (1.4) | iron (0.6) | 17 530 | ||
104 | ruby (2.6) | hanami (1.3) | 17 530 | ||
105 | java (8) | spring-framework (5.2) | 17 194 | ||
106 | ruby (2.6) | sinatra (2.0) | 15 293 | ||
107 | ruby (2.6) | grape (1.3) | 12 340 | ||
108 | python (3.8) | quart (0.10) | 12 240 | ||
109 | python (3.8) | django (3.0) | 10 607 | ||
110 | python (3.8) | tornado (6.0) | 10 383 | ||
111 | go (1.13) | gramework (1.7) | 10 003 | ||
112 | php (7.4) | ubiquity (2.3) | 9 242 | ||
113 | python (3.8) | cherrypy (18.5) | 9 231 | ||
114 | swift (5.1) | swifter (1.4) | 7 986 | ||
115 | php (7.4) | phalcon (4.0) | 7 617 | ||
116 | php (7.4) | one-fpm (1.9) | 7 472 | ||
117 | php (7.4) | hamlet (3.2) | 7 301 | ||
118 | crystal (0.31) | onyx (0.5) | 4 875 | ||
119 | php (7.4) | slim (4.4) | 4 632 | ||
120 | python (3.8) | emmett (2.0.0a1) | 4 235 | ||
121 | perl (5.3) | dancer2 (2.0) | 4 180 | ||
122 | php (7.4) | lumen (6.3) | 4 122 | ||
123 | php (7.4) | zend-expressive (3.2) | 3 643 | ||
124 | ruby (2.6) | rails (6.0) | 3 636 | ||
125 | php (7.4) | symfony (4.3) | 3 402 | ||
126 | python (3.8) | cyclone (1.3) | 2 333 | ||
127 | php (7.4) | basicphp (0.9) | 2 298 | ||
128 | php (7.4) | zend-framework (3.1) | 2 063 | ||
129 | php (7.4) | laravel (6.11) | 2 012 | ||
130 | python (3.8) | klein (19.6) | 1 536 | ||
131 | python (3.8) | nameko (2.12) | 1 442 | ||
132 | julia (1.3) | merly (0.2) | 951 |
In any way you want ...
- Request a framework addition
- Report a bug (on any implementation)
- Suggest an idea
- ...
Any kind of idea is ❤️
- Taichiro Suzuki - Author | Maintainer
- OvermindDL1 - Maintainer
- Marwan Rabbâa - Maintainer