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
ℹ️ Updated on 2020-02-05 ℹ️
Benchmarking with wrk
- Threads : 128
- Connections : 128
- Duration : 10 (seconds)
Language | Framework | Speed (req/s ) |
Horizontal scale (parallelism) | Vertical scale (concurrency) | |
---|---|---|---|---|---|
1 | nim (1.0) | httpbeast (0.2) | 166 300 | ||
2 | javascript (13.7) | sifrr (0.0) | 163 068 | ||
3 | javascript (13.7) | nanoexpress (1.1) | 157 756 | ||
4 | crystal (0.31) | router.cr (0.2) | 140 889 | ||
5 | crystal (0.31) | toro (0.4) | 139 994 | ||
6 | go (1.13) | fiber (1.3) | 136 740 | ||
7 | crystal (0.31) | spider-gazelle (2.3) | 136 326 | ||
8 | nim (1.0) | jester (0.4) | 135 853 | ||
9 | java (8) | rapidoid (5.5) | 135 045 | ||
10 | crystal (0.31) | kemal (0.26) | 132 581 | ||
11 | c (11) | agoo-c (0.7) | 132 528 | ||
12 | crystal (0.31) | grip (0.27) | 131 002 | ||
13 | crystal (0.31) | raze (0.3) | 130 411 | ||
14 | go (1.13) | fasthttp (1.9) | 125 826 | ||
15 | go (1.13) | fasthttprouter (0.1) | 124 132 | ||
16 | go (1.13) | router (0.6) | 123 552 | ||
17 | crystal (0.31) | amber (0.3) | 121 340 | ||
18 | php (7.4) | workerman (3.5) | 121 119 | ||
19 | crystal (0.31) | orion (2.1) | 120 354 | ||
20 | go (1.13) | gorouter-fasthttp (4.4) | 116 113 | ||
21 | go (1.13) | atreugo (10.3) | 111 835 | ||
22 | java (8) | act (1.8) | 97 902 | ||
23 | ruby (2.6) | agoo (2.12) | 89 133 | ||
24 | go (1.13) | rte (0.0) | 86 977 | ||
25 | javascript (13.7) | polkadot (1.0) | 85 692 | ||
26 | javascript (13.7) | 0http (2.2) | 82 120 | ||
27 | go (1.13) | gorouter (4.4) | 82 082 | ||
28 | go (1.13) | chi (4.0) | 81 856 | ||
29 | go (1.13) | aero (1.3) | 81 573 | ||
30 | cpp (11) | drogon (1.0) | 81 404 | ||
31 | csharp (8.0) | aspnetcore (3.1) | 80 968 | ||
32 | go (1.13) | echo (4.1) | 80 364 | ||
33 | go (1.13) | kami (2.2) | 80 012 | ||
34 | go (1.13) | violetear (7.0) | 78 420 | ||
35 | go (1.13) | gin (1.5) | 77 222 | ||
36 | javascript (13.7) | restana (4.0) | 77 129 | ||
37 | go (1.13) | beego (1.12) | 77 106 | ||
38 | swift (5.1) | perfect (3.1) | 75 123 | ||
39 | javascript (13.7) | rayo (1.3) | 74 919 | ||
40 | javascript (13.7) | polka (0.5) | 74 863 | ||
41 | go (1.13) | gorilla-mux (1.7) | 73 185 | ||
42 | go (1.13) | goroute (0.0) | 72 577 | ||
43 | python (3.8) | falcon (2.0) | 71 348 | ||
44 | go (1.13) | webgo (3.0) | 69 751 | ||
45 | c (11) | kore (3.3) | 69 509 | ||
46 | javascript (13.7) | muneem (2.4) | 65 288 | ||
47 | go (1.13) | gf (1.11) | 63 741 | ||
48 | go (1.13) | air (0.14) | 62 916 | ||
49 | java (8) | javalin (3.5) | 62 165 | ||
50 | javascript (13.7) | fastify (2.11) | 61 069 | ||
51 | javascript (13.7) | foxify (0.1) | 60 348 | ||
52 | python (3.8) | apidaora (0.12) | 59 613 | ||
53 | kotlin (1.3) | ktor (1.2) | 59 555 | ||
54 | python (3.8) | bottle (0.12) | 58 108 | ||
55 | php (7.4) | one (1.9) | 56 598 | ||
56 | javascript (13.7) | koa (2.11) | 56 212 | ||
57 | python (3.8) | asgineer (0.7) | 54 214 | ||
58 | javascript (13.7) | iotjs-express (0.0) | 53 239 | ||
59 | java (8) | micronaut (1.2) | 52 055 | ||
60 | python (3.8) | blacksheep (0.2) | 51 398 | ||
61 | java (8) | spring-boot (2.1) | 50 446 | ||
62 | clojure (1.10) | coast (1.0) | 50 326 | ||
63 | go (1.13) | mars (1.0) | 49 777 | ||
64 | swift (5.1) | vapor (3.3) | 49 613 | ||
65 | swift (5.1) | kitura-nio (2.8) | 49 599 | ||
66 | swift (5.1) | kitura (2.8) | 49 026 | ||
67 | scala (2.12) | akkahttp (10.1) | 48 634 | ||
68 | javascript (13.7) | express (4.17) | 47 715 | ||
69 | python (3.8) | pyramid (1.1) | 47 372 | ||
70 | php (7.4) | hyperf (1.0) | 46 945 | ||
71 | python (3.8) | hug (2.6) | 46 841 | ||
72 | rust (1.41) | nickel (0.11) | 46 734 | ||
73 | python (3.8) | starlette (0.13) | 46 452 | ||
74 | cpp (11) | evhtp (1.2) | 44 107 | ||
75 | rust (1.41) | gotham (0.4) | 44 097 | ||
76 | php (7.4) | sw-fw-less (preview) | 41 172 | ||
77 | scala (2.12) | http4s (0.18) | 40 694 | ||
78 | php (7.4) | imi (1.0) | 39 565 | ||
79 | javascript (13.7) | hapi (19.1) | 39 481 | ||
80 | ruby (2.6) | syro (3.1) | 38 716 | ||
81 | javascript (13.7) | restify (8.5) | 37 885 | ||
82 | ruby (2.6) | roda (3.28) | 37 559 | ||
83 | ruby (2.6) | cuba (3.9) | 35 978 | ||
84 | php (7.4) | swoft (2.0) | 32 920 | ||
85 | python (3.8) | fastapi (0.48) | 31 078 | ||
86 | python (3.8) | responder (2.0) | 30 488 | ||
87 | ruby (2.6) | rack-routing (0.0) | 30 147 | ||
88 | javascript (13.7) | moleculer (0.13) | 30 104 | ||
89 | python (3.8) | aiohttp (3.6) | 27 477 | ||
90 | python (3.8) | molten (0.27) | 27 049 | ||
91 | crystal (0.31) | lucky (0.18) | 26 845 | ||
92 | fsharp (4.7) | suave (2.5) | 25 864 | ||
93 | crystal (0.31) | athena (0.7) | 24 933 | ||
94 | python (3.8) | flask (1.1) | 24 567 | ||
95 | java (8) | spring-framework (5.2) | 23 938 | ||
96 | python (3.8) | clastic (19.9) | 23 936 | ||
97 | python (3.8) | masonite (2.3) | 23 613 | ||
98 | javascript (13.7) | turbo_polka (0.3) | 22 326 | ||
99 | python (3.8) | sanic (19.12) | 21 809 | ||
100 | ruby (2.6) | flame (4.18) | 21 651 | ||
101 | python (3.8) | emmett (2.0.0a1) | 20 910 | ||
102 | ruby (2.6) | camping (2.1) | 19 262 | ||
103 | ruby (2.6) | plezi (0.16) | 19 058 | ||
104 | rust (1.41) | iron (0.6) | 18 673 | ||
105 | php (7.4) | spiral (2.4) | 17 424 | ||
106 | ruby (2.6) | hanami (1.3) | 17 020 | ||
107 | ruby (2.6) | sinatra (2.0) | 15 923 | ||
108 | python (3.8) | quart (0.10) | 13 607 | ||
109 | ruby (2.6) | grape (1.3) | 13 269 | ||
110 | swift (5.1) | swifter (1.4) | 11 486 | ||
111 | python (3.8) | django (3.0) | 10 762 | ||
112 | python (3.8) | tornado (6.0) | 10 344 | ||
113 | go (1.13) | gramework (1.7) | 9 996 | ||
114 | python (3.8) | cherrypy (18.5) | 9 500 | ||
115 | php (7.4) | ubiquity (2.3) | 8 658 | ||
116 | php (7.4) | one-fpm (1.9) | 7 892 | ||
117 | php (7.4) | hamlet (3.2) | 7 455 | ||
118 | php (7.4) | phalcon (4.0) | 7 171 | ||
119 | crystal (0.31) | onyx (0.5) | 6 573 | ||
120 | julia (1.3) | merly (0.2) | 4 859 | ||
121 | php (7.4) | slim (4.4) | 4 481 | ||
122 | php (7.4) | lumen (6.3) | 3 967 | ||
123 | ruby (2.6) | rails (6.0) | 3 547 | ||
124 | php (7.4) | symfony (4.3) | 3 449 | ||
125 | perl (5.3) | dancer2 (2.0) | 3 434 | ||
126 | php (7.4) | zend-expressive (3.2) | 3 429 | ||
127 | python (3.8) | cyclone (1.3) | 2 369 | ||
128 | php (7.4) | zend-framework (3.1) | 1 881 | ||
129 | python (3.8) | klein (19.6) | 1 619 | ||
130 | python (3.8) | nameko (2.12) | 1 543 | ||
131 | php (7.4) | basicphp (0.9) | 1 390 | ||
132 | php (7.4) | laravel (6.14) | 381 |
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