{"id":16366855,"url":"https://github.com/centminmod/centminmod-buffertests","last_synced_at":"2026-02-17T10:30:18.679Z","repository":{"id":153410069,"uuid":"629304594","full_name":"centminmod/centminmod-buffertests","owner":"centminmod","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-18T09:33:49.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T01:42:06.533Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/centminmod.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":"2023-04-18T03:35:31.000Z","updated_at":"2023-04-18T03:43:39.000Z","dependencies_parsed_at":"2023-07-02T17:15:39.662Z","dependency_job_id":null,"html_url":"https://github.com/centminmod/centminmod-buffertests","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/centminmod%2Fcentminmod-buffertests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centminmod%2Fcentminmod-buffertests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centminmod%2Fcentminmod-buffertests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centminmod%2Fcentminmod-buffertests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/centminmod","download_url":"https://codeload.github.com/centminmod/centminmod-buffertests/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239828593,"owners_count":19703902,"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-10-11T02:47:47.043Z","updated_at":"2026-02-17T10:30:18.628Z","avatar_url":"https://github.com/centminmod.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# setup\n\n* https://github.com/centminmod/wrk/tree/centminmod\n\n```\ngit clone -b centminmod https://github.com/centminmod/wrk wrk-cmm\ncd wrk-cmm\nmake\n\\cp -af wrk /usr/local/bin/wrk-cmm\nln -s /usr/local/bin/wrk-cmm /usr/local/bin/wrk\n```\n```\necho \u003e /usr/local/nginx/html/index.php\nnprestart\ncurl -I http://localhost/index.php\n```\n\n# benchmark run\n\n```\ngit clone https://github.com/centminmod/centminmod-buffertests\ncd centminmod-buffertests\ntime ./buffertest.sh\n```\n\nThe `buffertest.sh` by default logs `ss` stats for port `80` and PHP-FPM port `9000` according to `ss -e -t -i -p \"( sport = :80 or sport = :9000 )\"`. If you plan to test with HTTPS port `443`, adjust accordingly.\n\nOutput for `testlogs/buffertest-rmem_max-16777216-wmem_max-16777216.log`\n\n\n```\ncat testlogs/buffertest-rmem_max-16777216-wmem_max-16777216-1.log\nRunning 3s test @ http://localhost/index.php\n  2 threads and 100 connections\n  Thread Stats   Avg     Stdev       Max       Min   +/- Stdev\n    Latency     3.03ms    1.34ms   16.26ms  218.00us   79.18%\n    Connect   692.49us  380.32us    1.45ms   82.00us   57.00%\n    TTFB        3.02ms    1.34ms   16.26ms  216.00us   79.21%\n    TTLB        3.19us   36.20us    7.47ms    0.00us   99.26%\n    Req/Sec    16.30k     1.34k    19.50k    12.15k    78.33%\n  97397 requests in 3.01s, 21.74MB read\nRequests/sec:  32394.33\nTransfer/sec:      7.23MB\n\nJSON Output\n-----------\n\n{\n        \"requests\": 97397,\n        \"duration_in_microseconds\": 3006606.00,\n        \"bytes\": 22790898,\n        \"requests_per_sec\": 32394.33,\n        \"bytes_transfer_per_sec\": 7580274.24,\n        \"latency_distribution\": [\n                {\n                        \"percentile\": 50,\n                        \"latency_in_microseconds\": 2960\n                },\n                {\n                        \"percentile\": 75,\n                        \"latency_in_microseconds\": 3716\n                },\n                {\n                        \"percentile\": 90,\n                        \"latency_in_microseconds\": 4311\n                },\n                {\n                        \"percentile\": 99,\n                        \"latency_in_microseconds\": 8215\n                },\n                {\n                        \"percentile\": 99.999,\n                        \"latency_in_microseconds\": 16261\n                }\n        ]\n}\n```\n\nJSON output only\n\n```\ncat testlogs/buffertest-rmem_max-16777216-wmem_max-16777216-1.json \n{\n  \"requests\": 97397,\n  \"duration_in_microseconds\": 3006606.00,\n  \"bytes\": 22790898,\n  \"requests_per_sec\": 32394.33,\n  \"bytes_transfer_per_sec\": 7580274.24,\n  \"latency_distribution\": [\n    {\n      \"percentile\": 50,\n      \"latency_in_microseconds\": 2960\n    },\n    {\n      \"percentile\": 75,\n      \"latency_in_microseconds\": 3716\n    },\n    {\n      \"percentile\": 90,\n      \"latency_in_microseconds\": 4311\n    },\n    {\n      \"percentile\": 99,\n      \"latency_in_microseconds\": 8215\n    },\n    {\n      \"percentile\": 99.999,\n      \"latency_in_microseconds\": 16261\n    }\n  ]\n}\n```\n\n# Generate table\n\nThe `buffertest.sh` run will generate wrk JSON log files:\n\n```\nls -1rt testlogs/*.json\ntestlogs/buffertest-rmem_max-262144-wmem_max-262144-1.json\ntestlogs/buffertest-rmem_max-262144-wmem_max-262144-2.json\ntestlogs/buffertest-rmem_max-262144-wmem_max-262144-3.json\ntestlogs/buffertest-rmem_max-262144-wmem_max-262144-4.json\ntestlogs/buffertest-rmem_max-262144-wmem_max-262144-5.json\ntestlogs/buffertest-rmem_max-524288-wmem_max-524288-1.json\ntestlogs/buffertest-rmem_max-524288-wmem_max-524288-2.json\ntestlogs/buffertest-rmem_max-524288-wmem_max-524288-3.json\ntestlogs/buffertest-rmem_max-524288-wmem_max-524288-4.json\ntestlogs/buffertest-rmem_max-524288-wmem_max-524288-5.json\ntestlogs/buffertest-rmem_max-1048576-wmem_max-1048576-1.json\ntestlogs/buffertest-rmem_max-1048576-wmem_max-1048576-2.json\ntestlogs/buffertest-rmem_max-1048576-wmem_max-1048576-3.json\ntestlogs/buffertest-rmem_max-1048576-wmem_max-1048576-4.json\ntestlogs/buffertest-rmem_max-1048576-wmem_max-1048576-5.json\ntestlogs/buffertest-rmem_max-2097152-wmem_max-2097152-1.json\ntestlogs/buffertest-rmem_max-2097152-wmem_max-2097152-2.json\ntestlogs/buffertest-rmem_max-2097152-wmem_max-2097152-3.json\ntestlogs/buffertest-rmem_max-2097152-wmem_max-2097152-4.json\ntestlogs/buffertest-rmem_max-2097152-wmem_max-2097152-5.json\ntestlogs/buffertest-rmem_max-4194304-wmem_max-4194304-1.json\ntestlogs/buffertest-rmem_max-4194304-wmem_max-4194304-2.json\ntestlogs/buffertest-rmem_max-4194304-wmem_max-4194304-3.json\ntestlogs/buffertest-rmem_max-4194304-wmem_max-4194304-4.json\ntestlogs/buffertest-rmem_max-4194304-wmem_max-4194304-5.json\ntestlogs/buffertest-rmem_max-8388608-wmem_max-8388608-1.json\ntestlogs/buffertest-rmem_max-8388608-wmem_max-8388608-2.json\ntestlogs/buffertest-rmem_max-8388608-wmem_max-8388608-3.json\ntestlogs/buffertest-rmem_max-8388608-wmem_max-8388608-4.json\ntestlogs/buffertest-rmem_max-8388608-wmem_max-8388608-5.json\ntestlogs/buffertest-rmem_max-16777216-wmem_max-16777216-1.json\ntestlogs/buffertest-rmem_max-16777216-wmem_max-16777216-2.json\ntestlogs/buffertest-rmem_max-16777216-wmem_max-16777216-3.json\ntestlogs/buffertest-rmem_max-16777216-wmem_max-16777216-4.json\ntestlogs/buffertest-rmem_max-16777216-wmem_max-16777216-5.json\n```\n\nThe `generate-table.sh` script will aggregrate all the work JSON log files into a markdown format table:\n\n```\n./generate-table.sh \n\n| rmem_max | wmem_max | run | requests | duration_in_microseconds | bytes | requests_per_sec | bytes_transfer_per_sec | 50% latency | 75% latency | 90% latency | 99% latency | 99.999% latency |\n|----------|----------|-----|----------|-------------------------|-------|-----------------|-----------------------|-------------|-------------|-------------|-------------|-----------------|\n| 262144 | 262144 | 1 | 63551 | 3001455.00 | 14870934 | 21173.40 | 4954575.03 | 4672 | 4913 | 5312 | 6773 | 16789 |\n| 262144 | 262144 | 2 | 97047 | 3105272.00 | 22708998 | 31252.33 | 7313046.33 | 3136 | 3877 | 4446 | 10389 | 39666 |\n| 262144 | 262144 | 3 | 97954 | 3019051.00 | 22921236 | 32445.29 | 7592199.01 | 2965 | 3559 | 4085 | 7209 | 15906 |\n| 262144 | 262144 | 4 | 93625 | 3029567.00 | 21908250 | 30903.76 | 7231478.95 | 3092 | 3848 | 4525 | 27004 | 58266 |\n| 262144 | 262144 | 5 | 96732 | 3016724.00 | 22635288 | 32065.25 | 7503267.78 | 2989 | 3705 | 4256 | 8075 | 24242 |\n| 262144 | 262144 | avg | 89781.80 | 3034413.80 | 21008941.20 | 29568.00 | 6918913.42 | 3370.80 | 3980.40 | 4524.80 | 11890.00 | 30973.80 |\n| 524288 | 524288 | 1 | 84337 | 3003476.00 | 19734858 | 28079.80 | 6570672.78 | 3531 | 3781 | 4023 | 5842 | 16058 |\n| 524288 | 524288 | 2 | 89113 | 3023020.00 | 20852442 | 29478.14 | 6897884.23 | 3085 | 3823 | 5699 | 181706 | 227811 |\n| 524288 | 524288 | 3 | 97743 | 3005705.00 | 22871862 | 32519.16 | 7609483.30 | 2970 | 3547 | 4040 | 6362 | 14061 |\n| 524288 | 524288 | 4 | 94375 | 3028438.00 | 22083750 | 31162.93 | 7292125.51 | 2948 | 3757 | 4551 | 13155 | 29096 |\n| 524288 | 524288 | 5 | 93776 | 3078464.00 | 21943584 | 30461.94 | 7128095.05 | 2988 | 3780 | 4755 | 80573 | 117008 |\n| 524288 | 524288 | avg | 91868.80 | 3027820.60 | 21497299.20 | 30340.39 | 7099652.17 | 3104.40 | 3737.60 | 4613.60 | 57527.60 | 80806.80 |\n| 1048576 | 1048576 | 1 | 97735 | 3009918.00 | 22869990 | 32470.98 | 7598210.32 | 2922 | 3664 | 4267 | 9120 | 22512 |\n| 1048576 | 1048576 | 2 | 94869 | 3071638.00 | 22199346 | 30885.48 | 7227201.25 | 2975 | 3730 | 4713 | 51239 | 91018 |\n| 1048576 | 1048576 | 3 | 97460 | 3003363.00 | 22805640 | 32450.29 | 7593367.83 | 2979 | 3554 | 4071 | 7125 | 20104 |\n| 1048576 | 1048576 | 4 | 94827 | 3004829.00 | 22189518 | 31558.20 | 7384619.22 | 3003 | 3724 | 4370 | 10651 | 24080 |\n| 1048576 | 1048576 | 5 | 97318 | 3105414.00 | 22772412 | 31338.17 | 7333132.39 | 3027 | 3806 | 4470 | 10827 | 29620 |\n| 1048576 | 1048576 | avg | 96441.80 | 3039032.40 | 22567381.20 | 31740.62 | 7427306.20 | 2981.20 | 3695.60 | 4378.20 | 17792.40 | 37466.80 |\n| 2097152 | 2097152 | 1 | 97434 | 3009488.00 | 22799556 | 32375.61 | 7575891.98 | 2936 | 3693 | 4314 | 8317 | 24905 |\n| 2097152 | 2097152 | 2 | 85072 | 3021270.00 | 19906848 | 28157.70 | 6588900.69 | 3085 | 3936 | 13005 | 314501 | 354925 |\n| 2097152 | 2097152 | 3 | 97964 | 3004481.00 | 22923576 | 32605.96 | 7629795.63 | 2957 | 3553 | 4049 | 6240 | 18521 |\n| 2097152 | 2097152 | 4 | 87844 | 3036337.00 | 20555496 | 28930.91 | 6769833.52 | 3124 | 3949 | 7115 | 171223 | 278625 |\n| 2097152 | 2097152 | 5 | 93785 | 3060001.00 | 21945690 | 30648.68 | 7171791.77 | 3061 | 3796 | 4498 | 55082 | 98872 |\n| 2097152 | 2097152 | avg | 92419.80 | 3026315.40 | 21626233.20 | 30543.77 | 7147242.71 | 3032.60 | 3785.40 | 6596.20 | 111072.60 | 155169.60 |\n| 4194304 | 4194304 | 1 | 96777 | 3012000.00 | 22645818 | 32130.48 | 7518531.87 | 2966 | 3788 | 4394 | 10997 | 22967 |\n| 4194304 | 4194304 | 2 | 95136 | 3015311.00 | 22261824 | 31550.97 | 7382928.00 | 3018 | 3705 | 4365 | 10241 | 18304 |\n| 4194304 | 4194304 | 3 | 98410 | 3008056.00 | 23027940 | 32715.48 | 7655422.64 | 2835 | 3520 | 4138 | 7120 | 15593 |\n| 4194304 | 4194304 | 4 | 96254 | 3030577.00 | 22523436 | 31760.95 | 7432061.95 | 2931 | 3564 | 4210 | 9512 | 27812 |\n| 4194304 | 4194304 | 5 | 88479 | 3075820.00 | 20704086 | 28765.99 | 6731241.10 | 3062 | 3894 | 7362 | 177823 | 230648 |\n| 4194304 | 4194304 | avg | 95011.20 | 3028352.80 | 22232620.80 | 31384.77 | 7344037.11 | 2962.40 | 3694.20 | 4893.80 | 43138.60 | 63064.80 |\n| 8388608 | 8388608 | 1 | 97575 | 3014280.00 | 22832550 | 32370.91 | 7574793.98 | 2924 | 3619 | 4225 | 8483 | 32516 |\n| 8388608 | 8388608 | 2 | 92516 | 3003261.00 | 21648744 | 30805.18 | 7208412.46 | 2940 | 3710 | 4774 | 71850 | 106363 |\n| 8388608 | 8388608 | 3 | 98459 | 3006215.00 | 23039406 | 32751.82 | 7663924.90 | 2876 | 3530 | 4092 | 9722 | 33934 |\n| 8388608 | 8388608 | 4 | 94882 | 3012008.00 | 22202506 | 31501.24 | 7371330.36 | 3044 | 3678 | 4294 | 9496 | 19624 |\n| 8388608 | 8388608 | 5 | 93832 | 3076735.00 | 21956688 | 30497.26 | 7136359.81 | 3060 | 3864 | 4685 | 60110 | 92268 |\n| 8388608 | 8388608 | avg | 95452.80 | 3022499.80 | 22335978.80 | 31585.28 | 7390964.30 | 2968.80 | 3680.20 | 4414.00 | 31932.20 | 56941.00 |\n| 16777216 | 16777216 | 1 | 97750 | 3001686.00 | 22873500 | 32565.03 | 7620217.44 | 2811 | 3656 | 4361 | 13995 | 60075 |\n| 16777216 | 16777216 | 2 | 98452 | 3103751.00 | 23037768 | 31720.33 | 7422556.77 | 2819 | 3602 | 4396 | 19046 | 54174 |\n| 16777216 | 16777216 | 3 | 98467 | 3009658.00 | 23041278 | 32717.01 | 7655779.49 | 2825 | 3536 | 4160 | 8057 | 22243 |\n| 16777216 | 16777216 | 4 | 89319 | 3042886.00 | 20900646 | 29353.38 | 6868691.76 | 3069 | 3806 | 5150 | 179597 | 221400 |\n| 16777216 | 16777216 | 5 | 94874 | 3005368.00 | 22200516 | 31568.18 | 7386954.28 | 3031 | 3761 | 4356 | 9287 | 24257 |\n| 16777216 | 16777216 | avg | 95772.40 | 3032669.80 | 22410741.60 | 31584.78 | 7390839.94 | 2911.00 | 3672.20 | 4484.60 | 45996.40 | 76429.80 |\n\nAverages only:\n| rmem_max | wmem_max | run | requests | duration_in_microseconds | bytes | requests_per_sec | bytes_transfer_per_sec | 50% latency | 75% latency | 90% latency | 99% latency | 99.999% latency |\n|----------|----------|-----|----------|-------------------------|-------|-----------------|-----------------------|-------------|-------------|-------------|-------------|-----------------|\n| 262144 | 262144 | avg | 89781.80 | 3034413.80 | 21008941.20 | 29568.00 | 6918913.42 | 3370.80 | 3980.40 | 4524.80 | 11890.00 | 30973.80 |\n| 524288 | 524288 | avg | 91868.80 | 3027820.60 | 21497299.20 | 30340.39 | 7099652.17 | 3104.40 | 3737.60 | 4613.60 | 57527.60 | 80806.80 |\n| 1048576 | 1048576 | avg | 96441.80 | 3039032.40 | 22567381.20 | 31740.62 | 7427306.20 | 2981.20 | 3695.60 | 4378.20 | 17792.40 | 37466.80 |\n| 2097152 | 2097152 | avg | 92419.80 | 3026315.40 | 21626233.20 | 30543.77 | 7147242.71 | 3032.60 | 3785.40 | 6596.20 | 111072.60 | 155169.60 |\n| 4194304 | 4194304 | avg | 95011.20 | 3028352.80 | 22232620.80 | 31384.77 | 7344037.11 | 2962.40 | 3694.20 | 4893.80 | 43138.60 | 63064.80 |\n| 8388608 | 8388608 | avg | 95452.80 | 3022499.80 | 22335978.80 | 31585.28 | 7390964.30 | 2968.80 | 3680.20 | 4414.00 | 31932.20 | 56941.00 |\n| 16777216 | 16777216 | avg | 95772.40 | 3032669.80 | 22410741.60 | 31584.78 | 7390839.94 | 2911.00 | 3672.20 | 4484.60 | 45996.40 | 76429.80 |\n```\n\n| rmem_max | wmem_max | run | requests | duration_in_microseconds | bytes | requests_per_sec | bytes_transfer_per_sec | 50% latency | 75% latency | 90% latency | 99% latency | 99.999% latency |\n|----------|----------|-----|----------|-------------------------|-------|-----------------|-----------------------|-------------|-------------|-------------|-------------|-----------------|\n| 262144 | 262144 | 1 | 63551 | 3001455.00 | 14870934 | 21173.40 | 4954575.03 | 4672 | 4913 | 5312 | 6773 | 16789 |\n| 262144 | 262144 | 2 | 97047 | 3105272.00 | 22708998 | 31252.33 | 7313046.33 | 3136 | 3877 | 4446 | 10389 | 39666 |\n| 262144 | 262144 | 3 | 97954 | 3019051.00 | 22921236 | 32445.29 | 7592199.01 | 2965 | 3559 | 4085 | 7209 | 15906 |\n| 262144 | 262144 | 4 | 93625 | 3029567.00 | 21908250 | 30903.76 | 7231478.95 | 3092 | 3848 | 4525 | 27004 | 58266 |\n| 262144 | 262144 | 5 | 96732 | 3016724.00 | 22635288 | 32065.25 | 7503267.78 | 2989 | 3705 | 4256 | 8075 | 24242 |\n| 262144 | 262144 | avg | 89781.80 | 3034413.80 | 21008941.20 | 29568.00 | 6918913.42 | 3370.80 | 3980.40 | 4524.80 | 11890.00 | 30973.80 |\n| 524288 | 524288 | 1 | 84337 | 3003476.00 | 19734858 | 28079.80 | 6570672.78 | 3531 | 3781 | 4023 | 5842 | 16058 |\n| 524288 | 524288 | 2 | 89113 | 3023020.00 | 20852442 | 29478.14 | 6897884.23 | 3085 | 3823 | 5699 | 181706 | 227811 |\n| 524288 | 524288 | 3 | 97743 | 3005705.00 | 22871862 | 32519.16 | 7609483.30 | 2970 | 3547 | 4040 | 6362 | 14061 |\n| 524288 | 524288 | 4 | 94375 | 3028438.00 | 22083750 | 31162.93 | 7292125.51 | 2948 | 3757 | 4551 | 13155 | 29096 |\n| 524288 | 524288 | 5 | 93776 | 3078464.00 | 21943584 | 30461.94 | 7128095.05 | 2988 | 3780 | 4755 | 80573 | 117008 |\n| 524288 | 524288 | avg | 91868.80 | 3027820.60 | 21497299.20 | 30340.39 | 7099652.17 | 3104.40 | 3737.60 | 4613.60 | 57527.60 | 80806.80 |\n| 1048576 | 1048576 | 1 | 97735 | 3009918.00 | 22869990 | 32470.98 | 7598210.32 | 2922 | 3664 | 4267 | 9120 | 22512 |\n| 1048576 | 1048576 | 2 | 94869 | 3071638.00 | 22199346 | 30885.48 | 7227201.25 | 2975 | 3730 | 4713 | 51239 | 91018 |\n| 1048576 | 1048576 | 3 | 97460 | 3003363.00 | 22805640 | 32450.29 | 7593367.83 | 2979 | 3554 | 4071 | 7125 | 20104 |\n| 1048576 | 1048576 | 4 | 94827 | 3004829.00 | 22189518 | 31558.20 | 7384619.22 | 3003 | 3724 | 4370 | 10651 | 24080 |\n| 1048576 | 1048576 | 5 | 97318 | 3105414.00 | 22772412 | 31338.17 | 7333132.39 | 3027 | 3806 | 4470 | 10827 | 29620 |\n| 1048576 | 1048576 | avg | 96441.80 | 3039032.40 | 22567381.20 | 31740.62 | 7427306.20 | 2981.20 | 3695.60 | 4378.20 | 17792.40 | 37466.80 |\n| 2097152 | 2097152 | 1 | 97434 | 3009488.00 | 22799556 | 32375.61 | 7575891.98 | 2936 | 3693 | 4314 | 8317 | 24905 |\n| 2097152 | 2097152 | 2 | 85072 | 3021270.00 | 19906848 | 28157.70 | 6588900.69 | 3085 | 3936 | 13005 | 314501 | 354925 |\n| 2097152 | 2097152 | 3 | 97964 | 3004481.00 | 22923576 | 32605.96 | 7629795.63 | 2957 | 3553 | 4049 | 6240 | 18521 |\n| 2097152 | 2097152 | 4 | 87844 | 3036337.00 | 20555496 | 28930.91 | 6769833.52 | 3124 | 3949 | 7115 | 171223 | 278625 |\n| 2097152 | 2097152 | 5 | 93785 | 3060001.00 | 21945690 | 30648.68 | 7171791.77 | 3061 | 3796 | 4498 | 55082 | 98872 |\n| 2097152 | 2097152 | avg | 92419.80 | 3026315.40 | 21626233.20 | 30543.77 | 7147242.71 | 3032.60 | 3785.40 | 6596.20 | 111072.60 | 155169.60 |\n| 4194304 | 4194304 | 1 | 96777 | 3012000.00 | 22645818 | 32130.48 | 7518531.87 | 2966 | 3788 | 4394 | 10997 | 22967 |\n| 4194304 | 4194304 | 2 | 95136 | 3015311.00 | 22261824 | 31550.97 | 7382928.00 | 3018 | 3705 | 4365 | 10241 | 18304 |\n| 4194304 | 4194304 | 3 | 98410 | 3008056.00 | 23027940 | 32715.48 | 7655422.64 | 2835 | 3520 | 4138 | 7120 | 15593 |\n| 4194304 | 4194304 | 4 | 96254 | 3030577.00 | 22523436 | 31760.95 | 7432061.95 | 2931 | 3564 | 4210 | 9512 | 27812 |\n| 4194304 | 4194304 | 5 | 88479 | 3075820.00 | 20704086 | 28765.99 | 6731241.10 | 3062 | 3894 | 7362 | 177823 | 230648 |\n| 4194304 | 4194304 | avg | 95011.20 | 3028352.80 | 22232620.80 | 31384.77 | 7344037.11 | 2962.40 | 3694.20 | 4893.80 | 43138.60 | 63064.80 |\n| 8388608 | 8388608 | 1 | 97575 | 3014280.00 | 22832550 | 32370.91 | 7574793.98 | 2924 | 3619 | 4225 | 8483 | 32516 |\n| 8388608 | 8388608 | 2 | 92516 | 3003261.00 | 21648744 | 30805.18 | 7208412.46 | 2940 | 3710 | 4774 | 71850 | 106363 |\n| 8388608 | 8388608 | 3 | 98459 | 3006215.00 | 23039406 | 32751.82 | 7663924.90 | 2876 | 3530 | 4092 | 9722 | 33934 |\n| 8388608 | 8388608 | 4 | 94882 | 3012008.00 | 22202506 | 31501.24 | 7371330.36 | 3044 | 3678 | 4294 | 9496 | 19624 |\n| 8388608 | 8388608 | 5 | 93832 | 3076735.00 | 21956688 | 30497.26 | 7136359.81 | 3060 | 3864 | 4685 | 60110 | 92268 |\n| 8388608 | 8388608 | avg | 95452.80 | 3022499.80 | 22335978.80 | 31585.28 | 7390964.30 | 2968.80 | 3680.20 | 4414.00 | 31932.20 | 56941.00 |\n| 16777216 | 16777216 | 1 | 97750 | 3001686.00 | 22873500 | 32565.03 | 7620217.44 | 2811 | 3656 | 4361 | 13995 | 60075 |\n| 16777216 | 16777216 | 2 | 98452 | 3103751.00 | 23037768 | 31720.33 | 7422556.77 | 2819 | 3602 | 4396 | 19046 | 54174 |\n| 16777216 | 16777216 | 3 | 98467 | 3009658.00 | 23041278 | 32717.01 | 7655779.49 | 2825 | 3536 | 4160 | 8057 | 22243 |\n| 16777216 | 16777216 | 4 | 89319 | 3042886.00 | 20900646 | 29353.38 | 6868691.76 | 3069 | 3806 | 5150 | 179597 | 221400 |\n| 16777216 | 16777216 | 5 | 94874 | 3005368.00 | 22200516 | 31568.18 | 7386954.28 | 3031 | 3761 | 4356 | 9287 | 24257 |\n| 16777216 | 16777216 | avg | 95772.40 | 3032669.80 | 22410741.60 | 31584.78 | 7390839.94 | 2911.00 | 3672.20 | 4484.60 | 45996.40 | 76429.80 |\n\nAverages only:\n| rmem_max | wmem_max | run | requests | duration_in_microseconds | bytes | requests_per_sec | bytes_transfer_per_sec | 50% latency | 75% latency | 90% latency | 99% latency | 99.999% latency |\n|----------|----------|-----|----------|-------------------------|-------|-----------------|-----------------------|-------------|-------------|-------------|-------------|-----------------|\n| 262144 | 262144 | avg | 89781.80 | 3034413.80 | 21008941.20 | 29568.00 | 6918913.42 | 3370.80 | 3980.40 | 4524.80 | 11890.00 | 30973.80 |\n| 524288 | 524288 | avg | 91868.80 | 3027820.60 | 21497299.20 | 30340.39 | 7099652.17 | 3104.40 | 3737.60 | 4613.60 | 57527.60 | 80806.80 |\n| 1048576 | 1048576 | avg | 96441.80 | 3039032.40 | 22567381.20 | 31740.62 | 7427306.20 | 2981.20 | 3695.60 | 4378.20 | 17792.40 | 37466.80 |\n| 2097152 | 2097152 | avg | 92419.80 | 3026315.40 | 21626233.20 | 30543.77 | 7147242.71 | 3032.60 | 3785.40 | 6596.20 | 111072.60 | 155169.60 |\n| 4194304 | 4194304 | avg | 95011.20 | 3028352.80 | 22232620.80 | 31384.77 | 7344037.11 | 2962.40 | 3694.20 | 4893.80 | 43138.60 | 63064.80 |\n| 8388608 | 8388608 | avg | 95452.80 | 3022499.80 | 22335978.80 | 31585.28 | 7390964.30 | 2968.80 | 3680.20 | 4414.00 | 31932.20 | 56941.00 |\n| 16777216 | 16777216 | avg | 95772.40 | 3032669.80 | 22410741.60 | 31584.78 | 7390839.94 | 2911.00 | 3672.20 | 4484.60 | 45996.40 | 76429.80 |\n\n# ss json output explained\n\n* `state`: the current state of the TCP connection\n* `local_address_port`: the local IP address and port number of the connection\n* `peer_address_port`: the peer IP address and port number of the connection\n* `uid`: the user ID that owns the socket\n* `pmtu`: the Path Maximum Transmission Unit (PMTU) of the connection\n* `rcvmss`: the maximum segment size that can be received by the connection\n* `advmss`: the maximum segment size that can be advertised by the connection\n* `cwnd`: the size of the congestion window\n* `ssthresh`: the slow start threshold\n* `bytessent`: the total number of bytes sent by the connection\n* `bytesretrans`: the total number of bytes retransmitted by the connection\n* `bytesacked`: the total number of bytes acknowledged by the receiver\n* `bytesreceived`: the total number of bytes received by the connection\n* `segsout`: the total number of segments sent by the connection\n* `segsin`: the total number of segments received by the connection\n* `datasegsout`: the total number of data segments sent by the connection\n* `datasegsin`: the total number of data segments received by the connection\n* `lastsnd`: the timestamp of the last segment sent by the connection\n* `lastrcv`: the timestamp of the last segment received by the connection\n* `lastack`: the timestamp of the last acknowledgment received by the connection\n* `delivered`: the total number of segments delivered to the application\n* `busy`: the duration of the connection in milliseconds\n* `retrans`: the number of retransmissions and the total number of segments transmitted\n* `dsackdups`: the number of duplicate selective acknowledgments received by the connection\n* `reordseen`: the number of reordered segments received by the connection\n* `rcvrtt`: the estimated round trip time of the connection\n* `rcvspace`: the receive window size of the connection\n* `rcvssthresh`: the receive slow start threshold of the connection\n* `minrtt`: the minimum round trip time of the connection\n* `sndwnd`: the send window size of the connection\n\n```\ncat testlogs/ss_output-rmem_max-16777216-wmem_max-16777216.log | jq -c '.[]' | tail -4 | jq -r\n\n{\n  \"state\": \"FIN-WAIT-1\",\n  \"local_address_port\": \"127.0.0.1:9000\",\n  \"peer_address_port\": \"127.0.0.1:45608\",\n  \"uid\": \"ino:33512991\",\n  \"sk\": \"8e4f\"\n}\n{\n  \"state\": \"ts\",\n  \"local_address_port\": \"wscale:9,9\",\n  \"peer_address_port\": \"rto:201\",\n  \"uid\": \"mss:22016\",\n  \"pmtu\": \"65535\",\n  \"rcvmss\": \"808\",\n  \"advmss\": \"65483\",\n  \"cwnd\": \"10\",\n  \"bytessent\": \"72\",\n  \"bytesacked\": \"72\",\n  \"bytesreceived\": \"808\",\n  \"segsout\": \"3\",\n  \"segsin\": \"4\",\n  \"datasegsout\": \"1\",\n  \"datasegsin\": \"1\",\n  \"delivered\": \"2\",\n  \"unacked\": \"1\",\n  \"rcvrtt\": \"1\",\n  \"rcvspace\": \"43690\",\n  \"rcvssthresh\": \"45306\",\n  \"minrtt\": \"0.013\",\n  \"sndwnd\": \"44032\"\n}\n{\n  \"state\": \"ESTAB\",\n  \"local_address_port\": \"127.0.0.1:http\",\n  \"peer_address_port\": \"127.0.0.1:15918\",\n  \"uid\": \"ino:33375789\",\n  \"sk\": \"e47d\"\n}\n{\n  \"state\": \"ts\",\n  \"local_address_port\": \"wscale:9,9\",\n  \"peer_address_port\": \"rto:201\",\n  \"uid\": \"mss:65483\",\n  \"pmtu\": \"65535\",\n  \"rcvmss\": \"536\",\n  \"advmss\": \"65483\",\n  \"cwnd\": \"10\",\n  \"bytessent\": \"124254\",\n  \"bytesacked\": \"124254\",\n  \"bytesreceived\": \"23408\",\n  \"segsout\": \"532\",\n  \"segsin\": \"535\",\n  \"datasegsout\": \"531\",\n  \"datasegsin\": \"532\",\n  \"lastsnd\": \"3\",\n  \"lastrcv\": \"1\",\n  \"lastack\": \"1\",\n  \"delivered\": \"532\",\n  \"busy\": \"349ms\",\n  \"rcvspace\": \"43690\",\n  \"rcvssthresh\": \"43690\",\n  \"minrtt\": \"0.008\",\n  \"sndwnd\": \"613376\"\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcentminmod%2Fcentminmod-buffertests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcentminmod%2Fcentminmod-buffertests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcentminmod%2Fcentminmod-buffertests/lists"}