{"id":30506441,"url":"https://github.com/cerjs/gin","last_synced_at":"2025-08-25T17:19:37.467Z","repository":{"id":211036143,"uuid":"728032046","full_name":"cerjs/gin","owner":"cerjs","description":"gin test","archived":false,"fork":false,"pushed_at":"2023-12-06T05:32:29.000Z","size":6106,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-17T00:28:52.271Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/cerjs.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}},"created_at":"2023-12-06T04:41:51.000Z","updated_at":"2023-12-06T05:10:58.000Z","dependencies_parsed_at":"2023-12-06T06:36:16.785Z","dependency_job_id":null,"html_url":"https://github.com/cerjs/gin","commit_stats":null,"previous_names":["cretjs/gin","cerjs/gin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cerjs/gin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cerjs%2Fgin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cerjs%2Fgin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cerjs%2Fgin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cerjs%2Fgin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cerjs","download_url":"https://codeload.github.com/cerjs/gin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cerjs%2Fgin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272100966,"owners_count":24873509,"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-08-25T02:00:12.092Z","response_time":1107,"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":"2025-08-25T17:19:35.623Z","updated_at":"2025-08-25T17:19:37.356Z","avatar_url":"https://github.com/cerjs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gin\ngin performance test\n\nhttps://www.cnblogs.com/zz962/p/14385334.html\nhttps://blog.csdn.net/qq_51701007/article/details/124934130\n\n\n# benchmark\nautocannon -c 500 -d 20 -p 100 http://localhost:8080/ping\nRunning 20s test @ http://localhost:8080/ping\n500 connections with 100 pipelining factor\n\nrunning [==================  ] 90%\n┌─────────┬────────┬────────┬────────┬────────┬───────────┬──────────┬─────────┐\n│ Stat    │ 2.5%   │ 50%    │ 97.5%  │ 99%    │ Avg       │ Stdev    │ Max     │\n├─────────┼────────┼────────┼────────┼────────┼───────────┼──────────┼─────────┤\n│ Latency │ 215 ms │ 238 ms │ 282 ms │ 290 ms │ 243.06 ms │ 37.25 ms │ 1102 ms │\n└─────────┴────────┴────────┴────────┴────────┴───────────┴──────────┴─────────┘\n┌───────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐\n│ Stat      │ 1%      │ 2.5%    │ 50%     │ 97.5%   │ Avg     │ Stdev   │ Min     │\n├───────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤\n│ Req/Sec   │ 186,623 │ 186,623 │ 250,111 │ 250,111 │ 238,144 │ 22,354  │ 186,595 │\n├───────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤\n│ Bytes/Sec │ 30.8 MB │ 30.8 MB │ 41.3 MB │ 41.3 MB │ 39.3 MB │ 3.68 MB │ 30.8 MB │\n└───────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘\n\nReq/Bytes counts sampled once per second.\n# of samples: 18\n\n4336k requests in 21.07s, 707 MB read\n\n\n# benchmark2\nautocannon -c 1000 -d 20 -p 100 http://localhost:8080/ping\nRunning 20s test @ http://localhost:8080/ping\n1000 connections with 100 pipelining factor\n\nrunning [===============     ] 75%\n┌─────────┬────────┬────────┬────────┬────────┬───────────┬──────────┬─────────┐\n│ Stat    │ 2.5%   │ 50%    │ 97.5%  │ 99%    │ Avg       │ Stdev    │ Max     │\n├─────────┼────────┼────────┼────────┼────────┼───────────┼──────────┼─────────┤\n│ Latency │ 415 ms │ 474 ms │ 514 ms │ 749 ms │ 480.48 ms │ 96.75 ms │ 2031 ms │\n└─────────┴────────┴────────┴────────┴────────┴───────────┴──────────┴─────────┘\n┌───────────┬─────────┬─────────┬─────────┬─────────┬────────────┬───────────┬─────────┐\n│ Stat      │ 1%      │ 2.5%    │ 50%     │ 97.5%   │ Avg        │ Stdev     │ Min     │\n├───────────┼─────────┼─────────┼─────────┼─────────┼────────────┼───────────┼─────────┤\n│ Req/Sec   │ 170,879 │ 170,879 │ 300,031 │ 300,031 │ 290,018.14 │ 32,214.28 │ 170,756 │\n├───────────┼─────────┼─────────┼─────────┼─────────┼────────────┼───────────┼─────────┤\n│ Bytes/Sec │ 28.2 MB │ 28.2 MB │ 49.5 MB │ 49.5 MB │ 47.9 MB    │ 5.32 MB   │ 28.2 MB │\n└───────────┴─────────┴─────────┴─────────┴─────────┴────────────┴───────────┴─────────┘\n\nReq/Bytes counts sampled once per second.\n# of samples: 15\n\n4451k requests in 21.27s, 718 MB read\n\n# benchmark3\nautocannon -c 1000 -d 20 -p 200 http://localhost:8080/ping\nRunning 20s test @ http://localhost:8080/ping\n1000 connections with 200 pipelining factor\n\nrunning [=============       ] 65%\n┌─────────┬────────┬────────┬─────────┬─────────┬───────────┬───────────┬─────────┐\n│ Stat    │ 2.5%   │ 50%    │ 97.5%   │ 99%     │ Avg       │ Stdev     │ Max     │\n├─────────┼────────┼────────┼─────────┼─────────┼───────────┼───────────┼─────────┤\n│ Latency │ 693 ms │ 935 ms │ 1053 ms │ 1808 ms │ 951.09 ms │ 147.13 ms │ 2070 ms │\n└─────────┴────────┴────────┴─────────┴─────────┴───────────┴───────────┴─────────┘\n┌───────────┬─────────┬─────────┬─────────┬─────────┬────────────┬───────────┬─────────┐\n│ Stat      │ 1%      │ 2.5%    │ 50%     │ 97.5%   │ Avg        │ Stdev     │ Min     │\n├───────────┼─────────┼─────────┼─────────┼─────────┼────────────┼───────────┼─────────┤\n│ Req/Sec   │ 94,207  │ 94,207  │ 400,127 │ 400,127 │ 361,070.77 │ 93,573.13 │ 94,161  │\n├───────────┼─────────┼─────────┼─────────┼─────────┼────────────┼───────────┼─────────┤\n│ Bytes/Sec │ 15.5 MB │ 15.5 MB │ 66 MB   │ 66 MB   │ 59.6 MB    │ 15.4 MB   │ 15.5 MB │\n└───────────┴─────────┴─────────┴─────────┴─────────┴────────────┴───────────┴─────────┘\n\nReq/Bytes counts sampled once per second.\n# of samples: 13\n\n4894k requests in 22.95s, 775 MB read\n\n\n# resource using\n|  env   | memory  | cpu  |\n|  ----  | ----  | ----  |\n| general  | 56m | 0 |\n| stress test  | 57m | 230% |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcerjs%2Fgin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcerjs%2Fgin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcerjs%2Fgin/lists"}