{"id":20657108,"url":"https://github.com/kallydev/c10k","last_synced_at":"2025-10-07T15:50:03.626Z","repository":{"id":65230606,"uuid":"496018493","full_name":"kallydev/c10k","owner":"kallydev","description":"Nginx and Go FastHTTP framework performance test cases.","archived":false,"fork":false,"pushed_at":"2022-05-25T04:14:15.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T21:47:09.112Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kallydev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-24T23:29:10.000Z","updated_at":"2023-03-26T06:44:25.000Z","dependencies_parsed_at":"2023-01-16T14:52:38.922Z","dependency_job_id":null,"html_url":"https://github.com/kallydev/c10k","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kallydev/c10k","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kallydev%2Fc10k","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kallydev%2Fc10k/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kallydev%2Fc10k/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kallydev%2Fc10k/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kallydev","download_url":"https://codeload.github.com/kallydev/c10k/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kallydev%2Fc10k/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278802801,"owners_count":26048566,"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-07T02:00:06.786Z","response_time":59,"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-16T18:18:34.993Z","updated_at":"2025-10-07T15:50:03.581Z","avatar_url":"https://github.com/kallydev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C10K\n\nNginx and Go FastHTTP framework performance test cases.\n\n## Environment\n\n### Server\n\n- Cloud Service Provider (Azure)\n- Virtual machine (Standard F2s v2 (2 vcpus, 4 GiB memory))\n- System (Linux c10k-server 5.15.0-1005-azure #6-Ubuntu SMP Wed Apr 20 09:27:47 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux)\n- Go (go version go1.18.2 linux/amd64)\n- UPX (3.96-3)\n\n### Client\n\n- Cloud Service Provider (Azure)\n- Virtual machine (Standard F2s v2 (2 vcpus, 4 GiB memory))\n- System (Linux c10k-server 5.15.0-1005-azure #6-Ubuntu SMP Wed Apr 20 09:27:47 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux)\n- Apache benchmark tool (2.4.52-1ubuntu4)\n\n### Result (Nginx)\n\n```text\nubuntu@c10k-client:~$ ab -n 20000 -c 200 \"http://10.2.0.4/\"\nThis is ApacheBench, Version 2.3 \u003c$Revision: 1879490 $\u003e\nCopyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\nLicensed to The Apache Software Foundation, http://www.apache.org/\n\nBenchmarking 10.2.0.4 (be patient)\nCompleted 2000 requests\nCompleted 4000 requests\nCompleted 6000 requests\nCompleted 8000 requests\nCompleted 10000 requests\nCompleted 12000 requests\nCompleted 14000 requests\nCompleted 16000 requests\nCompleted 18000 requests\nCompleted 20000 requests\nFinished 20000 requests\n\n\nServer Software:        nginx/1.18.0\nServer Hostname:        10.2.0.4\nServer Port:            80\n\nDocument Path:          /\nDocument Length:        11 bytes\n\nConcurrency Level:      200\nTime taken for tests:   0.986 seconds\nComplete requests:      20000\nFailed requests:        0\nTotal transferred:      3260000 bytes\nHTML transferred:       220000 bytes\nRequests per second:    20280.91 [#/sec] (mean)\nTime per request:       9.861 [ms] (mean)\nTime per request:       0.049 [ms] (mean, across all concurrent requests)\nTransfer rate:          3228.31 [Kbytes/sec] received\n\nConnection Times (ms)\n              min  mean[+/-sd] median   max\nConnect:        1    4   1.4      4      27\nProcessing:     2    6   1.0      6      12\nWaiting:        0    4   1.0      4      10\nTotal:          6   10   1.7     10      35\n\nPercentage of the requests served within a certain time (ms)\n  50%     10\n  66%     10\n  75%     10\n  80%     11\n  90%     11\n  95%     12\n  98%     14\n  99%     16\n 100%     35 (longest request)\n```\n\n### Result (FastHTTP)\n\n```text\nubuntu@c10k-client:~$ ab -n 20000 -c 200 \"http://10.2.0.4/\"\nThis is ApacheBench, Version 2.3 \u003c$Revision: 1879490 $\u003e\nCopyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\nLicensed to The Apache Software Foundation, http://www.apache.org/\n\nBenchmarking 10.2.0.4 (be patient)\nCompleted 2000 requests\nCompleted 4000 requests\nCompleted 6000 requests\nCompleted 8000 requests\nCompleted 10000 requests\nCompleted 12000 requests\nCompleted 14000 requests\nCompleted 16000 requests\nCompleted 18000 requests\nCompleted 20000 requests\nFinished 20000 requests\n\n\nServer Software:        fasthttp\nServer Hostname:        10.2.0.4\nServer Port:            80\n\nDocument Path:          /\nDocument Length:        11 bytes\n\nConcurrency Level:      200\nTime taken for tests:   1.050 seconds\nComplete requests:      20000\nFailed requests:        0\nTotal transferred:      3300000 bytes\nHTML transferred:       220000 bytes\nRequests per second:    19045.57 [#/sec] (mean)\nTime per request:       10.501 [ms] (mean)\nTime per request:       0.053 [ms] (mean, across all concurrent requests)\nTransfer rate:          3068.87 [Kbytes/sec] received\n\nConnection Times (ms)\n              min  mean[+/-sd] median   max\nConnect:        1    4   1.4      4      27\nProcessing:     2    6   1.1      6      13\nWaiting:        0    4   1.1      4      10\nTotal:          3   10   1.8     10      35\n\nPercentage of the requests served within a certain time (ms)\n  50%     10\n  66%     11\n  75%     11\n  80%     11\n  90%     12\n  95%     13\n  98%     14\n  99%     17\n 100%     35 (longest request)\n```\n\n### Result (Nginx and BBR)\n\n```text\nubuntu@c10k-client:~$ ab -n 20000 -c 200 \"http://10.2.0.4/\"\nThis is ApacheBench, Version 2.3 \u003c$Revision: 1879490 $\u003e\nCopyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\nLicensed to The Apache Software Foundation, http://www.apache.org/\n\nBenchmarking 10.2.0.4 (be patient)\nCompleted 2000 requests\nCompleted 4000 requests\nCompleted 6000 requests\nCompleted 8000 requests\nCompleted 10000 requests\nCompleted 12000 requests\nCompleted 14000 requests\nCompleted 16000 requests\nCompleted 18000 requests\nCompleted 20000 requests\nFinished 20000 requests\n\n\nServer Software:        nginx/1.18.0\nServer Hostname:        10.2.0.4\nServer Port:            80\n\nDocument Path:          /\nDocument Length:        11 bytes\n\nConcurrency Level:      200\nTime taken for tests:   1.036 seconds\nComplete requests:      20000\nFailed requests:        0\nTotal transferred:      3260000 bytes\nHTML transferred:       220000 bytes\nRequests per second:    19313.74 [#/sec] (mean)\nTime per request:       10.355 [ms] (mean)\nTime per request:       0.052 [ms] (mean, across all concurrent requests)\nTransfer rate:          3074.36 [Kbytes/sec] received\n\nConnection Times (ms)\n              min  mean[+/-sd] median   max\nConnect:        1    4   1.2      4      27\nProcessing:     2    6   1.1      6      12\nWaiting:        0    5   1.1      5      10\nTotal:          5   10   1.5     10      34\n\nPercentage of the requests served within a certain time (ms)\n  50%     10\n  66%     11\n  75%     11\n  80%     11\n  90%     11\n  95%     12\n  98%     13\n  99%     14\n 100%     34 (longest request)\n```\n\n### Result (FastHTTP and BBR)\n\n```text\nubuntu@c10k-client:~$ ab -n 20000 -c 200 \"http://10.2.0.4/\"\nThis is ApacheBench, Version 2.3 \u003c$Revision: 1879490 $\u003e\nCopyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\nLicensed to The Apache Software Foundation, http://www.apache.org/\n\nBenchmarking 10.2.0.4 (be patient)\nCompleted 2000 requests\nCompleted 4000 requests\nCompleted 6000 requests\nCompleted 8000 requests\nCompleted 10000 requests\nCompleted 12000 requests\nCompleted 14000 requests\nCompleted 16000 requests\nCompleted 18000 requests\nCompleted 20000 requests\nFinished 20000 requests\n\n\nServer Software:        fasthttp\nServer Hostname:        10.2.0.4\nServer Port:            80\n\nDocument Path:          /\nDocument Length:        11 bytes\n\nConcurrency Level:      200\nTime taken for tests:   1.058 seconds\nComplete requests:      20000\nFailed requests:        0\nTotal transferred:      3300000 bytes\nHTML transferred:       220000 bytes\nRequests per second:    18902.82 [#/sec] (mean)\nTime per request:       10.580 [ms] (mean)\nTime per request:       0.053 [ms] (mean, across all concurrent requests)\nTransfer rate:          3045.87 [Kbytes/sec] received\n\nConnection Times (ms)\n              min  mean[+/-sd] median   max\nConnect:        0    4   1.4      4      25\nProcessing:     0    6   1.5      6      19\nWaiting:        0    5   1.6      5      17\nTotal:          1   10   1.7     10      31\n\nPercentage of the requests served within a certain time (ms)\n  50%     10\n  66%     11\n  75%     11\n  80%     11\n  90%     12\n  95%     13\n  98%     14\n  99%     16\n 100%     31 (longest request)\n```\n\n### Result (FastHTTP and BBR and Postgres)\n\n```text\n# TODO\n```\n\n## Reference\n\n- http://www.kegel.com/c10k.html\n- http://highscalability.com/blog/2013/5/13/the-secret-to-10-million-concurrent-connections-the-kernel-i.html\n\n## LICENSE\n\n[MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkallydev%2Fc10k","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkallydev%2Fc10k","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkallydev%2Fc10k/lists"}