@@ -257,7 +257,7 @@ The following stress test were performed without timeouts:
257
257
258
258
Executing ` tcpkali --ws -c 100 -m 'hello world!!13212312!' -r 10k localhost:8081 ` the tests shows the following:
259
259
260
- Websocket:
260
+ ### Websocket:
261
261
```
262
262
Total data sent: 267.7 MiB (280678466 bytes)
263
263
Total data received: 229.5 MiB (240626600 bytes)
@@ -267,7 +267,20 @@ Packet rate estimate: 247050.1↓, 61842.9↑ (1↓, 1↑ TCP MSS/op)
267
267
Test duration: 10.0075 s.
268
268
```
269
269
270
- Gorilla:
270
+ ### Websocket for net/http:
271
+ ```
272
+ Total data sent: 267.3 MiB (280320124 bytes)
273
+ Total data received: 228.3 MiB (239396374 bytes)
274
+ Bandwidth per channel: 4.156⇅ Mbps (519.5 kBps)
275
+ Aggregate bandwidth: 191.442↓, 224.168↑ Mbps
276
+ Packet rate estimate: 188107.1↓, 52240.7↑ (1↓, 1↑ TCP MSS/op)
277
+ Test duration: 10.0039 s.
278
+ ```
279
+
280
+ Either for fasthttp and net/http should be quite close,
281
+ the only difference is the way they both upgrade.
282
+
283
+ ### Gorilla:
271
284
```
272
285
Total data sent: 260.2 MiB (272886768 bytes)
273
286
Total data received: 109.3 MiB (114632982 bytes)
@@ -277,7 +290,7 @@ Packet rate estimate: 109755.3↓, 66807.4↑ (1↓, 1↑ TCP MSS/op)
277
290
Test duration: 10.01 s.
278
291
```
279
292
280
- Nhooyr: (Don't know why is that low)
293
+ ### Nhooyr: (Don't know why is that low)
281
294
```
282
295
Total data sent: 224.3 MiB (235184096 bytes)
283
296
Total data received: 41.2 MiB (43209780 bytes)
@@ -287,7 +300,7 @@ Packet rate estimate: 88474.0↓, 55256.1↑ (1↓, 1↑ TCP MSS/op)
287
300
Test duration: 10.0027 s.
288
301
```
289
302
290
- Gobwas:
303
+ ### Gobwas:
291
304
```
292
305
Total data sent: 265.8 MiB (278718160 bytes)
293
306
Total data received: 117.8 MiB (123548959 bytes)
0 commit comments