{"id":16975998,"url":"https://github.com/boomzero/http_server","last_synced_at":"2026-05-18T04:15:38.325Z","repository":{"id":216941065,"uuid":"742751047","full_name":"boomzero/http_server","owner":"boomzero","description":"a static http server writen in a single C++ file that can respond to more than 3400 requests per second","archived":false,"fork":false,"pushed_at":"2024-01-15T14:23:44.000Z","size":33,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T23:05:52.289Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boomzero.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":"2024-01-13T08:56:45.000Z","updated_at":"2025-05-18T05:04:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ae4095f-100d-4b81-ac3d-d38506ea38e8","html_url":"https://github.com/boomzero/http_server","commit_stats":null,"previous_names":["boomzero/http_server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/boomzero/http_server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boomzero%2Fhttp_server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boomzero%2Fhttp_server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boomzero%2Fhttp_server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boomzero%2Fhttp_server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boomzero","download_url":"https://codeload.github.com/boomzero/http_server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boomzero%2Fhttp_server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006748,"owners_count":26084181,"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-11T02:00:06.511Z","response_time":55,"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-10-14T01:24:37.398Z","updated_at":"2025-10-11T09:35:56.053Z","avatar_url":"https://github.com/boomzero.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# http-server\n\n\u003cimg width=\"1436\" alt=\"image\" src=\"https://github.com/boomzero/http_server/assets/85378277/d9b90225-269e-4b8b-92bd-1eb72b64dfb9\"\u003e\n\u003cfigcaption\u003e a website being served with http-server \u003c/figcaption\u003e\n\n\n***\n\n`http-server` is inspired by [http-server](https://www.npmjs.com/package/http-server). It serves everything in the current working directory.\n\nIt accepts one argument, the port you wnat to bind to. Nothing else.\n\nIt is loosely complies with HTTP/1.0, so it should work.\n\n\n## Benchmarks\n\n`http-server` is very fast. It is even faster than lightpd in my testing.\nEach thread uses around 10% CPU during peak load, so CPU use would be around 80%.\nYou can reduce the number of threads, however it probably wouldn't work as well.\n\nThe following results are produced on a Raspberry Pi 4 with 2 GB of RAM:\n```\nThis is ApacheBench, Version 2.3 \u003c$Revision: 1903618 $\u003e\nCopyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\nLicensed to The Apache Software Foundation, http://www.apache.org/\n\nBenchmarking 192.168.10.5 (be patient)\nCompleted 10000 requests\nCompleted 20000 requests\nCompleted 30000 requests\nCompleted 40000 requests\nCompleted 50000 requests\nCompleted 60000 requests\nCompleted 70000 requests\nCompleted 80000 requests\nCompleted 90000 requests\nCompleted 100000 requests\nFinished 100000 requests\n\n\nServer Software:        http-server\nServer Hostname:        192.168.10.5\nServer Port:            8086\n\nDocument Path:          /\nDocument Length:        145 bytes\n\nConcurrency Level:      5\nTime taken for tests:   29.350 seconds\nComplete requests:      100000\nFailed requests:        0\nNon-2xx responses:      100000\nTotal transferred:      23300000 bytes\nHTML transferred:       14500000 bytes\nRequests per second:    3407.11 [#/sec] (mean)\nTime per request:       1.468 [ms] (mean)\nTime per request:       0.294 [ms] (mean, across all concurrent requests)\nTransfer rate:          775.25 [Kbytes/sec] received\n\nConnection Times (ms)\n              min  mean[+/-sd] median   max\nConnect:        0    0   0.2      0      11\nProcessing:     0    1   0.3      1      18\nWaiting:        0    1   0.2      1      16\nTotal:          0    1   0.3      1      18\n\nPercentage of the requests served within a certain time (ms)\n  50%      1\n  66%      1\n  75%      1\n  80%      2\n  90%      2\n  95%      2\n  98%      2\n  99%      2\n 100%     18 (longest request)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboomzero%2Fhttp_server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboomzero%2Fhttp_server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboomzero%2Fhttp_server/lists"}