{"id":21654461,"url":"https://github.com/hvalfangst/web-framework-performance-comparison","last_synced_at":"2026-04-17T00:02:28.002Z","repository":{"id":207374258,"uuid":"718263831","full_name":"hvalfangst/web-framework-performance-comparison","owner":"hvalfangst","description":"Performance testing of various web frameworks in various programming languages","archived":false,"fork":false,"pushed_at":"2023-11-15T22:55:56.000Z","size":12914,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T04:44:03.062Z","etag":null,"topics":["bombardier","bun-orm","fasthttp","gin-gonic","golang","jdbc","kotlin","pgx","r2dbc","reactive","spring-boot","webflux"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/hvalfangst.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":"2023-11-13T18:15:07.000Z","updated_at":"2024-10-14T21:40:41.000Z","dependencies_parsed_at":"2024-11-25T08:39:03.357Z","dependency_job_id":null,"html_url":"https://github.com/hvalfangst/web-framework-performance-comparison","commit_stats":null,"previous_names":["hvalfangst/web-framework-performance-comparison"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hvalfangst/web-framework-performance-comparison","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hvalfangst%2Fweb-framework-performance-comparison","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hvalfangst%2Fweb-framework-performance-comparison/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hvalfangst%2Fweb-framework-performance-comparison/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hvalfangst%2Fweb-framework-performance-comparison/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hvalfangst","download_url":"https://codeload.github.com/hvalfangst/web-framework-performance-comparison/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hvalfangst%2Fweb-framework-performance-comparison/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31909235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["bombardier","bun-orm","fasthttp","gin-gonic","golang","jdbc","kotlin","pgx","r2dbc","reactive","spring-boot","webflux"],"created_at":"2024-11-25T08:27:56.894Z","updated_at":"2026-04-17T00:02:27.719Z","avatar_url":"https://github.com/hvalfangst.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Performance testing of web frameworks using Bombardier\n\nIn this project we utilize [Bombardier](https://github.com/codesenberg/bombardier) to conduct simple load-testing.\n\nThe subject of our tests is the GET `/heroes/1` endpoint, which queries the 'heroes' table for a 'hero' entity by ID.\nThe associated 'hero' entity will have its field 'level' modified based on a counter, which resides in the Controller.\nThis has been implemented in order to mitigate caching.\n\n## Requirements\n\n* x86-64\n* Linux/Unix\n* [Docker](https://www.docker.com/products/docker-desktop/)\n* [JDK 17](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html)\n* [Maven](https://maven.apache.org/)\n* [Golang](https://go.dev/)\n\n\n## Startup\n\nThe script \"up\" creates our database and starts the specified application based on arguments:\n```\n1. docker-compose -f docker/heroes/docker-compose.yml up -d\n2.1 mvn spring-boot:run -f spring-boot-jdbc/pom.xml\n2.2. mvn spring-boot:run -f spring-boot-webflux-r2dbc/pom.xml\n```\n\nThe associated `docker-compose` also contains initialization scripts for creating our database and inserting test rows.\n\n\n## Shutdown\n\nThe script \"down\" removes our database container:\n```\n1.docker-compose -f docker/heroes/docker-compose.yml down\n```\n\n## My Hardware Specs\n\n### CPU\n\n```\nIntel(R) Core(TM) i7-1165G7 @ 2.80GHz (4 cores, 8 threads)\n```\n\n### RAM\n\n```\n32 GB\n```\n\n## Vanilla Spring Boot with JDBC\n\n### 10 Concurrent Connections, 10000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 10 -n 10000\nStatistics        Avg      Stdev        Max\n  Reqs/sec      1257.67     120.55    1440.96\n  Latency        7.95ms     0.99ms    31.54ms\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:     0.89MB/s\n ```\n\n### 50 Concurrent Connections, 10000 Requests \n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 50 -n 10000\nStatistics        Avg      Stdev        Max\n  Reqs/sec      1204.09     127.07    1433.73\n  Latency       41.47ms     3.90ms    92.54ms\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:     0.85MB/s\n ```\n\n### 100 Concurrent Connections, 10000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 100 -n 10000\nStatistics        Avg      Stdev        Max\n  Reqs/sec      1191.75     139.86    1713.61\n  Latency       83.64ms    10.66ms   269.06ms\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:   861.02KB/s\n ```\n\n### 250 Concurrent Connections, 10000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 250 -n 10000\nStatistics        Avg      Stdev        Max\n  Reqs/sec      1188.36     149.74    1439.17\n  Latency      208.14ms    22.79ms   582.02ms\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:   859.36KB/s\n ```\n\n### 500 Concurrent Connections, 10000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 10 -n 10000\nStatistics        Avg      Stdev        Max\n  Reqs/sec      1220.48     174.07    2902.90\n  Latency      401.70ms    60.74ms      0.87s\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:     0.86MB/s\n ```\n\n### 2500 Concurrent Connections, 25000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 2500 -n 25000\nStatistics        Avg      Stdev        Max\n  Reqs/sec       401.86    2182.33   45602.77\n  Latency         6.74s      3.06s     19.80s\n  HTTP codes:\n    1xx - 0, 2xx - 3149, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 21851\n  Errors:\n    dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it. - 17741\n       timeout - 4110\n  Throughput:    52.27KB/s\n ```\n\n\n## Spring Boot WebFlux with R2DBC\n\n### 10 Concurrent Connections, 10000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 10 -n 10000\nStatistics        Avg      Stdev        Max\n  Reqs/sec      4242.66     395.24    4747.89\n  Latency        2.35ms   598.21us    35.32ms\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:     2.75MB/s\n ```\n\n### 50 Concurrent Connections, 10000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 50 -n 10000\nStatistics        Avg      Stdev        Max\n  Reqs/sec      4459.91     707.80    6318.56\n  Latency       11.21ms     6.64ms   244.03ms\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:     2.89MB/s\n ```\n\n### 100 Concurrent Connections, 10000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 100 -n 10000\nStatistics        Avg      Stdev        Max\n  Reqs/sec      4634.43     654.16    6620.50\n  Latency       21.53ms    13.42ms   254.55ms\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:     3.01MB/s\n ```\n\n### 250 Concurrent Connections, 10000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 250 -n 10000\nStatistics        Avg      Stdev        Max\n  Reqs/sec      4442.67     851.09    6222.31\n  Latency       55.90ms    21.16ms   423.48ms\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:     2.87MB/s\n ```\n\n### 500 Concurrent Connections, 10000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 500 -n 10000\nStatistics        Avg      Stdev        Max\n  Reqs/sec      4581.87    1002.97    9452.95\n  Latency      106.10ms    27.42ms   356.11ms\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:     2.97MB/s\n ```\n\n### 2500 Concurrent Connections, 25000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 2500 -n 25000\nStatistics        Avg      Stdev        Max\n  Reqs/sec      3532.44    2371.40   30110.29\n  Latency      706.18ms   324.09ms      3.33s\n  HTTP codes:\n    1xx - 0, 2xx - 25000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:     2.22MB/s\n ```\n\n## Golang Gin with Bun\n\n### 10 Concurrent Connections, 10000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 10 -n 10000\nStatistics        Avg      Stdev        Max\n  Reqs/sec       908.54     262.00    1729.76\n  Latency       11.03ms     9.70ms    91.43ms\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:   665.95KB/s\n ```\n\n### 50 Concurrent Connections, 10000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 50 -n 10000\nStatistics        Avg      Stdev        Max\n  Reqs/sec       844.80     484.33    4062.98\n  Latency       62.80ms    49.06ms   265.43ms\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:   583.94KB/s\n ```\n\n### 100 Concurrent Connections, 10000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 100 -n 10000\nStatistics        Avg      Stdev        Max\n  Reqs/sec      2823.61    1693.89    7586.94\n  Latency       35.68ms    35.69ms   329.06ms\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:     1.97MB/s\n ```\n\n### 250 Concurrent Connections, 10000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 250 -n 10000\nStatistics        Avg      Stdev        Max\n  Reqs/sec      3662.85    2296.23   12146.79\n  Latency       70.79ms    54.21ms   461.63ms\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:     2.50MB/s\n ```\n\n### 500 Concurrent Connections, 10000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 500 -n 10000\nStatistics        Avg      Stdev        Max\n  Reqs/sec      3652.13    2302.18   11292.50\n  Latency      135.97ms   105.69ms      0.92s\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:     2.57MB/s\n ```\n\n### 2500 Concurrent Connections, 25000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 2500 -n 25000\nStatistics        Avg      Stdev        Max\n  Reqs/sec      3998.95    2770.36   16837.75\n  Latency      658.39ms   473.92ms      4.08s\n  HTTP codes:\n    1xx - 0, 2xx - 25000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:     2.66MB/s\n ```\n\n\n## Golang FastHTTP with PGX\n\n### 10 Concurrent Connections, 10000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 10 -n 10000\nStatistics        Avg      Stdev        Max\n  Reqs/sec      9030.34    3192.29   15018.43\n  Latency        1.12ms     6.15ms   309.75ms\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:     6.34MB/s\n ```  \n\n### 50 Concurrent Connections, 10000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 50 -n 10000\nStatistics        Avg      Stdev        Max\n  Reqs/sec     10473.61    4524.57   17714.66\n  Latency        4.79ms    13.41ms   332.53ms\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:     7.41MB/s\n ```\n\n### 100 Concurrent Connections, 10000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 100 -n 10000\nStatistics        Avg      Stdev        Max\n  Reqs/sec      9430.96    4575.08   17612.59\n  Latency       10.66ms    27.31ms   418.87ms\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:     6.66MB/s\n ```\n\n### 250 Concurrent Connections, 10000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 250 -n 10000\nStatistics        Avg      Stdev        Max\n  Reqs/sec      9939.26    4543.79   18790.48\n  Latency       25.17ms    44.94ms      0.86s\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:     7.02MB/s\n ```\n\n### 500 Concurrent Connections, 10000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 500 -n 10000\nStatistics        Avg      Stdev        Max\n  Reqs/sec      8957.82    4622.64   18096.66\n  Latency       55.33ms   118.69ms      1.00s\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:     6.34MB/s\n ```\n\n### 2500 Concurrent Connections, 25000 Requests\n```plaintext\nCommand: bombardier -m GET localhost:8080/heroes/1 -c 2500 -n 25000\nStatistics        Avg      Stdev        Max\n  Reqs/sec      9428.74    4284.97   17813.39\n  Latency      296.34ms   383.30ms      2.29s\n  HTTP codes:\n    1xx - 0, 2xx - 25000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:     5.84MB/s\n ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhvalfangst%2Fweb-framework-performance-comparison","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhvalfangst%2Fweb-framework-performance-comparison","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhvalfangst%2Fweb-framework-performance-comparison/lists"}