{"id":15619785,"url":"https://github.com/kolotaev/servo-bench","last_synced_at":"2026-01-21T16:03:37.028Z","repository":{"id":32966849,"uuid":"126216203","full_name":"kolotaev/servo-bench","owner":"kolotaev","description":"Benchmark of servers and web-frameworks for small machines","archived":false,"fork":false,"pushed_at":"2023-03-16T06:15:51.000Z","size":4570,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T22:46:41.489Z","etag":null,"topics":["benchmark","languages","web-framework"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kolotaev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-21T17:26:36.000Z","updated_at":"2021-11-18T21:25:24.000Z","dependencies_parsed_at":"2024-10-22T04:50:50.897Z","dependency_job_id":null,"html_url":"https://github.com/kolotaev/servo-bench","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kolotaev/servo-bench","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kolotaev%2Fservo-bench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kolotaev%2Fservo-bench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kolotaev%2Fservo-bench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kolotaev%2Fservo-bench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kolotaev","download_url":"https://codeload.github.com/kolotaev/servo-bench/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kolotaev%2Fservo-bench/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28635926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T15:01:31.228Z","status":"ssl_error","status_checked_at":"2026-01-21T14:42:58.942Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["benchmark","languages","web-framework"],"created_at":"2024-10-03T08:41:38.364Z","updated_at":"2026-01-21T16:03:37.005Z","avatar_url":"https://github.com/kolotaev.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Benchmark of various web-frameworks\n\n\u003e Tests for minimal machines with limited resources (1 vCPU, 1 Gb RAM).\n\n_Note that all tests are performed on a dedicated vCPU. Results may (and will) vary for basic VPS plans that use shared CPU resources._\n\n- [Benchmark of various web-frameworks](#benchmark-of-various-web-frameworks)\n  - [Tests](#tests)\n  - [Frameworks](#frameworks)\n    - [Go. Echo.](#go-echo)\n    - [JS. Express.](#js-express)\n    - [Crystal. Kemal.](#crystal-kemal)\n    - [Python. Flask. Gevent](#python-flask-gevent)\n    - [Python. Aiohttp. UVloop.](#python-aiohttp-uvloop)\n    - [Clojure. Ring. Jetty.](#clojure-ring-jetty)\n    - [Clojure. Http-kit.](#clojure-http-kit)\n    - [Clojure. Undertow.](#clojure-undertow)\n    - [Scala. Play. Akka.](#scala-play-akka)\n    - [Elixir. Phoenix. OTP.](#elixir-phoenix-otp)\n    - [Elixir. Plug. OTP.](#elixir-plug-otp)\n    - [Ruby. Synchrony.](#ruby-synchrony)\n    - [Ruby. Sinatra. Puma.](#ruby-sinatra-puma)\n    - [Lua. Openresty. Nginx.](#lua-openresty-nginx)\n    - [Java. Vertx.](#java-vertx)\n    - [Haskell. Hasura.](#haskell-hasura)\n  - [Mule script](#mule-script)\n\n\n## Tests\n\n- Simple random tiny JSON response.\n  ```bash\n  wrk -t12 -c400 -d240s http://vagrant-machine:8080/json --timeout 10s\n  ```\n\n  Detailed results can be found [here](./_results/benchmark-results-json-2sec.md).\n\n  ![rps](_images/json/Requests_per_second.png)\n  ![latency50](_images/json/Latency_for_50-percentile.png)\n  ![latency99](_images/json/Latency_for_99-percentile.png)\n  ![mem_used](_images/json/Memory_usage.png)\n  ![cpu_used](_images/json/CPU_usage.png)\n\n\n- Postgres DB call that does `sleep random(2 sec)` mimicking random long queries and random js response\n  generated 100 times to simulate post-processing. DB pool size is 400.\n  ```bash\n  wrk -t12 -c400 -d240s http://vagrant-machine:8080/db --timeout 10s\n  ```\n\n  Detailed results can be found [here](./_results/benchmark-results-db-2sec.md).\n\n  ![rps](_images/db2/Requests_per_second.png)\n  ![latency50](_images/db2/Latency_for_50-percentile.png)\n  ![latency99](_images/db2/Latency_for_99-percentile.png)\n  ![mem_used](_images/db2/Memory_usage.png)\n  ![cpu_used](_images/db2/CPU_usage.png)\n\n\n- Postgres DB call that does `SELECT count(*) FROM pg_catalog.pg_user` mimicking fast queries and random js response\n  generated 100 times to simulate post-processing. DB pool size is 400.\n  ```bash\n  wrk -t12 -c400 -d240s http://vagrant-machine:8080/db --timeout 10s\n  ```\n\n  Detailed results can be found [here](./_results/benchmark-results-db-0sec.md).\n\n  ![rps](_images/db0/Requests_per_second.png)\n  ![latency50](_images/db0/Latency_for_50-percentile.png)\n  ![latency99](_images/db0/Latency_for_99-percentile.png)\n  ![mem_used](_images/db0/Memory_usage.png)\n  ![cpu_used](_images/db0/CPU_usage.png)\n\n## Frameworks\n\nEvery framework section has 2 (or 3) words: Language. Framework name. (Web server name or networking library).\n\n### Go. Echo.\n\n- [Echo](https://github.com/labstack/echo)\n\nLogging disabled.\n\n\n### JS. Express.\n\n- [NodeJS site](nodejs.org)\n- [Express site](https://expressjs.com)\n\n\n### Crystal. Kemal.\n- [Crystal lang](https://crystal-lang.org)\n- [Kemal web framework](https://kemalcr.com)\n\n\n### Python. Flask. Gevent\n\n- [Flask](http://flask.pocoo.org)\n- [Gunicorn](http://gunicorn.org/#docs)\n- [Gevent](http://www.gevent.org)\n\nWith setup: 'Gunicorn as a web-server. 4 workers. Worker type - async: eventlet' server gives only 3-4 req/s\nwhich is very low.\n\nTuned bare gevent is much better.\n\n\n### Python. Aiohttp. UVloop.\n\n- [Aiohttp](https://aiohttp.readthedocs.io/en/stable/index.html)\n- [uvloop](https://github.com/MagicStack/uvloop)\n- [acyncpg](https://magicstack.github.io/asyncpg)\n\nStrange, but UVloop gives no benefits for `db/` endpoint.\n\n\n### Clojure. Ring. Jetty.\n\n- [Ring](https://github.com/ring-clojure/ring)\n- [Jetty](https://www.eclipse.org/jetty)\n\nJetty with all default settings.\n\n\n### Clojure. Http-kit.\n\n- [Http-kit](https://github.com/http-kit/http-kit)\n- [Postgres.async](https://github.com/alaisi/postgres.async)\n\nEvent-driven, high-performance clojure server/client library.\nWith async PG driver.\n\n\n### Clojure. Undertow.\n\n- [Unertow](http://undertow.io)\n- [Undertow-ring](https://github.com/piranha/ring-undertow-adapter)\n\n\n### Scala. Play. Akka.\n\n- [Play](https://www.playframework.com)\n- [Akka](https://akka.io)\n\n\n### Elixir. Phoenix. OTP.\n\n- [Elixir](https://elixir-lang.org)\n- [Phoenix](https://phoenixframework.org)\n- [Erlang \u0026 OTP](https://www.erlang.org)\n\n\n### Elixir. Plug. OTP.\n\n- [Elixir](https://elixir-lang.org)\n- [Plug](https://github.com/elixir-plug/plug)\n- [Erlang \u0026 OTP](https://www.erlang.org)\n\n\n### Ruby. Synchrony.\n\n- [Ruby](https://www.ruby-lang.org)\n- [Synchrony](https://github.com/kyledrake/sinatra-synchrony)\n\n\n### Ruby. Sinatra. Puma.\n\n- [Ruby](https://www.ruby-lang.org)\n- [Sinatra](http://sinatrarb.com)\n- [Puma](https://puma.io)\n\n\n### Lua. Openresty. Nginx.\n\n- [Luajit](https://luajit.org)\n- [Openresty](https://openresty.org/)\n- [Nginx](http://nginx.org)\n\n\n### Java. Vertx.\n\n- [Vertx](https://vertx.io)\n\nFor DB we use async vert.x postgres driver\n\n\n### Haskell. Hasura.\n\n- [Hasura](https://hasura.io)\n\nDoesn't currently participate in the race, but you can see the results in its directory.\nIt's quite promising.\n\n\n## Sleep Echo server\n\nIn order to test remote HTTP requests performance we spin up a simple Golang echo-server that sleeps for a specified amount of time before responding back.\n\nBuild and run it with a standard `mule` script command prior to tests.\n\nIts single endpoint is: `http://127.0.0.1:9000/sleep/${sleep_second_you_want}`\n\n\n## Mule script\n\n`mule` is a script to help you build and run specific framework in a docker-container.\n\nScript can be run in 2 possible ways:\n\n```bash\n# 1. From repo's root directory: you need to specify directory of the framework in -d option.\n./mule.sh -d go-echo\n\n# 2. From specific framework's directory: no -d option is needed.\ncd go-echo\n../mule.sh\n```\n\nAvailable actions of using `mule` (assuming the 2nd way of running):\n\n```bash\n# Read help for `mule` script\n../mule.sh -h\n\n# Build all images\n./mule.sh -x\n\n# Build/rebuild image\n../mule.sh -b\n\n# Run container\n../mule.sh -r\n\n# Run container with attached TTY (to see its output)\n../mule.sh -ra\n\n# Kill running container\n../mule.sh -k\n\n# Build image, kill container if running, run new w/ attached TTY\n../mule.sh -brak\n\n# Run with specific options (loop-count, etc.)\n../mule.sh -ra -l 1000\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkolotaev%2Fservo-bench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkolotaev%2Fservo-bench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkolotaev%2Fservo-bench/lists"}