# micro-benchmark **Repository Path**: gricks/micro-benchmark ## Basic Information - **Project Name**: micro-benchmark - **Description**: go micro benchmark - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-11-29 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # micro go micro benchmark # install ``` yum install -y httpd-tools ``` # ab ``` ab -q -t 15 -c 1000 http://127.0.0.1:19880/user?name=astone ab -q -t 15 -c 1000 http://127.0.0.1:19881/user/astone ab -q -t 15 -c 1000 -p 'micro/data' http://127.0.0.1:19882/user ``` # http ``` Document Path: /user?name=astone Document Length: 21 bytes Concurrency Level: 1000 Time taken for tests: 2.250 seconds Complete requests: 50000 Failed requests: 0 Write errors: 0 Total transferred: 6900000 bytes HTML transferred: 1050000 bytes Requests per second: 22227.11 [#/sec] (mean) Time per request: 44.990 [ms] (mean) Time per request: 0.045 [ms] (mean, across all concurrent requests) Transfer rate: 2995.45 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 24 90.5 16 1021 Processing: 7 18 4.6 18 42 Waiting: 1 13 4.1 13 34 Total: 19 43 91.0 35 1055 Percentage of the requests served within a certain time (ms) 50% 35 66% 36 75% 37 80% 38 90% 41 95% 46 98% 50 99% 56 100% 1055 (longest request) ``` # gin ``` Document Path: /user/astone Document Length: 20 bytes Concurrency Level: 1000 Time taken for tests: 2.259 seconds Complete requests: 50000 Failed requests: 0 Write errors: 0 Total transferred: 6850000 bytes HTML transferred: 1000000 bytes Requests per second: 22131.46 [#/sec] (mean) Time per request: 45.185 [ms] (mean) Time per request: 0.045 [ms] (mean, across all concurrent requests) Transfer rate: 2960.95 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 24 88.9 16 1020 Processing: 4 19 4.3 19 48 Waiting: 0 14 3.8 14 37 Total: 13 43 89.0 36 1041 Percentage of the requests served within a certain time (ms) 50% 36 66% 38 75% 39 80% 39 90% 41 95% 44 98% 47 99% 53 100% 1041 (longest request) ``` # micro ``` Document Path: /user Document Length: 18 bytes Concurrency Level: 1000 Time taken for tests: 2.234 seconds Complete requests: 50000 Failed requests: 0 Write errors: 0 Non-2xx responses: 50000 Total transferred: 6350000 bytes Total body sent: 7600000 HTML transferred: 900000 bytes Requests per second: 22377.77 [#/sec] (mean) Time per request: 44.687 [ms] (mean) Time per request: 0.045 [ms] (mean, across all concurrent requests) Transfer rate: 2775.37 [Kbytes/sec] received 3321.70 kb/s sent 6097.07 kb/s total Connection Times (ms) min mean[+/-sd] median max Connect: 0 19 10.1 19 1022 Processing: 5 21 5.2 21 49 Waiting: 0 15 4.6 15 37 Total: 17 40 11.5 42 1046 Percentage of the requests served within a certain time (ms) 50% 42 66% 44 75% 45 80% 45 90% 47 95% 51 98% 54 99% 55 100% 1046 (longest request) ```