guonaihong / bench-ws

压测websocket(quickws)的仓库,不要随便跑,本人的一台小主机已经跑坏了。
Apache License 2.0
4 stars 0 forks source link

历史版本数据-tcpkali-流量测试 #1

Open guonaihong opened 1 year ago

guonaihong commented 1 year ago

2023.7.21

module github.com/guonaihong/bench-ws

go 1.20

require (
        github.com/antlabs/quickws v0.0.8-0.20230720134744-a1d56ef03e75
        github.com/go-netty/go-netty-ws v0.0.0-20230609110133-51861cf6ab29
        github.com/gobwas/ws v1.2.1
        github.com/gorilla/websocket v1.5.0
        github.com/guonaihong/clop v0.2.11
        github.com/lxzan/gws v1.6.1
)

require (
        github.com/antlabs/strsim v0.0.2 // indirect
        github.com/antlabs/wsutil v0.0.11-0.20230719145545-cc6d4a700436 // indirect
        github.com/go-netty/go-netty v1.6.3 // indirect
        github.com/go-netty/go-netty-transport v1.7.1 // indirect
        github.com/go-playground/locales v0.14.0 // indirect
        github.com/go-playground/universal-translator v0.18.0 // indirect
        github.com/go-playground/validator/v10 v10.10.1 // indirect
        github.com/gobwas/httphead v0.1.0 // indirect
        github.com/gobwas/pool v0.2.1 // indirect
        github.com/klauspost/compress v1.16.5 // indirect
        github.com/leodido/go-urn v1.2.1 // indirect
        golang.org/x/crypto v0.6.0 // indirect
        golang.org/x/sys v0.6.0 // indirect
        golang.org/x/text v0.7.0 // indirect
)

WARNING: Dumb terminal, expect unglorified output. 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: 102123.6 MiB (107084371183 bytes) Total data received: 102122.3 MiB (107083045091 bytes) Bandwidth per channel: 5.703⇅ Mbps (712.9 kBps) Aggregate bandwidth: 28555.424↓, 28555.778↑ Mbps Packet rate estimate: 2606461.2↓, 2508085.4↑ (8↓, 33↑ TCP MSS/op) Test duration: 30.0001 s.

## 2023.7.18
github.com/antlabs/wsutil v0.0.10 // indirect
github.com/antlabs/quickws v0.0.8-0.20230718173244-1dec3bb7131e
* ./autobahn-quickws.linux -o  -d  -u
```console
➜  ~ tcpkali -c 10000 --connect-rate 10000 -r 10000 -T 30s -f 1K.txt --ws 127.0.0.1:9001/

WARNING: Dumb terminal, expect unglorified output.
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:     108343.7 MiB (113606565266 bytes)
Total data received: 109005.9 MiB (114301011678 bytes)
Bandwidth per channel: 6.072⇅ Mbps (759.0 kBps)
Aggregate bandwidth: 30479.730↓, 30294.548↑ Mbps
Packet rate estimate: 2781393.2↓, 2603418.4↑ (8↓, 35↑ TCP MSS/op)
Test duration: 30.0005 s.

WARNING: Dumb terminal, expect unglorified output. 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: 100629.5 MiB (105517672379 bytes) Total data received: 101493.2 MiB (106423292661 bytes) Bandwidth per channel: 5.651⇅ Mbps (706.4 kBps) Aggregate bandwidth: 28378.892↓, 28137.399↑ Mbps Packet rate estimate: 2598520.7↓, 2477706.6↑ (8↓, 34↑ TCP MSS/op) Test duration: 30.0007 s.

lxzan commented 1 year ago

你这CPU和内存有点厉害, 吊打我的R5 4650G

guonaihong commented 1 year ago

你这CPU和内存有点厉害, 吊打我的R5 4650G

入个零刻5800h小主机,现在可便宜了。😄

lxzan commented 1 year ago

4代ryzen太废了, 被笔记本cpu吊打 😂 我就没上过20,000 Mbps

guonaihong commented 1 year ago

4代ryzen太废了, 被笔记本cpu吊打 😂 我就没上过20,000 Mbps

换。。。