v0.1.5版本
优化海量链接内存占用。
现在100w个websocket链接, 1k payload测试,内存占用在550MB-750MB之间。
TPS scenario testing
greatws runs on I/O goroutines-greatws bind mode
sec: 1, recv-count: 307822, send-count:317835 recv-tps: 307822, send-tps: 317835
sec: 2, recv-count: 786695, send-count:796704 recv-tps: 393347, send-tps: 398352
sec: 3, recv-count: 1268032, send-count:1278040 recv-tps: 422677, send-tps: 426013
sec: 4, recv-count: 1746940, send-count:1756946 recv-tps: 436735, send-tps: 439236
sec: 5, recv-count: 2225502, send-count:2235502 recv-tps: 445100, send-tps: 447100
sec: 6, recv-count: 2700429, send-count:2710433 recv-tps: 450071, send-tps: 451738
sec: 7, recv-count: 3172700, send-count:3182709 recv-tps: 453242, send-tps: 454672
sec: 8, recv-count: 3645079, send-count:3655107 recv-tps: 455634, send-tps: 456888
sec: 9, recv-count: 4116866, send-count:4126881 recv-tps: 457429, send-tps: 458542
sec: 10, recv-count: 4582197, send-count:4592201 recv-tps: 458219, send-tps: 459220
sec: 11, recv-count: 5050081, send-count:5060092 recv-tps: 459098, send-tps: 460008
sec: 12, recv-count: 5513277, send-count:5523293 recv-tps: 459439, send-tps: 460274
sec: 13, recv-count: 5978689, send-count:5988697 recv-tps: 459899, send-tps: 460669
sec: 14, recv-count: 6438536, send-count:6448551 recv-tps: 459895, send-tps: 460610
sec: 15, recv-count: 6900040, send-count:6910056 recv-tps: 460002, send-tps: 460670
sec: 16, recv-count: 7361932, send-count:7371941 recv-tps: 460120, send-tps: 460746
sec: 17, recv-count: 7825414, send-count:7835421 recv-tps: 460318, send-tps: 460907
sec: 18, recv-count: 8290431, send-count:8300435 recv-tps: 460579, send-tps: 461135
sec: 19, recv-count: 8750709, send-count:8760714 recv-tps: 460563, send-tps: 461090
sec: 20, recv-count: 9210855, send-count:9220860 recv-tps: 460542, send-tps: 461043
sec: 21, recv-count: 9672875, send-count:9682879 recv-tps: 460613, send-tps: 461089
sec: 22, recv-count: 10133781, send-count:10143792 recv-tps: 460626, send-tps: 461081
sec: 23, recv-count: 10595164, send-count:10605172 recv-tps: 460659, send-tps: 461094
sec: 24, recv-count: 11057541, send-count:11067550 recv-tps: 460730, send-tps: 461147
sec: 25, recv-count: 11522684, send-count:11533937 recv-tps: 460907, send-tps: 461357
sec: 26, recv-count: 11988151, send-count:11998161 recv-tps: 461082, send-tps: 461467
sec: 27, recv-count: 12443921, send-count:12453923 recv-tps: 460885, send-tps: 461256
sec: 28, recv-count: 12904652, send-count:12914657 recv-tps: 460880, send-tps: 461237
sec: 29, recv-count: 13366010, send-count:13376010 recv-tps: 460896, send-tps: 461241
sec: 30, recv-count: 13824136, send-count:13834140 recv-tps: 460804, send-tps: 461138
sec: 31, recv-count: 14285688, send-count:14295710 recv-tps: 460828, send-tps: 461151
sec: 32, recv-count: 14746441, send-count:14756492 recv-tps: 460826, send-tps: 461140
sec: 33, recv-count: 15204963, send-count:15217891 recv-tps: 460756, send-tps: 461148
sec: 34, recv-count: 15665055, send-count:15675064 recv-tps: 460736, send-tps: 461031
sec: 35, recv-count: 16128276, send-count:16138288 recv-tps: 460807, send-tps: 461093
sec: 36, recv-count: 16589948, send-count:16599953 recv-tps: 460831, send-tps: 461109
sec: 37, recv-count: 17050788, send-count:17060803 recv-tps: 460832, send-tps: 461102
sec: 38, recv-count: 17504871, send-count:17515001 recv-tps: 460654, send-tps: 460921
sec: 39, recv-count: 17963182, send-count:17973199 recv-tps: 460594, send-tps: 460851
sec: 40, recv-count: 18410899, send-count:18420910 recv-tps: 460272, send-tps: 460522
sec: 41, recv-count: 18868794, send-count:18878799 recv-tps: 460214, send-tps: 460458
sec: 42, recv-count: 19321558, send-count:19331562 recv-tps: 460037, send-tps: 460275
sec: 43, recv-count: 19772633, send-count:19782643 recv-tps: 459828, send-tps: 460061
sec: 44, recv-count: 20224279, send-count:20234291 recv-tps: 459642, send-tps: 459870
sec: 45, recv-count: 20679457, send-count:20689465 recv-tps: 459543, send-tps: 459765
sec: 46, recv-count: 21127462, send-count:21137464 recv-tps: 459292, send-tps: 459510
sec: 47, recv-count: 21576904, send-count:21586944 recv-tps: 459083, send-tps: 459296
sec: 48, recv-count: 22027452, send-count:22037455 recv-tps: 458905, send-tps: 459113
sec: 49, recv-count: 22478469, send-count:22488476 recv-tps: 458744, send-tps: 458948
sec: 50, recv-count: 22918383, send-count:22928395 recv-tps: 458367, send-tps: 458567
sec: 51, recv-count: 23366831, send-count:23376835 recv-tps: 458173, send-tps: 458369
sec: 52, recv-count: 23812885, send-count:23822893 recv-tps: 457940, send-tps: 458132
sec: 53, recv-count: 24267698, send-count:24277711 recv-tps: 457881, send-tps: 458070
sec: 54, recv-count: 24712368, send-count:24722379 recv-tps: 457636, send-tps: 457821
sec: 55, recv-count: 25157154, send-count:25167175 recv-tps: 457402, send-tps: 457585
sec: 56, recv-count: 25600574, send-count:25610585 recv-tps: 457153, send-tps: 457331
sec: 57, recv-count: 26049239, send-count:26059245 recv-tps: 457004, send-tps: 457179
sec: 58, recv-count: 26505751, send-count:26515764 recv-tps: 456995, send-tps: 457168
sec: 59, recv-count: 26958446, send-count:26968456 recv-tps: 456922, send-tps: 457092
bye bye producer1s:307822/s 2s:393347/s 3s:422677/s 4s:436735/s 5s:445100/s 6s:450071/s 7s:453242/s 8s:455634/s 9s:457429/s 10s:458219/s 11s:459098/s 12s:459439/s 13s:459899/s 14s:459895/s 15s:460002/s 16s:460120/s 17s:460318/s 18s:460579/s 19s:460563/s 20s:460542/s 21s:460613/s 22s:460626/s 23s:460659/s 24s:460730/s 25s:460907/s 26s:461082/s 27s:460885/s 28s:460880/s 29s:460896/s 30s:460804/s 31s:460828/s 32s:460826/s 33s:460756/s 34s:460736/s 35s:460807/s 36s:460831/s 37s:460832/s 38s:460654/s 39s:460594/s 40s:460272/s 41s:460214/s 42s:460037/s 43s:459828/s 44s:459642/s 45s:459543/s 46s:459292/s 47s:459083/s 48s:458905/s 49s:458744/s 50s:458367/s 51s:458173/s 52s:457940/s 53s:457881/s 54s:457636/s 55s:457402/s 56s:457153/s 57s:457004/s 58s:456995/s 59s:456922/s
greatws runs on business goroutines
sec: 1, recv-count: 243256, send-count:253257 recv-tps: 243256, send-tps: 253257
sec: 2, recv-count: 657847, send-count:667863 recv-tps: 328923, send-tps: 333931
sec: 3, recv-count: 1069680, send-count:1079688 recv-tps: 356560, send-tps: 359896
sec: 4, recv-count: 1489331, send-count:1499340 recv-tps: 372332, send-tps: 374835
sec: 5, recv-count: 1896066, send-count:1906080 recv-tps: 379213, send-tps: 381216
sec: 6, recv-count: 2314345, send-count:2324358 recv-tps: 385724, send-tps: 387393
sec: 7, recv-count: 2723828, send-count:2739569 recv-tps: 389118, send-tps: 391367
sec: 8, recv-count: 3139188, send-count:3149196 recv-tps: 392398, send-tps: 393649
sec: 9, recv-count: 3544415, send-count:3554429 recv-tps: 393823, send-tps: 394936
sec: 10, recv-count: 3945129, send-count:3955145 recv-tps: 394512, send-tps: 395514
sec: 11, recv-count: 4356892, send-count:4366907 recv-tps: 396081, send-tps: 396991
sec: 12, recv-count: 4771731, send-count:4782933 recv-tps: 397644, send-tps: 398577
sec: 13, recv-count: 5177990, send-count:5187999 recv-tps: 398306, send-tps: 399076
sec: 14, recv-count: 5585304, send-count:5595319 recv-tps: 398950, send-tps: 399665
sec: 15, recv-count: 5998207, send-count:6008221 recv-tps: 399880, send-tps: 400548
sec: 16, recv-count: 6407822, send-count:6417830 recv-tps: 400488, send-tps: 401114
sec: 17, recv-count: 6828102, send-count:6838116 recv-tps: 401653, send-tps: 402242
sec: 18, recv-count: 7231933, send-count:7241940 recv-tps: 401774, send-tps: 402330
sec: 19, recv-count: 7637825, send-count:7647828 recv-tps: 401990, send-tps: 402517
sec: 20, recv-count: 8047983, send-count:8057996 recv-tps: 402399, send-tps: 402899
sec: 21, recv-count: 8458144, send-count:8468153 recv-tps: 402768, send-tps: 403245
sec: 22, recv-count: 8847591, send-count:8857607 recv-tps: 402163, send-tps: 402618
sec: 23, recv-count: 9256322, send-count:9266333 recv-tps: 402448, send-tps: 402884
sec: 24, recv-count: 9669127, send-count:9679225 recv-tps: 402880, send-tps: 403301
sec: 25, recv-count: 10073188, send-count:10083201 recv-tps: 402927, send-tps: 403328
sec: 26, recv-count: 10487931, send-count:10497949 recv-tps: 403381, send-tps: 403767
sec: 27, recv-count: 10889148, send-count:10899156 recv-tps: 403301, send-tps: 403672
sec: 28, recv-count: 11284911, send-count:11294922 recv-tps: 403032, send-tps: 403390
sec: 29, recv-count: 11694606, send-count:11704618 recv-tps: 403262, send-tps: 403607
sec: 30, recv-count: 12099414, send-count:12109425 recv-tps: 403313, send-tps: 403647
sec: 31, recv-count: 12508847, send-count:12518867 recv-tps: 403511, send-tps: 403834
sec: 32, recv-count: 12910703, send-count:12920713 recv-tps: 403459, send-tps: 403772
sec: 33, recv-count: 13316634, send-count:13329205 recv-tps: 403534, send-tps: 403915
sec: 34, recv-count: 13731184, send-count:13741194 recv-tps: 403858, send-tps: 404152
sec: 35, recv-count: 14143106, send-count:14153121 recv-tps: 404088, send-tps: 404374
sec: 36, recv-count: 14558597, send-count:14568604 recv-tps: 404405, send-tps: 404683
sec: 37, recv-count: 14964612, send-count:14974620 recv-tps: 404448, send-tps: 404719
sec: 38, recv-count: 15370280, send-count:15380294 recv-tps: 404481, send-tps: 404744
sec: 39, recv-count: 15772716, send-count:15782719 recv-tps: 404428, send-tps: 404685
sec: 40, recv-count: 16178948, send-count:16188962 recv-tps: 404473, send-tps: 404724
sec: 41, recv-count: 16575448, send-count:16585453 recv-tps: 404279, send-tps: 404523
sec: 42, recv-count: 16989175, send-count:16999188 recv-tps: 404504, send-tps: 404742
sec: 43, recv-count: 17403148, send-count:17413160 recv-tps: 404724, send-tps: 404957
sec: 44, recv-count: 17809304, send-count:17819314 recv-tps: 404756, send-tps: 404984
sec: 45, recv-count: 18208262, send-count:18218273 recv-tps: 404628, send-tps: 404850
sec: 46, recv-count: 18605359, send-count:18615371 recv-tps: 404464, send-tps: 404681
sec: 47, recv-count: 19006182, send-count:19016192 recv-tps: 404386, send-tps: 404599
sec: 48, recv-count: 19409921, send-count:19419928 recv-tps: 404373, send-tps: 404581
sec: 49, recv-count: 19815261, send-count:19825276 recv-tps: 404393, send-tps: 404597
sec: 50, recv-count: 20226898, send-count:20236906 recv-tps: 404537, send-tps: 404738
sec: 51, recv-count: 20633656, send-count:20644104 recv-tps: 404581, send-tps: 404786
sec: 52, recv-count: 21046481, send-count:21056493 recv-tps: 404740, send-tps: 404932
sec: 53, recv-count: 21455935, send-count:21465945 recv-tps: 404828, send-tps: 405017
sec: 54, recv-count: 21857026, send-count:21867033 recv-tps: 404759, send-tps: 404945
sec: 55, recv-count: 22266944, send-count:22276951 recv-tps: 404853, send-tps: 405035
sec: 56, recv-count: 22661677, send-count:22672066 recv-tps: 404672, send-tps: 404858
sec: 57, recv-count: 23067915, send-count:23077927 recv-tps: 404700, send-tps: 404875
sec: 58, recv-count: 23468999, send-count:23479010 recv-tps: 404637, send-tps: 404810
sec: 59, recv-count: 23869878, send-count:23879885 recv-tps: 404574, send-tps: 404743
bye bye producer1s:243256/s 2s:328923/s 3s:356560/s 4s:372332/s 5s:379213/s 6s:385724/s 7s:389118/s 8s:392398/s 9s:393823/s 10s:394512/s 11s:396081/s 12s:397644/s 13s:398306/s 14s:398950/s 15s:399880/s 16s:400488/s 17s:401653/s 18s:401774/s 19s:401990/s 20s:402399/s 21s:402768/s 22s:402163/s 23s:402448/s 24s:402880/s 25s:402927/s 26s:403381/s 27s:403301/s 28s:403032/s 29s:403262/s 30s:403313/s 31s:403511/s 32s:403459/s 33s:403534/s 34s:403858/s 35s:404088/s 36s:404405/s 37s:404448/s 38s:404481/s 39s:404428/s 40s:404473/s 41s:404279/s 42s:404504/s 43s:404724/s 44s:404756/s 45s:404628/s 46s:404464/s 47s:404386/s 48s:404373/s 49s:404393/s 50s:404537/s 51s:404581/s 52s:404740/s 53s:404828/s 54s:404759/s 55s:404853/s 56s:404672/s 57s:404700/s 58s:404637/s 59s:404574/s
greatws uses one Goroutine per connection
sec: 1, recv-count: 212286, send-count:222293 recv-tps: 212286, send-tps: 222293
sec: 2, recv-count: 586740, send-count:596751 recv-tps: 293370, send-tps: 298375
sec: 3, recv-count: 970484, send-count:980496 recv-tps: 323494, send-tps: 326832
sec: 4, recv-count: 1343558, send-count:1353572 recv-tps: 335889, send-tps: 338393
sec: 5, recv-count: 1718341, send-count:1728345 recv-tps: 343668, send-tps: 345669
sec: 6, recv-count: 2089516, send-count:2099534 recv-tps: 348252, send-tps: 349922
sec: 7, recv-count: 2471127, send-count:2481139 recv-tps: 353018, send-tps: 354448
sec: 8, recv-count: 2845898, send-count:2855911 recv-tps: 355737, send-tps: 356988
sec: 9, recv-count: 3212171, send-count:3222176 recv-tps: 356907, send-tps: 358019
sec: 10, recv-count: 3586886, send-count:3597725 recv-tps: 358688, send-tps: 359772
sec: 11, recv-count: 3959556, send-count:3969566 recv-tps: 359959, send-tps: 360869
sec: 12, recv-count: 4329934, send-count:4339942 recv-tps: 360827, send-tps: 361661
sec: 13, recv-count: 4709345, send-count:4719367 recv-tps: 362257, send-tps: 363028
sec: 14, recv-count: 5081571, send-count:5091583 recv-tps: 362969, send-tps: 363684
sec: 15, recv-count: 5459288, send-count:5469297 recv-tps: 363952, send-tps: 364619
sec: 16, recv-count: 5837045, send-count:5847054 recv-tps: 364815, send-tps: 365440
sec: 17, recv-count: 6211049, send-count:6221055 recv-tps: 365355, send-tps: 365944
sec: 18, recv-count: 6579256, send-count:6595734 recv-tps: 365514, send-tps: 366429
sec: 19, recv-count: 6950635, send-count:6960639 recv-tps: 365822, send-tps: 366349
sec: 20, recv-count: 7325716, send-count:7335726 recv-tps: 366285, send-tps: 366786
sec: 21, recv-count: 7694760, send-count:7704774 recv-tps: 366417, send-tps: 366894
sec: 22, recv-count: 8067471, send-count:8077482 recv-tps: 366703, send-tps: 367158
sec: 23, recv-count: 8436946, send-count:8446956 recv-tps: 366823, send-tps: 367258
sec: 24, recv-count: 8807181, send-count:8818207 recv-tps: 366965, send-tps: 367425
sec: 25, recv-count: 9183351, send-count:9193484 recv-tps: 367334, send-tps: 367739
sec: 26, recv-count: 9555524, send-count:9565544 recv-tps: 367520, send-tps: 367905
sec: 27, recv-count: 9918437, send-count:9928449 recv-tps: 367349, send-tps: 367720
sec: 28, recv-count: 10291155, send-count:10301168 recv-tps: 367541, send-tps: 367898
sec: 29, recv-count: 10665005, send-count:10675013 recv-tps: 367758, send-tps: 368103
sec: 30, recv-count: 11035260, send-count:11045270 recv-tps: 367842, send-tps: 368175
sec: 31, recv-count: 11398456, send-count:11411344 recv-tps: 367692, send-tps: 368107
sec: 32, recv-count: 11769815, send-count:11779825 recv-tps: 367806, send-tps: 368119
sec: 33, recv-count: 12141268, send-count:12151281 recv-tps: 367917, send-tps: 368220
sec: 34, recv-count: 12506272, send-count:12516280 recv-tps: 367831, send-tps: 368125
sec: 35, recv-count: 12879428, send-count:12889435 recv-tps: 367983, send-tps: 368269
sec: 36, recv-count: 13250668, send-count:13260676 recv-tps: 368074, send-tps: 368352
sec: 37, recv-count: 13620906, send-count:13630908 recv-tps: 368132, send-tps: 368402
sec: 38, recv-count: 13996239, send-count:14006244 recv-tps: 368322, send-tps: 368585
sec: 39, recv-count: 14370438, send-count:14380445 recv-tps: 368472, send-tps: 368729
sec: 40, recv-count: 14738431, send-count:14748440 recv-tps: 368460, send-tps: 368711
sec: 41, recv-count: 15106100, send-count:15116103 recv-tps: 368441, send-tps: 368685
sec: 42, recv-count: 15489758, send-count:15499768 recv-tps: 368803, send-tps: 369042
sec: 43, recv-count: 15861871, send-count:15871880 recv-tps: 368880, send-tps: 369113
sec: 44, recv-count: 16231216, send-count:16241219 recv-tps: 368891, send-tps: 369118
sec: 45, recv-count: 16599995, send-count:16610008 recv-tps: 368888, send-tps: 369111
sec: 46, recv-count: 16973559, send-count:16983565 recv-tps: 368990, send-tps: 369207
sec: 47, recv-count: 17343101, send-count:17353116 recv-tps: 369002, send-tps: 369215
sec: 48, recv-count: 17718676, send-count:17728685 recv-tps: 369139, send-tps: 369347
sec: 49, recv-count: 18096606, send-count:18106617 recv-tps: 369318, send-tps: 369522
sec: 50, recv-count: 18467858, send-count:18477867 recv-tps: 369357, send-tps: 369557
sec: 51, recv-count: 18832254, send-count:18842264 recv-tps: 369259, send-tps: 369456
sec: 52, recv-count: 19195787, send-count:19205795 recv-tps: 369149, send-tps: 369342
sec: 53, recv-count: 19567714, send-count:19577728 recv-tps: 369202, send-tps: 369391
sec: 54, recv-count: 19947106, send-count:19957115 recv-tps: 369390, send-tps: 369576
sec: 55, recv-count: 20322660, send-count:20332666 recv-tps: 369502, send-tps: 369684
sec: 56, recv-count: 20692056, send-count:20702066 recv-tps: 369501, send-tps: 369679
sec: 57, recv-count: 21062052, send-count:21072061 recv-tps: 369509, send-tps: 369685
sec: 58, recv-count: 21429097, send-count:21439102 recv-tps: 369467, send-tps: 369639
sec: 59, recv-count: 21803371, send-count:21813378 recv-tps: 369548, send-tps: 369718
bye bye producer1s:212286/s 2s:293370/s 3s:323494/s 4s:335889/s 5s:343668/s 6s:348252/s 7s:353018/s 8s:355737/s 9s:356907/s 10s:358688/s 11s:359959/s 12s:360827/s 13s:362257/s 14s:362969/s 15s:363952/s 16s:364815/s 17s:365355/s 18s:365514/s 19s:365822/s 20s:366285/s 21s:366417/s 22s:366703/s 23s:366823/s 24s:366965/s 25s:367334/s 26s:367520/s 27s:367349/s 28s:367541/s 29s:367758/s 30s:367842/s 31s:367692/s 32s:367806/s 33s:367917/s 34s:367831/s 35s:367983/s 36s:368074/s 37s:368132/s 38s:368322/s 39s:368472/s 40s:368460/s 41s:368441/s 42s:368803/s 43s:368880/s 44s:368891/s 45s:368888/s 46s:368990/s 47s:369002/s 48s:369139/s 49s:369318/s 50s:369357/s 51s:369259/s 52s:369149/s 53s:369202/s 54s:369390/s 55s:369502/s 56s:369501/s 57s:369509/s 58s:369467/s 59s:369548/s
quickws
sec: 1, recv-count: 261551, send-count:271536 recv-tps: 261551, send-tps: 271536
sec: 2, recv-count: 691869, send-count:701882 recv-tps: 345934, send-tps: 350941
sec: 3, recv-count: 1123169, send-count:1133185 recv-tps: 374389, send-tps: 377728
sec: 4, recv-count: 1552721, send-count:1562734 recv-tps: 388180, send-tps: 390683
sec: 5, recv-count: 1992993, send-count:2003006 recv-tps: 398598, send-tps: 400601
sec: 6, recv-count: 2427652, send-count:2437657 recv-tps: 404608, send-tps: 406276
sec: 7, recv-count: 2857283, send-count:2867293 recv-tps: 408183, send-tps: 409613
sec: 8, recv-count: 3288923, send-count:3298929 recv-tps: 411115, send-tps: 412366
sec: 9, recv-count: 3722463, send-count:3732478 recv-tps: 413607, send-tps: 414719
sec: 10, recv-count: 4160016, send-count:4170029 recv-tps: 416001, send-tps: 417002
sec: 11, recv-count: 4584592, send-count:4594608 recv-tps: 416781, send-tps: 417691
sec: 12, recv-count: 5026480, send-count:5036496 recv-tps: 418873, send-tps: 419708
sec: 13, recv-count: 5458623, send-count:5468652 recv-tps: 419894, send-tps: 420665
sec: 14, recv-count: 5891639, send-count:5901651 recv-tps: 420831, send-tps: 421546
sec: 15, recv-count: 6314768, send-count:6324779 recv-tps: 420984, send-tps: 421651
sec: 16, recv-count: 6747499, send-count:6757511 recv-tps: 421718, send-tps: 422344
sec: 17, recv-count: 7185173, send-count:7196661 recv-tps: 422657, send-tps: 423333
sec: 18, recv-count: 7619168, send-count:7629181 recv-tps: 423287, send-tps: 423843
sec: 19, recv-count: 8045709, send-count:8055722 recv-tps: 423458, send-tps: 423985
sec: 20, recv-count: 8475076, send-count:8485088 recv-tps: 423753, send-tps: 424254
sec: 21, recv-count: 8896242, send-count:8906257 recv-tps: 423630, send-tps: 424107
sec: 22, recv-count: 9325395, send-count:9343492 recv-tps: 423881, send-tps: 424704
sec: 23, recv-count: 9755112, send-count:9765126 recv-tps: 424135, send-tps: 424570
sec: 24, recv-count: 10187158, send-count:10197173 recv-tps: 424464, send-tps: 424882
sec: 25, recv-count: 10609311, send-count:10619326 recv-tps: 424372, send-tps: 424773
sec: 26, recv-count: 11039050, send-count:11049059 recv-tps: 424578, send-tps: 424963
sec: 27, recv-count: 11462987, send-count:11473000 recv-tps: 424555, send-tps: 424925
sec: 28, recv-count: 11892126, send-count:11902143 recv-tps: 424718, send-tps: 425076
sec: 29, recv-count: 12323138, send-count:12333152 recv-tps: 424935, send-tps: 425281
sec: 30, recv-count: 12763544, send-count:12773564 recv-tps: 425451, send-tps: 425785
sec: 31, recv-count: 13184273, send-count:13194288 recv-tps: 425299, send-tps: 425622
sec: 32, recv-count: 13614209, send-count:13624248 recv-tps: 425444, send-tps: 425757
sec: 33, recv-count: 14046309, send-count:14056328 recv-tps: 425645, send-tps: 425949
sec: 34, recv-count: 14470322, send-count:14480349 recv-tps: 425597, send-tps: 425892
sec: 35, recv-count: 14905360, send-count:14915384 recv-tps: 425867, send-tps: 426153
sec: 36, recv-count: 15334812, send-count:15344819 recv-tps: 425967, send-tps: 426244
sec: 37, recv-count: 15762522, send-count:15772536 recv-tps: 426014, send-tps: 426284
sec: 38, recv-count: 16186329, send-count:16196347 recv-tps: 425956, send-tps: 426219
sec: 39, recv-count: 16618723, send-count:16628736 recv-tps: 426121, send-tps: 426377
sec: 40, recv-count: 17045141, send-count:17055157 recv-tps: 426128, send-tps: 426378
sec: 41, recv-count: 17475248, send-count:17485261 recv-tps: 426225, send-tps: 426469
sec: 42, recv-count: 17896602, send-count:17906617 recv-tps: 426109, send-tps: 426348
sec: 43, recv-count: 18331822, send-count:18341829 recv-tps: 426321, send-tps: 426554
sec: 44, recv-count: 18755076, send-count:18765085 recv-tps: 426251, send-tps: 426479
sec: 45, recv-count: 19180818, send-count:19190828 recv-tps: 426240, send-tps: 426462
sec: 46, recv-count: 19614998, send-count:19625019 recv-tps: 426413, send-tps: 426630
sec: 47, recv-count: 20045289, send-count:20055297 recv-tps: 426495, send-tps: 426708
sec: 48, recv-count: 20471562, send-count:20481573 recv-tps: 426490, send-tps: 426699
sec: 49, recv-count: 20896187, send-count:20906196 recv-tps: 426452, send-tps: 426657
sec: 50, recv-count: 21320550, send-count:21330557 recv-tps: 426411, send-tps: 426611
sec: 51, recv-count: 21748491, send-count:21758501 recv-tps: 426441, send-tps: 426637
sec: 52, recv-count: 22168641, send-count:22181754 recv-tps: 426320, send-tps: 426572
sec: 53, recv-count: 22601380, send-count:22611386 recv-tps: 426441, send-tps: 426629
sec: 54, recv-count: 23030371, send-count:23040381 recv-tps: 426488, send-tps: 426673
sec: 55, recv-count: 23456747, send-count:23466760 recv-tps: 426486, send-tps: 426668
sec: 56, recv-count: 23882537, send-count:23892547 recv-tps: 426473, send-tps: 426652
sec: 57, recv-count: 24320698, send-count:24331827 recv-tps: 426678, send-tps: 426874
sec: 58, recv-count: 24746508, send-count:24756511 recv-tps: 426663, send-tps: 426836
sec: 59, recv-count: 25173694, send-count:25183712 recv-tps: 426672, send-tps: 426842
bye bye producer1s:261551/s 2s:345934/s 3s:374389/s 4s:388180/s 5s:398598/s 6s:404608/s 7s:408183/s 8s:411115/s 9s:413607/s 10s:416001/s 11s:416781/s 12s:418873/s 13s:419894/s 14s:420831/s 15s:420984/s 16s:421718/s 17s:422657/s 18s:423287/s 19s:423458/s 20s:423753/s 21s:423630/s 22s:423881/s 23s:424135/s 24s:424464/s 25s:424372/s 26s:424578/s 27s:424555/s 28s:424718/s 29s:424935/s 30s:425451/s 31s:425299/s 32s:425444/s 33s:425645/s 34s:425597/s 35s:425867/s 36s:425967/s 37s:426014/s 38s:425956/s 39s:426121/s 40s:426128/s 41s:426225/s 42s:426109/s 43s:426321/s 44s:426251/s 45s:426240/s 46s:426413/s 47s:426495/s 48s:426490/s 49s:426452/s 50s:426411/s 51s:426441/s 52s:426320/s 53s:426441/s 54s:426488/s 55s:426486/s 56s:426473/s 57s:426678/s 58s:426663/s 59s:426672/s
traffic scenario testing
greatws runs on business goroutines
Destination: [127.0.0.1]:9001
Interface lo address [127.0.0.1]:0
Using interface lo to connect to [127.0.0.1]:9001
Ramped up to 10000 connections.
Total data sent: 22066.9 MiB (23138824922 bytes)
Total data received: 20948.6 MiB (21966157486 bytes)
Bandwidth per channel: 1.203⇅ Mbps (150.3 kBps)
Aggregate bandwidth: 5857.641↓, 6170.352↑ Mbps
Packet rate estimate: 827981.9↓, 537684.1↑ (2↓, 25↑ TCP MSS/op)
Test duration: 30 s.
greatws runs on I/O goroutines-greatws bind mode
Destination: [127.0.0.1]:9001
Interface lo address [127.0.0.1]:0
Using interface lo to connect to [127.0.0.1]:9001
Ramped up to 10000 connections.
Total data sent: 20986.7 MiB (22006103049 bytes)
Total data received: 21702.2 MiB (22756449942 bytes)
Bandwidth per channel: 1.193⇅ Mbps (149.1 kBps)
Aggregate bandwidth: 6068.345↓, 5868.254↑ Mbps
Packet rate estimate: 551156.2↓, 504159.9↑ (1↓, 26↑ TCP MSS/op)
Test duration: 30.0002 s.
greatws uses one Goroutine per connection
Destination: [127.0.0.1]:9001
Interface lo address [127.0.0.1]:0
Using interface lo to connect to [127.0.0.1]:9001
Ramped up to 10000 connections.
Total data sent: 22214.1 MiB (23293125402 bytes)
Total data received: 21435.6 MiB (22476888510 bytes)
Bandwidth per channel: 1.220⇅ Mbps (152.5 kBps)
Aggregate bandwidth: 5993.736↓, 6211.396↑ Mbps
Packet rate estimate: 900772.2↓, 540231.1↑ (2↓, 26↑ TCP MSS/op)
Test duration: 30.0005 s.
quickws
Destination: [127.0.0.1]:9001
Interface lo address [127.0.0.1]:0
Using interface lo to connect to [127.0.0.1]:9001
Ramped up to 10000 connections.
Total data sent: 23491.3 MiB (24632378552 bytes)
Total data received: 23847.2 MiB (25005609929 bytes)
Bandwidth per channel: 1.324⇅ Mbps (165.5 kBps)
Aggregate bandwidth: 6668.082↓, 6568.555↑ Mbps
Packet rate estimate: 666086.0↓, 570362.1↑ (1↓, 44↑ TCP MSS/op)
Test duration: 30.0004 s.