{"id":20767021,"url":"https://github.com/binded/python-web-server-perf","last_synced_at":"2025-03-11T18:51:30.574Z","repository":{"id":97906409,"uuid":"100994477","full_name":"binded/python-web-server-perf","owner":"binded","description":null,"archived":false,"fork":false,"pushed_at":"2017-08-21T22:32:37.000Z","size":93,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-18T06:28:14.550Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/binded.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":"2017-08-21T21:35:33.000Z","updated_at":"2017-08-24T08:49:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"c987d881-9668-41ce-b433-c1ed8cc6b605","html_url":"https://github.com/binded/python-web-server-perf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binded%2Fpython-web-server-perf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binded%2Fpython-web-server-perf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binded%2Fpython-web-server-perf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binded%2Fpython-web-server-perf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binded","download_url":"https://codeload.github.com/binded/python-web-server-perf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243094621,"owners_count":20235531,"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","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-17T11:27:19.315Z","updated_at":"2025-03-11T18:51:30.551Z","avatar_url":"https://github.com/binded.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-web-server-perf\n\n[![Build Status](https://travis-ci.org/binded/python-web-server-perf.svg?branch=master)](https://travis-ci.org/binded/python-web-server-perf)\n\nBenchmark for threaded, single-process Python web servers.\n\n## Example results (Macbook Pro Mid 2015)\n\n```\nsanic\n---\nRunning 15s test @ http://localhost:8080/health\n  12 threads and 400 connections\n  Thread Stats   Avg      Stdev     Max   +/- Stdev\n    Latency    23.09ms   10.19ms 132.47ms   82.14%\n    Req/Sec     1.34k   269.10     2.27k    81.60%\n  240216 requests in 15.03s, 27.72MB read\n  Socket errors: connect 0, read 307, write 0, timeout 0\nRequests/sec:  15980.75\nTransfer/sec:      1.84MB\nRunning 15s test @ http://localhost:8080/upload\n  12 threads and 36 connections\n  Thread Stats   Avg      Stdev     Max   +/- Stdev\n    Latency     4.09ms    1.57ms  36.08ms   84.55%\n    Req/Sec   747.21     95.57     1.20k    77.50%\n  134075 requests in 15.03s, 15.47MB read\nRequests/sec:   8918.90\nTransfer/sec:      1.03MB\n\njapronto\n---\nAccepting connections on http://0.0.0.0:8080\nRunning 15s test @ http://localhost:8080/health\n  12 threads and 400 connections\n  Thread Stats   Avg      Stdev     Max   +/- Stdev\n    Latency     4.44ms    1.29ms  14.64ms   69.21%\n    Req/Sec     6.92k   793.30    11.58k    84.66%\n  1247606 requests in 15.10s, 96.37MB read\n  Socket errors: connect 0, read 326, write 0, timeout 0\nRequests/sec:  82606.67\nTransfer/sec:      6.38MB\nRunning 15s test @ http://localhost:8080/upload\n  12 threads and 36 connections\n  Thread Stats   Avg      Stdev     Max   +/- Stdev\n    Latency     1.72ms    1.04ms  34.10ms   95.51%\n    Req/Sec     1.81k   281.93     5.35k    90.36%\n  325415 requests in 15.10s, 25.14MB read\nRequests/sec:  21545.76\nTransfer/sec:      1.66MB\nTermination request received\n\nwerkzeug\n---\nRunning 15s test @ http://localhost:8080/health\n  12 threads and 400 connections\n  Thread Stats   Avg      Stdev     Max   +/- Stdev\n    Latency    82.66ms   13.77ms 119.98ms   92.66%\n    Req/Sec   124.54     58.77   320.00     66.85%\n  15795 requests in 15.10s, 2.33MB read\n  Socket errors: connect 0, read 1082, write 5, timeout 0\nRequests/sec:   1046.12\nTransfer/sec:    158.35KB\nRunning 15s test @ http://localhost:8080/upload\n  12 threads and 36 connections\n  Thread Stats   Avg      Stdev     Max   +/- Stdev\n    Latency    58.52ms   39.23ms 135.40ms   64.81%\n    Req/Sec    32.79     15.18    75.00     64.58%\n  162 requests in 15.09s, 24.52KB read\nRequests/sec:     10.74\nTransfer/sec:      1.63KB\n```\n\n## Usage\n\n```bash\n./bench\n```\n\n## Install\n\nInstall the [wrk](https://github.com/wg/wrk) benchmarking tool.\n\nWith pyenv:\n\n```bash\npyenv virtualenv 3.6.2 python-web-server-perf\npyenv local python-web-server-perf\npip install -r requirements.txt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinded%2Fpython-web-server-perf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinded%2Fpython-web-server-perf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinded%2Fpython-web-server-perf/lists"}