{"id":18356400,"url":"https://github.com/static-web-server/benchmarks","last_synced_at":"2025-10-04T03:38:13.739Z","repository":{"id":158771072,"uuid":"628425244","full_name":"static-web-server/benchmarks","owner":"static-web-server","description":"A benchmark suite which measures the requests per second and latency on average for several web servers.","archived":false,"fork":false,"pushed_at":"2023-04-29T13:30:07.000Z","size":49,"stargazers_count":4,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T12:39:53.914Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Lua","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/static-web-server.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-04-15T22:48:53.000Z","updated_at":"2024-04-18T12:51:58.000Z","dependencies_parsed_at":"2023-07-15T05:15:22.026Z","dependency_job_id":null,"html_url":"https://github.com/static-web-server/benchmarks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/static-web-server/benchmarks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/static-web-server%2Fbenchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/static-web-server%2Fbenchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/static-web-server%2Fbenchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/static-web-server%2Fbenchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/static-web-server","download_url":"https://codeload.github.com/static-web-server/benchmarks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/static-web-server%2Fbenchmarks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278261553,"owners_count":25957916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-05T22:10:09.978Z","updated_at":"2025-10-04T03:38:13.734Z","avatar_url":"https://github.com/static-web-server.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Static Web Servers Benchmarks\n\n\u003e A benchmark suite which measures the requests per second and latency on average for several web servers.\n\n\u003cimg title=\"SWS - Benchmarks April 2023\" src=\"./data/2023-04/benchmark-2023-04.png\" width=\"860\"\u003e\n\n## Motivation and context\n\nWe wanted to prepare some benchmarks to have a general idea about the SWS performance path over time as well as an excuse to improve/optimize SWS in that regard.\n\n## Important Remarks\n\n- Note that this is a rough reference about some particular performance aspects (requests per second and latency on average) so take it *at your own risk*.\n- Be also aware that **_this benchmark disables in-memory cache_** for some servers intentionally since SWS doesn't provide such a feature yet.\u003cbr\u003e\nIn the case of some web servers providing that by default then it gets disabled explicitly. See for example [*binserve's author comment*](https://github.com/static-web-server/static-web-server/issues/156#issuecomment-1293941692) in this context.\n- Have also in mind that some web servers follow approaches like [Nignx's hybrid disk‑and‑memory cache strategy](https://www.nginx.com/blog/cache-placement-strategies-nginx-plus#Where-is-Cached-Data-Stored) which could work in its favor.\n\n## Benchmarks history\n\n- [2023-04](./data/2023-04)\n- [2022-10](./data/2022-10)\n\n## Perform the benchmarks\n\nChange `URL` env with the corresponding server URL to load test and generate the [wrk](https://github.com/wg/wrk) metrics.\n\n```sh\n# NOTE: the load test is per server\nSERVER=\"sws\" URL=\"http://localhost\" make wrk\n# wrk -c 500 -t 12 -d 10s --latency http://localhost\n```\n\nAfter that, `wrk` will save two files (JSON/CSV) on disk with the resulting metrics. \n\nFor more details about settings see [Makefile](./Makefile)\n\n## System used\n\n- **OS:** Arch Linux\n- **Kernel:** 6.1.11-arch1-1 (64 bits)\n- **Processor:** 4 × Intel® Core™ i7-6500U\n- **RAM:** 8 GiB\n\n## Contributions\n\nOf course, if you find any issue or remark/improvement to do please don't hesitate to file an [issue](https://github.com/static-web-server/static-web-server/issues) or send a [Pull request](https://github.com/static-web-server/static-web-server/pulls).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatic-web-server%2Fbenchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatic-web-server%2Fbenchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatic-web-server%2Fbenchmarks/lists"}