Releases: antlabs/greatws
v0.2.2版本
v0.2.1版本
- 修复golangci-lint错误
v0.1.12版本
在e5 2686 cpu上测试(在服务器cpu上,基于epoll的方案会更快些)
本次版本修改点
百万长链接测试
BenchType : BenchEcho
Framework : greatws
TPS : 106014
EER : 218.54
Min : 49.26us
Avg : 94.08ms
Max : 954.33ms
TP50 : 45.76ms
TP75 : 52.27ms
TP90 : 336.85ms
TP95 : 427.07ms
TP99 : 498.66ms
Used : 18.87s
Total : 2000000
Success : 2000000
Failed : 0
Conns : 1000000
Concurrency: 10000
Payload : 1024
CPU Min : 184.90%
CPU Avg : 485.10%
CPU Max : 588.31%
MEM Min : 563.40M
MEM Avg : 572.40M
MEM Max : 594.48M
v0.1.11版本
修改点
优化百万链接时的内存占用
100w链接测试
BenchType : BenchEcho
Framework : greatws
TPS : 107497
EER : 390.26
Min : 30.41us
Avg : 92.26ms
Max : 1.57s
TP50 : 57.81ms
TP75 : 61.20ms
TP90 : 64.26ms
TP95 : 66.07ms
TP99 : 69.31ms
Used : 40.41s
Total : 5000000
Success : 4343921
Failed : 656079
Conns : 1000000
Concurrency: 10000
Payload : 1024
CPU Min : 0.00%
CPU Avg : 275.45%
CPU Max : 385.82%
MEM Min : 446.01M
MEM Avg : 454.67M
MEM Max : 464.38M
TPS scenario testing
greatws runs on I/O goroutines-greatws bind mode
sec: 1, recv-count: 303438, send-count:313444 recv-tps: 303438, send-tps: 313444
sec: 2, recv-count: 771069, send-count:781074 recv-tps: 385534, send-tps: 390537
sec: 3, recv-count: 1243220, send-count:1253228 recv-tps: 414406, send-tps: 417742
sec: 4, recv-count: 1711500, send-count:1721505 recv-tps: 427875, send-tps: 430376
sec: 5, recv-count: 2176838, send-count:2186851 recv-tps: 435367, send-tps: 437370
sec: 6, recv-count: 2643191, send-count:2653191 recv-tps: 440531, send-tps: 442198
sec: 7, recv-count: 3113508, send-count:3123511 recv-tps: 444786, send-tps: 446215
sec: 8, recv-count: 3575511, send-count:3585520 recv-tps: 446938, send-tps: 448190
sec: 9, recv-count: 4034882, send-count:4044894 recv-tps: 448320, send-tps: 449432
sec: 10, recv-count: 4488218, send-count:4498227 recv-tps: 448821, send-tps: 449822
sec: 11, recv-count: 4939643, send-count:4949651 recv-tps: 449058, send-tps: 449968
sec: 12, recv-count: 5396880, send-count:5406894 recv-tps: 449740, send-tps: 450574
sec: 13, recv-count: 5848419, send-count:5858426 recv-tps: 449878, send-tps: 450648
sec: 14, recv-count: 6304469, send-count:6314476 recv-tps: 450319, send-tps: 451034
sec: 15, recv-count: 6753719, send-count:6763728 recv-tps: 450247, send-tps: 450915
sec: 16, recv-count: 7207534, send-count:7217540 recv-tps: 450470, send-tps: 451096 ...
v0.1.10版本
修改点
- 优化内存
100w 链接测试
BenchType : BenchEcho
Framework : greatws
TPS : 111807
EER : 403.31
Min : 29.64us
Avg : 89.30ms
Max : 1.49s
TP50 : 56.58ms
TP75 : 59.78ms
TP90 : 63.41ms
TP95 : 66.99ms
TP99 : 184.26ms
Used : 39.16s
Total : 5000000
Success : 4378924
Failed : 621076
Conns : 1000000
Concurrency: 10000
Payload : 1024
CPU Min : 0.00%
CPU Avg : 277.22%
CPU Max : 389.82%
MEM Min : 505.36M
MEM Avg : 519.20M
MEM Max : 539.86M
TPS scenario testing
greatws runs on I/O goroutines-greatws bind mode
sec: 1, recv-count: 297487, send-count:307500 recv-tps: 297487, send-tps: 307500
sec: 2, recv-count: 764951, send-count:774961 recv-tps: 382475, send-tps: 387480
sec: 3, recv-count: 1233597, send-count:1243600 recv-tps: 411199, send-tps: 414533
sec: 4, recv-count: 1699006, send-count:1710291 recv-tps: 424751, send-tps: 427572
sec: 5, recv-count: 2165358, send-count:2175365 recv-tps: 433071, send-tps: 435073
sec: 6, recv-count: 2631521, send-count:2641527 recv-tps: 438586, send-tps: 440254
sec: 7, recv-count: 3096553, send-count:3106562 recv-tps: 442364, send-tps: 443794
sec: 8, recv-count: 3560099, send-count:3570103 recv-tps: 445012, send-tps: 446262
sec: 9, recv-count: 4021427, send-count:4031431 recv-tps: 446825, send-tps: 447936
sec: 10, recv-count: 4473699, send-count:4483705 recv-tps: 447369, send-tps: 448370
sec: 11, recv-count: 4927422, send-count:4937423 recv-tps: 447947, send-tps: 448856
sec: 12, recv-count: 5380380, send-count:5390386 recv-tps: 448365, send-tps: 449198
sec: 13, recv-count: 5840293, send-count:5850304 recv-tps: 449253, send-tps: 450023
sec: 14, recv-count: 6293648, send-count:6303655 recv-tps: 449546, send-tps: 450261
sec: 15, recv-count: 6748545, send-count:6758554 recv-tps: 449903, send-tps: 450570
sec: 16, recv-count: 7196754, send-count:7206768 recv-tps: 449797, send-tps: 450423
sec: 17, recv-count: 7670146, send-count:7680156 recv-tps: 451185, send-tps: 451773
sec: 18, recv-count: 8126729, send-count:8136737 recv-tps: 451484, send-tps: 452040
sec: 19, recv-count: 8581788, send-count:8591793 recv-tps: 451673, send-tps: 452199
sec: 20, recv-count: 9035854, send-count:9045862 recv-tps: 451792, send-tps: 452293
sec: 21, recv-count: 9489790, send-count:9499803 recv-tps: 451894, send-tps: 452371
sec: 22, recv-count: 9938397, send-count:9948404 recv-tps: 451745, send-tps: 452200
sec: 23, recv-count: 10391794, send-count:10401803 recv-tps: 451817, send-tps: 452252
sec: 24, recv-count: 10843507, send-count:10853517 recv-tps: 451812, send-tps: 452229
sec: 25, recv-count: 11292495, send-count:11302502 recv-tps: 451699, send-tps: 452100
sec: 26, recv-count: 11749576, send-count:11759579 recv-tps: 451906, send-tps: 452291
sec: 27, recv-count: 12199770, send-count:12209777 recv-tps: 451843, send-tps: 452213
sec: 28, recv-count: 12650625, send-count:12660629 recv-tps: 451808, send-tps: 452165
sec: 29, recv-count: 13100223, send-count:13110237 recv-tps: 451731, send-tps: 452077
sec: 30, recv-count: 13546399, send-count:13556406 recv-tps: 451546, send-tps: 451880
sec: 31, recv-count: 13993758, send-count:14003767 recv-tps: 451411, send-tps: 451734
sec: 32, recv-count: 14443272, send-count:14453280 recv-tps: 451352, send-tps: 451665
sec: 33, recv-count: 14885869, send-count:14895879 recv-tps: 451086, send-tps: 451390
sec: 34, recv-count: 15320363, send-count:15330609 recv-tps: 450598, send-tps: 450900
sec: 35, recv-count: 15766619, send-count:15777396 recv-tps: 450474, send-tps: 450782
sec: 36, recv-count: 16215760, send-count:16225772 recv-tps: 450437, send-tps: 450715
sec: 37, recv-count: 16656501, send-count:16666511 recv-tps: 450175, send-tps: 450446
sec: 38, recv-count: 17097621, send-count:17107633 recv-tps: 449937, send-tps: 450200
sec: 39, recv-count: 17534760, send-count:17548423 recv-tps: 449609, send-tps: 449959
sec: 40, recv-count: 17978228, send-count:17988236 recv-tps: 449455, send-tps: 449705
sec: 41, recv-count: 18421427, send-count:18431435 recv-tps: 449303, send-tps: 449547
sec: 42, recv-count: 18863167, send-count:18873172 recv-tps: 449123, send-tps: 449361
sec: 43, recv-count: 19302641, send-count:19312648 recv-tps: 448898, send-tps: 449131
sec: 44, recv-count: 19741944, send-count:19751953 recv-tps: 448680, send-tps: 448908
sec: 45, recv-count: 20181318, send-count:20191323 recv-tps: 448473, send-tps: 448696
sec: 46, recv-count: 20623047, send-count:20633060 recv-tps: 448327, send-tps: 448544
sec: 47, recv-count: 21064329, send-count:21074336 recv-tps: 448177, send-tps: 448390
sec: 48, recv-count: 21500085, send-count:21510092 recv-tps: 447918, send-tps: 448126
sec: 49, recv-count: 21945668, send-count:21955674 recv-tps: 447870, send-tps: 448074
sec: 50, recv-count: 22384223, send-count:22394235 recv-tps: 447684, send-tps: 447884
sec: 51, recv-count: 22819564, send-count:22829575 recv-tps: 447442, send-tps: 447638
sec: 52, recv-count: 23266908, send-count:23276920 recv-tps: 447440, send-tps: 447633
sec: 53, recv-count: 23706610, send-count:23716622 recv-tps: 447294, send-tps: 447483
sec: 54, recv-count: 24140208, send-count:24150214 recv-tps: 447040, send-tps: 447226
sec: 55, recv-count: 24572452, send-count:24582465 recv-tps: 446771, send-tps: 446953
sec: 56, recv-count: 25008807, send-count:25018819 recv-tps: 446585, send-tps: 446764
sec: 57, recv-count: 25444639, send-count:25454648 recv-tps: 446397, send-tps: 446572
sec: 58, recv-count: 25875769, send-count:25891853 recv-tps: 446133, send-tps: 446411
sec: 59, recv-count: 26307482, send-count:26317487 recv-tps: 445889, send-tps: 446059
bye bye producer1s:297487/s 2s:382475/s 3s:411199/s 4s:424751/s 5s:433071/s 6s:438586/s 7s:442364/s 8s:445012/s 9s:446825/s 10s:447369/s 11s:447947/s 12s:448365/s 13s:449253/s 14s:449546/s 15s:449903/s 16s:449797/s 17s:451185/s 18s:451484/s 19s:451673/s 20s:451792/s 21s:451894/s 22s:451745/s 23s:451817/s 24s:451812/s 25s:451699/s 26s:451906/s 27s:451843/s 28s:451808/s 29s:451731/s 30s:451546/s 31s:451411/s 32s:451352/s 33s:451086/s 34s:450598/s 35s:450474/s 36s:450437/s 37s:450175/s 38s:449937/s 39s:449609/s 40s:449455/s 41s:449303/s 42s:449123/s 43s:448898/s 44s:448680/s 45s:448473/s 46s:448327/s 47s:448177/s 48s:447918/s 49s:447870/s 50s:447684/s 51s:447442/s 52s:447440/s 53s:447294/s 54s:447040/s 55s:446771/s 56s:446585/s 57s:446397/s 58s:446133/s 59s:445889/s
greatws runs on business goroutines
sec: 1, recv-count: 267199, send-count:277218 recv-tps: 267199, send-tps: 277218
sec: 2, recv-count: 692649, send-count:702655 recv-tps: 346324, send-tps: 351327
sec: 3, recv-count: 1114363, send-count:1124374 recv-tps: 371454, send-tps: 374791
sec: 4, recv-count: 1536371, send-count:1546379 recv-tps: 384092, send-tps: 386594
sec: 5, recv-count: 1953194, send-count:1963200 recv-tps: 390638, send-tps: 392640
sec: 6, recv-count: 2373431, send-count:2383442 recv-tps: 395571, send-tps: 397240
sec: 7, recv-count: 2787512, send-count:2797530 recv-tps: 398216, send-tps: 399647
sec: 8, recv-count: 3207657, send-count:3217660 recv-tps: 400957, send-tps: 402207
sec: 9, recv-count: 3626065, send-count:3636069 recv-tps: 402896, send-tps: 404007
sec: 10, recv-count: 4037728, send-count:4047737 recv-tps: 403772, send-tps: 404773
sec: 11, recv-count: 4449529, send-count:4459540 recv-tps: 404502, send-tps: 405412
sec: 12, recv-count: 4863010, send-count:4873019 recv-tps: 405250, send-tps: 406084
sec: 13, recv-count: 5268884, send-count:5278898 recv-tps: 405298, send-tps: 406069
sec: 14, recv-count: 5685392, send-count:5695402 recv-tps: 406099, send-tps: 406814
sec: 15, recv-count: 6096695, send-count:6106699 recv-tps: 406446, send-tps: 407113
sec: 16, recv-count: 6504930, send-count:6514940 recv-tps: 406558, send-tps: 407183
sec: 17, recv-count: 6922151, send-count:6932165 recv-tps: 407185, send-tps: 407774
sec: 18, recv-count: 7332505, send-count:7342512 recv-tps: 407361, send-tps: 407917
sec: 19, recv-count: 7743798, send-count:7753814 recv-tps: 407568, send-tps: 408095
sec: 20, recv-count: 8154008, send-count:8164020 recv-tps: 407700, send-tps: 408201
sec: 21, recv-count: 8566504, send-count:8576518 recv-tps: 407928, send-tps: 408405
sec: 22, recv-count: 8982433, send-count:8992442 recv-tps: 408292, send-tps: 408747
sec: 23, recv-count: 9386730, send-count:9396734 recv-tps: 408118, send-tps: 408553
sec: 24, recv-count: 9794172, send-count:9804180 recv-tps: 408090, send-tps: 408507
sec: 25, recv-count: 10206036, send-count:10216043 recv-tps: 408241, send-tps: 408641
sec: 26, recv-count: 10614842, send-count:10624850 recv-tps: 408263, send-tps: 408648
sec: 27, recv-count: 11028609, send-count:11038617 recv-tps: 408467, send-tps: 408837
sec: 28, recv-count: 11437213, send-count:11447222 recv-tps: 408471, send-tps: 408829
sec: 29, recv-count: 11849063, send-count:11859070 recv-tps: 408588, send-tps: 408933
sec: 30, recv-count: 12255055, send-count:12265061 recv-tps: 408501, send-tps: 408835
sec: 31, recv-count: 12662934, send-count:12672944 recv-tps: 408481, send-tps: 408804
sec: 32, recv-count: 13070061, send-count:13080071 recv-tps: 408439, send-tps: 408752
sec: 33, recv-count: 13474065, send-count:13484068 recv-tps: 408305, send-tps: 408608
sec: 34, recv-count: 13879501, send-count:13889506 recv-tps: 408220, send-tps: 408514
sec: 35, recv-count: 14282886, send-count:14298982 recv-tps: 408082, send-tps: 408542
sec: 36, recv-count: 14690715, send-count:14700721 recv-tps: 408075, send-tps: 408353
sec: 37, recv-count: 15104568, send-count:15114582 recv-tps: 408231, send-tps: 408502
sec: 38, recv-count: 15515176, send-count:15525181 recv-tps: 408294, send-tps: 408557
sec: 39, recv-count: 15924452, send-count:15934461 recv-tps: 408319, send-tps: 408575
sec: 40, recv-count: 16334636, send-count:16344640 recv-tps: 408365, send-tps: 408616
sec: 41, recv-count: 1674251...
v0.1.9版本
版本
修改点
修改默认task实现方式
100w 长链接测试
BenchType : BenchEcho
Framework : greatws
TPS : 80566
EER : 375.80
Min : -1ns
Avg : 617.12ms
Max : 1.52s
TP50 : 580.05ms
TP75 : 736.67ms
TP90 : 765.15ms
TP95 : 774.99ms
TP99 : 781.49ms
Used : 52.42s
Total : 5000000
Success : 4222930
Failed : 777070
Conns : 1000000
Concurrency: 50000
Payload : 1024
CPU Min : 61.72%
CPU Avg : 214.39%
CPU Max : 387.68%
MEM Min : 805.55M
MEM Avg : 806.19M
MEM Max : 808.55M
TPS scenario testing
greatws runs on I/O goroutines-greatws bind mode
sec: 1, recv-count: 299381, send-count:308951 recv-tps: 299381, send-tps: 308951
sec: 2, recv-count: 764315, send-count:774324 recv-tps: 382157, send-tps: 387162
sec: 3, recv-count: 1237425, send-count:1247426 recv-tps: 412475, send-tps: 415808
sec: 4, recv-count: 1703938, send-count:1713940 recv-tps: 425984, send-tps: 428485
sec: 5, recv-count: 2165194, send-count:2175210 recv-tps: 433038, send-tps: 435042
sec: 6, recv-count: 2619303, send-count:2629303 recv-tps: 436550, send-tps: 438217
sec: 7, recv-count: 3076418, send-count:3086423 recv-tps: 439488, send-tps: 440917
sec: 8, recv-count: 3533375, send-count:3543381 recv-tps: 441671, send-tps: 442922
sec: 9, recv-count: 3982355, send-count:3992363 recv-tps: 442483, send-tps: 443595
sec: 10, recv-count: 4432244, send-count:4442251 recv-tps: 443224, send-tps: 444225
sec: 11, recv-count: 4879863, send-count:4889889 recv-tps: 443623, send-tps: 444535
sec: 12, recv-count: 5332851, send-count:5342860 recv-tps: 444404, send-tps: 445238
sec: 13, recv-count: 5780868, send-count:5790871 recv-tps: 444682, send-tps: 445451
sec: 14, recv-count: 6226075, send-count:6236086 recv-tps: 444719, send-tps: 445434
sec: 15, recv-count: 6670347, send-count:6680354 recv-tps: 444689, send-tps: 445356
sec: 16, recv-count: 7118663, send-count:7128670 recv-tps: 444916, send-tps: 445541 ...
v0.1.8版本
本次修改点
task 模块化设计。
100w 长链接测试
BenchType : Connections
Framework : greatws
TPS : 5655
Min : 20ns
Avg : 341.62ms
Max : 176.83s
TP50 : 40ns
TP75 : 40ns
TP90 : 40ns
TP95 : 41ns
TP99 : 50ns
Used : 176.83s
Total : 1000000
Success : 1000000
Failed : 0
Concurrency: 2000
--------------------------------------------------------------
20240313 11:41.27.336 BenchEcho Warmup for 2000000 times ...
20240313 11:41.47.990 BenchEcho Warmup for 2000000 times done
20240313 11:41.47.990 BenchEcho for 5000000 times ...
20240313 11:42.41.420 BenchEcho for 5000000 times done
--------------------------------------------------------------
BenchType : BenchEcho
Framework : greatws
TPS : 80463
EER : 393.93
Min : -1ns
Avg : 614.01ms
Max : 1.76s
TP50 : 437.63ms
TP75 : 713.96ms
TP90 : 734.73ms
TP95 : 739.13ms
TP99 : 742.97ms
Used : 52.69s
Total : 5000000
Success : 4239955
Failed : 760045
Conns : 1000000
Concurrency: 50000
Payload : 1024
CPU Min : 143.22%
CPU Avg : 204.26%
CPU Max : 294.77%
MEM Min : 589.98M
MEM Avg : 593.93M
MEM Max : 596.68M
TPS scenario testing
greatws runs on I/O goroutines-greatws bind mode
sec: 1, recv-count: 310425, send-count:320428 recv-tps: 310425, send-tps: 320428
sec: 2, recv-count: 781028, send-count:791034 recv-tps: 390514, send-tps: 395517
sec: 3, recv-count: 1248195, send-count:1258203 recv-tps: 416065, send-tps: 419401
sec: 4, recv-count: 1715640, send-count:1725648 recv-tps: 428910, send-tps: 431412
sec: 5, recv-count: 2178989, send-count:2188995 recv-tps: 435797, send-tps: 437799
sec: 6, recv-count: 2646151, send-count:2656162 recv-tps: 441025, send-tps: 442693
sec: 7, recv-count: 3107569, send-count:3117577 recv-tps: 443938, send-tps: 445368
sec: 8, recv-count: 3568628, send-count:3578635 recv-tps: 446078, send-tps: 447329
sec: 9, recv-count: 4029977, send-count:4039980 recv-tps: 447775, send-tps: 448886
sec: 10, recv-count: 4444605, send-count:4454613 recv-tps: 444460, send-tps: 445461
sec: 11, recv-count: 4901547, send-count:4911552 recv-tps: 445595, send-tps: 446504
sec: 12, recv-count: 5347306, send-count:5357311 recv-tps: 445608, send-tps: 446442
sec: 13, recv-count: 5799746, send-count:5809751 recv-tps: 446134, send-tps: 446903
sec: 14, recv-count: 6252848, send-count:6262866 recv-tps: 446632, send-tps: 447347
sec: 15, recv-count: 6706216, send-count:6716227 recv-tps: 447081, send-tps: 447748
sec: 16, recv-count: 7152729, send-count:7162736 recv-tps: 447045, send-tps: 447671
sec: 17, recv-count: 7604281, send-count:7614291 recv-tps: 447310, send-tps: 447899
sec: 18, recv-count: 8055435, send-count:8069102 recv-tps: 447524, send-tps: 448283
sec: 19, recv-count: 8507855, send-count:8517859 recv-tps: 447781, send-tps: 448308
sec: 20, recv-count: 8950999, send-count:8961012 recv-tps: 447549, send-tps: 448050
sec: 21, recv-count: 9401096, send-count:9411110 recv-tps: 447671, send-tps: 448148
sec: 22, recv-count: 9851658, send-count:9861671 recv-tps: 447802, send-tps: 448257
sec: 23, recv-count: 10300185, send-count:10310198 recv-tps: 447834, send-tps: 448269
sec: 24, recv-count: 10745151, send-count:10755161 recv-tps: 447714, send-tps: 448131
sec: 25, recv-count: 11190358, send-count:11200366 recv-tps: 447614, send-tps: 448014
sec: 26, recv-count: 11640817, send-count:11650825 recv-tps: 447723, send-tps: 448108
sec: 27, recv-count: 12090591, send-count:12100596 recv-tps: 447799, send-tps: 448170
sec: 28, recv-count: 12538576, send-count:12548587 recv-tps: 447806, send-tps: 448163
sec: 29, recv-count: 12988842, send-count:12998847 recv-tps: 447891, send-tps: 448236
sec: 30, recv-count: 13431788, send-count:13441799 recv-tps: 447726, send-tps: 448059
sec: 31, recv-count: 13882167, send-count:13892180 recv-tps: 447811, send-tps: 448134
sec: 32, recv-count: 14327687, send-count:14337699 recv-tps: 447740, send-tps: 448053
sec: 33, recv-count: 14776590, send-count:14786593 recv-tps: 447775, send-tps: 448078
sec: 34, recv-count: 15220187, send-count:15231816 recv-tps: 447652, send-tps: 447994
sec: 35, recv-count: 15672880, send-count:15682888 recv-tps: 447796, send-tps: 448082
sec: 36, recv-count: 16119295, send-count:16129653 recv-tps: 447758, send-tps: 448045
sec: 37, recv-count: 16568622, send-count:16578638 recv-tps: 447800, send-tps: 448071
sec: 38, recv-count: 17018999, send-count:17029007 recv-tps: 447868, send-tps: 448131
sec: 39, recv-count: 17467005, send-count:17477019 recv-tps: 447871, send-tps: 448128
sec: 40, recv-count: 17902328, send-count:17912342 recv-tps: 447558, send-tps: 447808
sec: 41, recv-count: 18346373, send-count:18356382 recv-tps: 447472, send-tps: 447716
sec: 42, recv-count: 18791260, send-count:18801266 recv-tps: 447410, send-tps: 447649
sec: 43, recv-count: 19232667, send-count:19242667 recv-tps: 447271, send-tps: 447503
sec: 44, recv-count: 19671893, send-count:19681905 recv-tps: 447088, send-tps: 447316
sec: 45, recv-count: 20115344, send-count:20125356 recv-tps: 447007, send-tps: 447230
sec: 46, recv-count: 20551021, send-count:20561034 recv-tps: 446761, send-tps: 446979
sec: 47, recv-count: 20989379, send-count:20999388 recv-tps: 446582, send-tps: 446795
sec: 48, recv-count: 21430921, send-count:21440921 recv-tps: 446477, send-tps: 446685
sec: 49, recv-count: 21872796, send-count:21882805 recv-tps: 446383, send-tps: 446587
sec: 50, recv-count: 22310037, send-count:22320047 recv-tps: 446200, send-tps: 446400
sec: 51, recv-count: 22749054, send-count:22759059 recv-tps: 446059, send-tps: 446256
sec: 52, recv-count: 23189167, send-count:23199181 recv-tps: 445945, send-tps: 446138
sec: 53, recv-count: 23628683, send-count:23638695 recv-tps: 445824, send-tps: 446013
sec: 54, recv-count: 24062040, send-count:24072045 recv-tps: 445593, send-tps: 445778
sec: 55, recv-count: 24501430, send-count:24511430 recv-tps: 445480, send-tps: 445662
sec: 56, recv-count: 24932033, send-count:24946564 recv-tps: 445214, send-tps: 445474
sec: 57, recv-count: 25374534, send-count:25384546 recv-tps: 445167, send-tps: 445342
sec: 58, recv-count: 25812477, send-count:25822482 recv-tps: 445042, send-tps: 445215
sec: 59, recv-count: 26245992, send-count:26255995 recv-tps: 444847, send-tps: 445016
bye bye producer1s:310425/s 2s:390514/s 3s:416065/s 4s:428910/s 5s:435797/s 6s:441025/s 7s:443938/s 8s:446078/s 9s:447775/s 10s:444460/s 11s:445595/s 12s:445608/s 13s:446134/s 14s:446632/s 15s:447081/s 16s:447045/s 17s:447310/s 18s:447524/s 19s:447781/s 20s:447549/s 21s:447671/s 22s:447802/s 23s:447834/s 24s:447714/s 25s:447614/s 26s:447723/s 27s:447799/s 28s:447806/s 29s:447891/s 30s:447726/s 31s:447811/s 32s:447740/s 33s:447775/s 34s:447652/s 35s:447796/s 36s:447758/s 37s:447800/s 38s:447868/s 39s:447871/s 40s:447558/s 41s:447472/s 42s:447410/s 43s:447271/s 44s:447088/s 45s:447007/s 46s:446761/s 47s:446582/s 48s:446477/s 49s:446383/s 50s:446200/s 51s:446059/s 52s:445945/s 53s:445824/s 54s:445593/s 55s:445480/s 56s:445214/s 57s:445167/s 58s:445042/s 59s:444847/s
greatws runs on business goroutines
sec: 1, recv-count: 226021, send-count:236021 recv-tps: 226021, send-tps: 236021
sec: 2, recv-count: 655185, send-count:665188 recv-tps: 327592, send-tps: 332594
sec: 3, recv-count: 1085104, send-count:1095108 recv-tps: 361701, send-tps: 365036
sec: 4, recv-count: 1507444, send-count:1517450 recv-tps: 376861, send-tps: 379362
sec: 5, recv-count: 1934244, send-count:1944251 recv-tps: 386848, send-tps: 388850
sec: 6, recv-count: 2359792, send-count:2369798 recv-tps: 393298, send-tps: 394966
sec: 7, recv-count: 2782487, send-count:2792491 recv-tps: 397498, send-tps: 398927
sec: 8, recv-count: 3203242, send-count:3213245 recv-tps: 400405, send-tps: 401655
sec: 9, recv-count: 3619681, send-count:3629683 recv-tps: 402186, send-tps: 403298
sec: 10, recv-count: 4037511, send-count:4047517 recv-tps: 403751, send-tps: 404751
sec: 11, recv-count: 4460079, send-count:4470085 recv-tps: 405461, send-tps: 406371
sec: 12, recv-count: 4878789, send-count:4888792 recv-tps: 406565, send-tps: 407399
sec: 13, recv-count: 5296457, send-count:5306461 recv-tps: 407419, send-tps: 408189
sec: 14, recv-count: 5715741, send-count:5725746 recv-tps: 408267, send-tps: 408981
sec: 15, recv-count: 6134567, send-count:6144573 recv-tps: 408971, send-tps: 409638
sec: 16, recv-count: 6553333, send-count:6563342 recv-tps: 409583, send-tps: 410208
sec: 17, recv-count: 6967305, send-count:6977307 recv-tps: 409841, send-tps: 410429
sec: 18, recv-count: 7385082, send-count:7395086 recv-tps: 410282, send-tps: 410838
sec: 19, recv-count: 7802505, send-count:7812512 recv-tps: 410658, send-tps: 411184
sec: 20, recv-count: 8213568, send-count:8223570 recv-tps: 410678, send-tps: 411178
sec: 21, recv-count: 8625921, send-count:8635929 recv-tps: 410758, send-tps: 411234
sec: 22, recv-count: 9042395, send-count:9052399 recv-tps: 411017, send-tps: 411472
sec: 23, recv-count: 9458216, send-count:9468225 recv-tps: 411226, send-tps: 411661
sec: 24, recv-count: 9871196, send-count:9881205 recv-tps: 411299, send-tps: 411716
sec: 25, recv-count: 10285372, send-count:10295376 recv-tps: 411414, send-tps: 411815
sec: 26, recv-count: 10698034, send-count:10708041 recv-tps: 411462, send-tps: 411847
sec: 27, recv-count: 11113181, send-count:11123185 recv-tps: 411599, send-tps: 411969
sec: 28, recv-count: 11525220, send-count:11535227 recv-tps: 411615, send-tps: 411972
sec: 29, recv-count: 11939712, send-count:11949715 recv-tps: 411714, send-tps: 412059
sec: 30, recv-count: 12350594, send-count:12360606 recv-tps: 411686, send-tps: 412020
sec: 31, recv-count: 12758784, send-count:12768789 recv-tps: 411573, send-tps: 411896
sec: 32, recv-count: 13170693, send-count:13180698 recv-tps: 411584, send-tps: 411896
sec: 33, recv-co...
v0.1.7版本
本次修改
把event loop派发事件,parse loop解析frame作为默认行为。
在5800h性能略有下降,在e5 2686提升明显
5800h
100w连接测试
BenchType : Connections
Framework : greatws
TPS : 5714
Min : 20ns
Avg : 340.72ms
Max : 174.93s
TP50 : 40ns
TP75 : 40ns
TP90 : 41ns
TP95 : 50ns
TP99 : 51ns
Used : 175.00s
Total : 1000000
Success : 1000000
Failed : 0
Concurrency: 2000
BenchType : BenchEcho
Framework : greatws
TPS : 72532
EER : 378.50
Min : -1ns
Avg : 679.91ms
Max : 1.68s
TP50 : 473.97ms
TP75 : 742.69ms
TP90 : 773.21ms
TP95 : 776.78ms
TP99 : 779.57ms
Used : 57.95s
Total : 5000000
Success : 4203414
Failed : 796586
Conns : 1000000
Concurrency: 50000
Payload : 1024
CPU Min : 111.92%
CPU Avg : 191.63%
CPU Max : 321.82%
MEM Min : 680.44M
MEM Avg : 693.21M
MEM Max : 767.23M
TPS scenario testing
greatws runs on I/O goroutines-greatws bind mode
sec: 1, recv-count: 284867, send-count:294879 recv-tps: 284867, send-tps: 294879
sec: 2, recv-count: 758181, send-count:768191 recv-tps: 379090, send-tps: 384095
sec: 3, recv-count: 1223418, send-count:1233419 recv-tps: 407806, send-tps: 411139
sec: 4, recv-count: 1690425, send-count:1700433 recv-tps: 422606, send-tps: 425108
sec: 5, recv-count: 2157177, send-count:2167191 recv-tps: 431435, send-tps: 433438
sec: 6, recv-count: 2626132, send-count:2636138 recv-tps: 437688, send-tps: 439356
sec: 7, recv-count: 3084710, send-count:3094713 recv-tps: 440672, send-tps: 442101
sec: 8, recv-count: 3553005, send-count:3563015 recv-tps: 444125, send-tps: 445376
sec: 9, recv-count: 4017538, send-count:4027549 recv-tps: 446393, send-tps: 447505
sec: 10, recv-count: 4476207, send-count:4486217 recv-tps: 447620, send-tps: 448621
sec: 11, recv-count: 4927436, send-count:4939821 recv-tps: 447948, send-tps: 449074
sec: 12, recv-count: 5381539, send-count:5391545 recv-tps: 448461, send-tps: 449295
sec: 13, recv-count: 5841622, send-count:5851634 recv-tps: 449355, send-tps: 450125
sec: 14, recv-count: 6292650, send-count:6302660 recv-tps: 449475, send-tps: 450190
sec: 15, recv-count: 6742659, send-count:6752666 recv-tps: 449510, send-tps: 450177
sec: 16, recv-count: 7196634, send-count:7206646 recv-tps: 449789, send-tps: 450415
sec: 17, recv-count: 7642934, send-count:7652936 recv-tps: 449584, send-tps: 450172
sec: 18, recv-count: 8097729, send-count:8107744 recv-tps: 449873, send-tps: 450430
sec: 19, recv-count: 8549846, send-count:8559858 recv-tps: 449991, send-tps: 450518
sec: 20, recv-count: 8995507, send-count:9005522 recv-tps: 449775, send-tps: 450276
sec: 21, recv-count: 9446119, send-count:9456124 recv-tps: 449815, send-tps: 450291
sec: 22, recv-count: 9889617, send-count:9899629 recv-tps: 449528, send-tps: 449983
sec: 23, recv-count: 10343363, send-count:10353367 recv-tps: 449711, send-tps: 450146
sec: 24, recv-count: 10789337, send-count:10799343 recv-tps: 449555, send-tps: 449972
sec: 25, recv-count: 11236447, send-count:11246457 recv-tps: 449457, send-tps: 449858
sec: 26, recv-count: 11692447, send-count:11702461 recv-tps: 449709, send-tps: 450094
sec: 27, recv-count: 12137629, send-count:12147641 recv-tps: 449541, send-tps: 449912
sec: 28, recv-count: 12584668, send-count:12594677 recv-tps: 449452, send-tps: 449809
sec: 29, recv-count: 13027173, send-count:13037185 recv-tps: 449212, send-tps: 449558
sec: 30, recv-count: 13469631, send-count:13479644 recv-tps: 448987, send-tps: 449321
sec: 31, recv-count: 13913575, send-count:13923586 recv-tps: 448825, send-tps: 449147
sec: 32, recv-count: 14353625, send-count:14363634 recv-tps: 448550, send-tps: 448863
sec: 33, recv-count: 14791462, send-count:14801467 recv-tps: 448226, send-tps: 448529
sec: 34, recv-count: 15234019, send-count:15244026 recv-tps: 448059, send-tps: 448353
sec: 35, recv-count: 15668807, send-count:15678815 recv-tps: 447680, send-tps: 447966
sec: 36, recv-count: 16107907, send-count:16117907 recv-tps: 447441, send-tps: 447719
sec: 37, recv-count: 16544673, send-count:16554683 recv-tps: 447153, send-tps: 447423
sec: 38, recv-count: 16979121, send-count:16989126 recv-tps: 446818, send-tps: 447082
sec: 39, recv-count: 17423490, send-count:17433497 recv-tps: 446756, send-tps: 447012
sec: 40, recv-count: 17862069, send-count:17872081 recv-tps: 446551, send-tps: 446802
sec: 41, recv-count: 18296715, send-count:18306718 recv-tps: 446261, send-tps: 446505
sec: 42, recv-count: 18727297, send-count:18737308 recv-tps: 445888, send-tps: 446126
sec: 43, recv-count: 19163205, send-count:19173208 recv-tps: 445655, send-tps: 445888
sec: 44, recv-count: 19603170, send-count:19613188 recv-tps: 445526, send-tps: 445754
sec: 45, recv-count: 20035521, send-count:20045529 recv-tps: 445233, send-tps: 445456
sec: 46, recv-count: 20470477, send-count:20480488 recv-tps: 445010, send-tps: 445228
sec: 47, recv-count: 20902382, send-count:20912390 recv-tps: 444731, send-tps: 444944
sec: 48, recv-count: 21337082, send-count:21347099 recv-tps: 444522, send-tps: 444731
sec: 49, recv-count: 21770097, send-count:21780104 recv-tps: 444287, send-tps: 444491
sec: 50, recv-count: 22199914, send-count:22209918 recv-tps: 443998, send-tps: 444198
sec: 51, recv-count: 22629572, send-count:22639579 recv-tps: 443717, send-tps: 443913
sec: 52, recv-count: 23063737, send-count:23073753 recv-tps: 443533, send-tps: 443726
sec: 53, recv-count: 23488115, send-count:23498127 recv-tps: 443171, send-tps: 443360
sec: 54, recv-count: 23927062, send-count:23937074 recv-tps: 443093, send-tps: 443279
sec: 55, recv-count: 24356516, send-count:24366524 recv-tps: 442845, send-tps: 443027
sec: 56, recv-count: 24787971, send-count:24797979 recv-tps: 442642, send-tps: 442821
sec: 57, recv-count: 25217953, send-count:25227961 recv-tps: 442420, send-tps: 442595
sec: 58, recv-count: 25645642, send-count:25655653 recv-tps: 442166, send-tps: 442338
sec: 59, recv-count: 26074665, send-count:26084671 recv-tps: 441943, send-tps: 442113
bye bye producer1s:284867/s 2s:379090/s 3s:407806/s 4s:422606/s 5s:431435/s 6s:437688/s 7s:440672/s 8s:444125/s 9s:446393/s 10s:447620/s 11s:447948/s 12s:448461/s 13s:449355/s 14s:449475/s 15s:449510/s 16s:449789/s 17s:449584/s 18s:449873/s 19s:449991/s 20s:449775/s 21s:449815/s 22s:449528/s 23s:449711/s 24s:449555/s 25s:449457/s 26s:449709/s 27s:449541/s 28s:449452/s 29s:449212/s 30s:448987/s 31s:448825/s 32s:448550/s 33s:448226/s 34s:448059/s 35s:447680/s 36s:447441/s 37s:447153/s 38s:446818/s 39s:446756/s 40s:446551/s 41s:446261/s 42s:445888/s 43s:445655/s 44s:445526/s 45s:445233/s 46s:445010/s 47s:444731/s 48s:444522/s 49s:444287/s 50s:443998/s 51s:443717/s 52s:443533/s 53s:443171/s 54s:443093/s 55s:442845/s 56s:442642/s 57s:442420/s 58s:442166/s 59s:441943/s
greatws runs on business goroutines
sec: 1, recv-count: 245889, send-count:255355 recv-tps: 245889, send-tps: 255355
sec: 2, recv-count: 651004, send-count:664190 recv-tps: 325502, send-tps: 332095
sec: 3, recv-count: 1068418, send-count:1078428 recv-tps: 356139, send-tps: 359476
sec: 4, recv-count: 1480873, send-count:1490887 recv-tps: 370218, send-tps: 372721
sec: 5, recv-count: 1874903, send-count:1884906 recv-tps: 374980, send-tps: 376981
sec: 6, recv-count: 2281326, send-count:2291342 recv-tps: 380221, send-tps: 381890
sec: 7, recv-count: 2686584, send-count:2696595 recv-tps: 383797, send-tps: 385227
sec: 8, recv-count: 3079008, send-count:3089021 recv-tps: 384876, send-tps: 386127
sec: 9, recv-count: 3478368, send-count:3488382 recv-tps: 386485, send-tps: 387598
sec: 10, recv-count: 3877382, send-count:3887394 recv-tps: 387738, send-tps: 388739
sec: 11, recv-count: 4284045, send-count:4294053 recv-tps: 389458, send-tps: 390368
sec: 12, recv-count: 4680339, send-count:4690346 recv-tps: 390028, send-tps: 390862
sec: 13, recv-count: 5087507, send-count:5097517 recv-tps: 391346, send-tps: 392116
sec: 14, recv-count: 5490724, send-count:5500733 recv-tps: 392194, send-tps: 392909
sec: 15, recv-count: 5899063, send-count:5909073 recv-tps: 393270, send-tps: 393938
sec: 16, recv-count: 6303756, send-count:6313761 recv-tps: 393984, send-tps: 394610
sec: 17, recv-count: 6701201, send-count:6711204 recv-tps: 394188, send-tps: 394776
sec: 18, recv-count: 7105403, send-count:7115411 recv-tps: 394744, send-tps: 395300
sec: 19, recv-count: 7513094, send-count:7523108 recv-tps: 395426, send-tps: 395953
sec: 20, recv-count: 7913047, send-count:7923054 recv-tps: 395652, send-tps: 396152
sec: 21, recv-count: 8299332, send-count:8309341 recv-tps: 395206, send-tps: 395682
sec: 22, recv-count: 8698331, send-count:8708344 recv-tps: 395378, send-tps: 395833
sec: 23, recv-count: 9100316, send-count:9110319 recv-tps: 395665, send-tps: 396100
sec: 24, recv-count: 9501636, send-count:9511646 recv-tps: 395901, send-tps: 396318
sec: 25, recv-count: 9899863, send-count:9909873 recv-tps: 395994, send-tps: 396394
sec: 26, recv-count: 10301832, send-count:10311836 recv-tps: 396224, send-tps: 396609
sec: 27, recv-count: 10702245, send-count:10712249 recv-tps: 396379, send-tps: 396749
sec: 28, recv-count: 11095125, send-count:11107411 recv-tps: 396254, send-tps: 396693
sec: 29, recv-count: 11493437, send-count:11503458 recv-tps: 396325, send-tps: 396670
sec: 30, recv-count: 11894205, send-count:11904211 recv-tps: 396473, send-tps: 396807
sec: 31, recv-count: 12294171, send-count:12304191 recv-tps: 396586, send-tps: 396909
sec: 32, recv-count: 12690021, send-count:12700030 recv-tps: 396563, send-tps: 396875
sec: 33, recv-count: 13088493, send-count:13098500 recv-tps: 396621, send-tps: 396924
sec: 34, recv-count: 13480746, send-count:13490764 recv-tps: 396492, send-tps: 396787
sec: 35, recv-count: 13878446, send-count:13888460 recv-tps: 396527, send-tps: 396813
sec: 36, recv-count: 14277914, send-count:14287933 recv-tps...
v0.1.6版本
修改点
- 新增测试覆盖度
- 实现写超时读超时
硬件信息
cpu = 5800h
TPS scenario testing
greatws runs on I/O goroutines-greatws bind mode
sec: 1, recv-count: 301358, send-count:311361 recv-tps: 301358, send-tps: 311361
sec: 2, recv-count: 778285, send-count:788294 recv-tps: 389142, send-tps: 394147
sec: 3, recv-count: 1247635, send-count:1257643 recv-tps: 415878, send-tps: 419214
sec: 4, recv-count: 1722218, send-count:1732227 recv-tps: 430554, send-tps: 433056
sec: 5, recv-count: 2191614, send-count:2201621 recv-tps: 438322, send-tps: 440324
sec: 6, recv-count: 2662633, send-count:2672644 recv-tps: 443772, send-tps: 445440
sec: 7, recv-count: 3132399, send-count:3142411 recv-tps: 447485, send-tps: 448915
sec: 8, recv-count: 3598704, send-count:3608713 recv-tps: 449838, send-tps: 451089
sec: 9, recv-count: 4059461, send-count:4069467 recv-tps: 451051, send-tps: 452163
sec: 10, recv-count: 4517557, send-count:4527566 recv-tps: 451755, send-tps: 452756
sec: 11, recv-count: 4983730, send-count:4993746 recv-tps: 453066, send-tps: 453976
sec: 12, recv-count: 5440559, send-count:5450565 recv-tps: 453379, send-tps: 454213
sec: 13, recv-count: 5900212, send-count:5910215 recv-tps: 453862, send-tps: 454631
sec: 14, recv-count: 6361510, send-count:6371521 recv-tps: 454393, send-tps: 455108
sec: 15, recv-count: 6818737, send-count:6828751 recv-tps: 454582, send-tps: 455250
sec: 16, recv-count: 7279148, send-count:7289158 recv-tps: 454946, send-tps: 455572
sec: 17, recv-count: 7740634, send-count:7750650 recv-tps: 455331, send-tps: 455920
sec: 18, recv-count: 8193055, send-count:8203066 recv-tps: 455169, send-tps: 455725
sec: 19, recv-count: 8652609, send-count:8662625 recv-tps: 455400, send-tps: 455927
sec: 20, recv-count: 9106326, send-count:9116333 recv-tps: 455316, send-tps: 455816
sec: 21, recv-count: 9561707, send-count:9571712 recv-tps: 455319, send-tps: 455795
sec: 22, recv-count: 10019429, send-count:10029435 recv-tps: 455428, send-tps: 455883
sec: 23, recv-count: 10467521, send-count:10477524 recv-tps: 455109, send-tps: 455544
sec: 24, recv-count: 10916572, send-count:10926578 recv-tps: 454857, send-tps: 455274
sec: 25, recv-count: 11367665, send-count:11377672 recv-tps: 454706, send-tps: 455106
sec: 26, recv-count: 11818038, send-count:11828045 recv-tps: 454539, send-tps: 454924
sec: 27, recv-count: 12267529, send-count:12277539 recv-tps: 454352, send-tps: 454723
sec: 28, recv-count: 12711755, send-count:12721766 recv-tps: 453991, send-tps: 454348
sec: 29, recv-count: 13162324, send-count:13172346 recv-tps: 453873, send-tps: 454218
sec: 30, recv-count: 13610252, send-count:13620262 recv-tps: 453675, send-tps: 454008
sec: 31, recv-count: 14059809, send-count:14069820 recv-tps: 453542, send-tps: 453865
sec: 32, recv-count: 14504599, send-count:14514609 recv-tps: 453268, send-tps: 453581
sec: 33, recv-count: 14949187, send-count:14959193 recv-tps: 453005, send-tps: 453308
sec: 34, recv-count: 15392468, send-count:15402480 recv-tps: 452719, send-tps: 453014
sec: 35, recv-count: 15837031, send-count:15847038 recv-tps: 452486, send-tps: 452772
sec: 36, recv-count: 16280707, send-count:16290713 recv-tps: 452241, send-tps: 452519
sec: 37, recv-count: 16725138, send-count:16735147 recv-tps: 452030, send-tps: 452301
sec: 38, recv-count: 17163429, send-count:17173544 recv-tps: 451669, send-tps: 451935
sec: 39, recv-count: 17605706, send-count:17615713 recv-tps: 451428, send-tps: 451684
sec: 40, recv-count: 18051499, send-count:18061510 recv-tps: 451287, send-tps: 451537
sec: 41, recv-count: 18490581, send-count:18500584 recv-tps: 450989, send-tps: 451233
sec: 42, recv-count: 18929406, send-count:18939413 recv-tps: 450700, send-tps: 450938
sec: 43, recv-count: 19375783, send-count:19385793 recv-tps: 450599, send-tps: 450832
sec: 44, recv-count: 19824325, send-count:19834332 recv-tps: 450552, send-tps: 450780
sec: 45, recv-count: 20268662, send-count:20278671 recv-tps: 450414, send-tps: 450637
sec: 46, recv-count: 20710151, send-count:20720158 recv-tps: 450220, send-tps: 450438
sec: 47, recv-count: 21156235, send-count:21166252 recv-tps: 450132, send-tps: 450345
sec: 48, recv-count: 21593141, send-count:21603148 recv-tps: 449857, send-tps: 450065
sec: 49, recv-count: 22027023, send-count:22037035 recv-tps: 449531, send-tps: 449735
sec: 50, recv-count: 22463662, send-count:22473675 recv-tps: 449273, send-tps: 449473
sec: 51, recv-count: 22901326, send-count:22911335 recv-tps: 449045, send-tps: 449241
sec: 52, recv-count: 23339192, send-count:23349209 recv-tps: 448830, send-tps: 449023
sec: 53, recv-count: 23776964, send-count:23786968 recv-tps: 448621, send-tps: 448810
sec: 54, recv-count: 24213385, send-count:24223400 recv-tps: 448396, send-tps: 448581
sec: 55, recv-count: 24650579, send-count:24660585 recv-tps: 448192, send-tps: 448374
sec: 56, recv-count: 25087643, send-count:25097655 recv-tps: 447993, send-tps: 448172
sec: 57, recv-count: 25523936, send-count:25533943 recv-tps: 447788, send-tps: 447963
sec: 58, recv-count: 25958512, send-count:25968525 recv-tps: 447560, send-tps: 447733
sec: 59, recv-count: 26388522, send-count:26398533 recv-tps: 447263, send-tps: 447432
bye bye producer1s:301358/s 2s:389142/s 3s:415878/s 4s:430554/s 5s:438322/s 6s:443772/s 7s:447485/s 8s:449838/s 9s:451051/s 10s:451755/s 11s:453066/s 12s:453379/s 13s:453862/s 14s:454393/s 15s:454582/s 16s:454946/s 17s:455331/s 18s:455169/s 19s:455400/s 20s:455316/s 21s:455319/s 22s:455428/s 23s:455109/s 24s:454857/s 25s:454706/s 26s:454539/s 27s:454352/s 28s:453991/s 29s:453873/s 30s:453675/s 31s:453542/s 32s:453268/s 33s:453005/s 34s:452719/s 35s:452486/s 36s:452241/s 37s:452030/s 38s:451669/s 39s:451428/s 40s:451287/s 41s:450989/s 42s:450700/s 43s:450599/s 44s:450552/s 45s:450414/s 46s:450220/s 47s:450132/s 48s:449857/s 49s:449531/s 50s:449273/s 51s:449045/s 52s:448830/s 53s:448621/s 54s:448396/s 55s:448192/s 56s:447993/s 57s:447788/s 58s:447560/s 59s:447263/s
greatws runs on business goroutines
sec: 1, recv-count: 237338, send-count:247350 recv-tps: 237338, send-tps: 247350
sec: 2, recv-count: 658766, send-count:668771 recv-tps: 329383, send-tps: 334385
sec: 3, recv-count: 1062933, send-count:1072944 recv-tps: 354311, send-tps: 357648
sec: 4, recv-count: 1466176, send-count:1476189 recv-tps: 366544, send-tps: 369047
sec: 5, recv-count: 1881619, send-count:1891623 recv-tps: 376323, send-tps: 378324
sec: 6, recv-count: 2290336, send-count:2300341 recv-tps: 381722, send-tps: 383390
sec: 7, recv-count: 2698227, send-count:2708235 recv-tps: 385461, send-tps: 386890
sec: 8, recv-count: 3102878, send-count:3112882 recv-tps: 387859, send-tps: 389110
sec: 9, recv-count: 3501352, send-count:3511358 recv-tps: 389039, send-tps: 390150
sec: 10, recv-count: 3910364, send-count:3920382 recv-tps: 391036, send-tps: 392038
sec: 11, recv-count: 4325015, send-count:4335018 recv-tps: 393183, send-tps: 394092
sec: 12, recv-count: 4734133, send-count:4744143 recv-tps: 394511, send-tps: 395345
sec: 13, recv-count: 5134353, send-count:5144370 recv-tps: 394950, send-tps: 395720
sec: 14, recv-count: 5546756, send-count:5556765 recv-tps: 396196, send-tps: 396911
sec: 15, recv-count: 5933788, send-count:5943793 recv-tps: 395585, send-tps: 396252
sec: 16, recv-count: 6345068, send-count:6355083 recv-tps: 396566, send-tps: 397192
sec: 17, recv-count: 6751077, send-count:6761090 recv-tps: 397122, send-tps: 397711
sec: 18, recv-count: 7155316, send-count:7165328 recv-tps: 397517, send-tps: 398073
sec: 19, recv-count: 7548536, send-count:7558544 recv-tps: 397291, send-tps: 397818
sec: 20, recv-count: 7959420, send-count:7969429 recv-tps: 397971, send-tps: 398471
sec: 21, recv-count: 8362796, send-count:8372808 recv-tps: 398228, send-tps: 398705
sec: 22, recv-count: 8770471, send-count:8780509 recv-tps: 398657, send-tps: 399114
sec: 23, recv-count: 9181929, send-count:9191938 recv-tps: 399214, send-tps: 399649
sec: 24, recv-count: 9591426, send-count:9601436 recv-tps: 399642, send-tps: 400059
sec: 25, recv-count: 9988320, send-count:9998328 recv-tps: 399532, send-tps: 399933
sec: 26, recv-count: 10392647, send-count:10402654 recv-tps: 399717, send-tps: 400102
sec: 27, recv-count: 10795335, send-count:10805339 recv-tps: 399827, send-tps: 400197
sec: 28, recv-count: 11194479, send-count:11204486 recv-tps: 399802, send-tps: 400160
sec: 29, recv-count: 11599986, send-count:11609994 recv-tps: 399999, send-tps: 400344
sec: 30, recv-count: 12015473, send-count:12025482 recv-tps: 400515, send-tps: 400849
sec: 31, recv-count: 12412773, send-count:12422784 recv-tps: 400412, send-tps: 400734
sec: 32, recv-count: 12821753, send-count:12831775 recv-tps: 400679, send-tps: 400992
sec: 33, recv-count: 13222267, send-count:13232299 recv-tps: 400674, send-tps: 400978
sec: 34, recv-count: 13633257, send-count:13643273 recv-tps: 400978, send-tps: 401272
sec: 35, recv-count: 14024397, send-count:14034411 recv-tps: 400697, send-tps: 400983
sec: 36, recv-count: 14419527, send-count:14429539 recv-tps: 400542, send-tps: 400820
sec: 37, recv-count: 14825812, send-count:14835825 recv-tps: 400697, send-tps: 400968
sec: 38, recv-count: 15228750, send-count:15238757 recv-tps: 400756, send-tps: 401019
sec: 39, recv-count: 15629118, send-count:15639127 recv-tps: 400746, send-tps: 401003
sec: 40, recv-count: 16023669, send-count:16033693 recv-tps: 400591, send-tps: 400842
sec: 41, recv-count: 16418218, send-count:16428228 recv-tps: 400444, send-tps: 400688
sec: 42, recv-count: 16824746, send-count:16834760 recv-tps: 400589, send-tps: 400827
sec: 43, recv-count: 17227235, send-count:17237244 recv-tps: 400633, send-tps: 400866
sec: 44, recv-count: 17621178, send-count:17631191 recv-tps: 400481, send-tps: 400708
sec: 45, recv-count: 18024409, send-count:18034412 recv-tps: 400542, send-tps: 400764
sec: 46, recv-count: 18424228, send-count:18434244 recv-tps: 400526, send-tps: 400744
sec: 47, recv-count: 18...
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, re...