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 | javascript (12.13) | nanoexpress-pro (1.9) | 205 301 | ||
2 | javascript (12.13) | sifrr (0.0) | 198 565 | ||
3 | nim (1.0) | httpbeast (0.2) | 195 403 | ||
4 | javascript (12.13) | nanoexpress (1.1) | 188 228 | ||
5 | c (11) | agoo-c (0.7) | 174 177 | ||
6 | java (8) | rapidoid (5.5) | 167 240 | ||
7 | go (1.13) | fasthttp (1.7) | 166 687 | ||
8 | go (1.13) | fasthttprouter (0.1) | 161 302 | ||
9 | go (1.13) | router (1.6) | 160 802 | ||
10 | c (11) | kore (3.3) | 159 812 | ||
11 | go (1.13) | atreugo (10.0) | 159 208 | ||
12 | go (1.13) | fiber (0.4) | 154 394 | ||
13 | go (1.13) | gorouter-fasthttp (4.2) | 152 209 | ||
14 | crystal (0.31) | toro (0.4) | 148 284 | ||
15 | crystal (0.31) | router.cr (0.2) | 147 488 | ||
16 | nim (1.0) | jester (0.4) | 147 280 | ||
17 | crystal (0.31) | raze (0.3) | 142 802 | ||
18 | crystal (0.31) | spider-gazelle (2.3) | 140 402 | ||
19 | crystal (0.31) | kemal (0.26) | 138 038 | ||
20 | crystal (0.31) | amber (0.3) | 126 059 | ||
21 | java (8) | act (1.8) | 124 102 | ||
22 | ruby (2.6) | agoo (2.11) | 123 363 | ||
23 | crystal (0.31) | orion (2.1) | 122 738 | ||
24 | go (1.13) | rte (0.0) | 104 427 | ||
25 | go (1.13) | gorouter (4.2) | 104 202 | ||
26 | php (7.4) | workerman (3.5) | 103 118 | ||
27 | go (1.13) | chi (4.0) | 101 815 | ||
28 | go (1.13) | aero (1.3) | 99 841 | ||
29 | go (1.13) | kami (2.2) | 98 989 | ||
30 | go (1.13) | goroute (0.0) | 97 838 | ||
31 | go (1.13) | echo (4.1) | 97 385 | ||
32 | go (1.13) | gin (1.5) | 96 125 | ||
33 | go (1.13) | beego (1.12) | 93 870 | ||
34 | go (1.13) | violetear (7.0) | 93 815 | ||
35 | javascript (12.13) | polkadot (1.0) | 92 688 | ||
36 | csharp (7.3) | aspnetcore (3.0) | 92 315 | ||
37 | go (1.13) | webgo (3.0) | 91 514 | ||
38 | go (1.13) | gorilla-mux (1.7) | 87 274 | ||
39 | javascript (12.13) | 0http (2.2) | 86 533 | ||
40 | go (1.13) | air (0.14) | 85 313 | ||
41 | cpp (11) | drogon (1.0) | 82 093 | ||
42 | javascript (12.13) | polka (0.5) | 76 859 | ||
43 | go (1.13) | gf (1.11) | 76 849 | ||
44 | javascript (12.13) | restana (4.0) | 76 320 | ||
45 | javascript (12.13) | rayo (1.3) | 74 586 | ||
46 | swift (5.1) | perfect (3.1) | 74 421 | ||
47 | python (3.8) | falcon (2.0) | 74 224 | ||
48 | kotlin (1.3) | ktor (1.2) | 73 166 | ||
49 | java (8) | javalin (3.5) | 66 392 | ||
50 | scala (2.12) | akkahttp (10.1) | 64 940 | ||
51 | javascript (12.13) | foxify (0.1) | 64 340 | ||
52 | javascript (12.13) | muneem (2.4) | 63 817 | ||
53 | go (1.13) | mars (1.0) | 62 261 | ||
54 | python (3.8) | bottle (0.12) | 60 261 | ||
55 | javascript (12.13) | koa (2.11) | 59 338 | ||
56 | php (7.4) | one (1.9) | 57 895 | ||
57 | java (8) | spring-boot (2.1) | 55 630 | ||
58 | javascript (12.13) | fastify (2.11) | 54 682 | ||
59 | javascript (12.13) | iotjs-express (0.0) | 53 206 | ||
60 | rust (1.4) | gotham (0.4) | 51 342 | ||
61 | clojure (1.10) | coast (1.0) | 51 280 | ||
62 | python (3.8) | asgineer (0.7) | 50 878 | ||
63 | php (7.4) | ubiquity (2.3) | 49 191 | ||
64 | php (7.4) | phalcon (4.0) | 48 836 | ||
65 | python (3.8) | blacksheep (0.2) | 48 117 | ||
66 | swift (5.1) | vapor (3.3) | 47 651 | ||
67 | scala (2.12) | http4s (0.18) | 47 340 | ||
68 | swift (5.1) | kitura-nio (2.8) | 46 827 | ||
69 | php (7.4) | hyperf (1.0) | 46 322 | ||
70 | javascript (12.13) | express (4.17) | 46 058 | ||
71 | swift (5.1) | kitura (2.8) | 45 844 | ||
72 | python (3.8) | pyramid (1.1) | 45 651 | ||
73 | python (3.8) | starlette (0.13) | 44 403 | ||
74 | python (3.8) | hug (2.6) | 44 293 | ||
75 | php (7.4) | hamlet (3.2) | 42 647 | ||
76 | php (7.4) | one-fpm (1.9) | 42 536 | ||
77 | php (7.4) | imi (1.0) | 42 136 | ||
78 | php (7.4) | slim (4.4) | 41 240 | ||
79 | php (7.4) | lumen (6.3) | 40 976 | ||
80 | php (7.4) | sw-fw-less (preview) | 40 494 | ||
81 | fsharp (7.3) | suave (2.5) | 40 467 | ||
82 | php (7.4) | basicphp (0.9) | 40 340 | ||
83 | php (7.4) | zend-expressive (3.2) | 40 303 | ||
84 | php (7.4) | symfony (4.3) | 39 912 | ||
85 | ruby (2.6) | syro (3.1) | 39 202 | ||
86 | javascript (12.13) | hapi (19.0) | 38 753 | ||
87 | php (7.4) | zend-framework (3.1) | 38 378 | ||
88 | javascript (12.13) | restify (8.5) | 38 256 | ||
89 | cpp (11) | evhtp (1.2) | 37 808 | ||
90 | java (8) | micronaut (1.2) | 37 101 | ||
91 | ruby (2.6) | roda (3.27) | 37 063 | ||
92 | ruby (2.6) | cuba (3.9) | 33 758 | ||
93 | php (7.4) | swoft (2.0) | 33 622 | ||
94 | php (7.4) | laravel (6.1) | 30 877 | ||
95 | python (3.8) | fastapi (0.46) | 29 147 | ||
96 | rust (1.4) | nickel (0.11) | 28 873 | ||
97 | java (8) | spring-framework (5.2) | 28 481 | ||
98 | ruby (2.6) | rack-routing (0.0) | 28 333 | ||
99 | python (3.8) | responder (2.0) | 27 311 | ||
100 | javascript (12.13) | moleculer (0.13) | 27 245 | ||
101 | python (3.8) | molten (0.27) | 26 652 | ||
102 | ruby (2.6) | camping (2.1) | 24 975 | ||
103 | python (3.8) | flask (1.1) | 24 604 | ||
104 | python (3.8) | aiohttp (3.6) | 24 471 | ||
105 | crystal (0.31) | athena (0.7) | 23 575 | ||
106 | python (3.8) | clastic (19.9) | 23 428 | ||
107 | javascript (12.13) | turbo_polka (0.3) | 22 226 | ||
108 | crystal (0.31) | lucky (0.18) | 21 590 | ||
109 | ruby (2.6) | flame (4.18) | 21 543 | ||
110 | python (3.8) | sanic (19.12) | 20 059 | ||
111 | python (3.8) | bocadillo (0.18) | 18 304 | ||
112 | ruby (2.6) | plezi (0.16) | 17 979 | ||
113 | ruby (2.6) | hanami (1.3) | 17 291 | ||
114 | php (7.4) | spiral (2.4) | 16 138 | ||
115 | ruby (2.6) | sinatra (2.0) | 16 009 | ||
116 | rust (1.4) | iron (0.6) | 15 927 | ||
117 | ruby (2.6) | grape (1.3) | 12 624 | ||
118 | swift (5.1) | swifter (1.4) | 11 738 | ||
119 | python (3.8) | django (3.0) | 10 411 | ||
120 | python (3.8) | quart (0.10) | 10 228 | ||
121 | go (1.13) | gramework (1.7) | 10 137 | ||
122 | python (3.8) | tornado (6.0) | 9 713 | ||
123 | python (3.8) | cherrypy (18.5) | 8 668 | ||
124 | python (3.8) | masonite (2.2) | 6 882 | ||
125 | crystal (0.31) | onyx (0.5) | 4 959 | ||
126 | ruby (2.6) | rails (6.0) | 3 732 | ||
127 | julia (1.3) | merly (0.2) | 3 075 | ||
128 | python (3.8) | cyclone (1.3) | 2 257 | ||
129 | python (3.8) | klein (19.6) | 1 496 | ||
130 | python (3.8) | nameko (2.12) | 1 460 | ||
131 | perl (5.3) | dancer2 (2.0) | 1 154 |
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