snowflake/common
David Fifield 4ae63eccab Benchmark websocket.Conn Upgrade creation.
I had thought to set a buffer size of 2048, half the websocket package
default of 4096. But it turns out when you don't set a buffer size, the
websocket package reuses the HTTP server's read/write buffers, which
empirically already have a size of 2048.

	$ go test -bench=BenchmarkUpgradeBufferSize -benchmem -benchtime=5s
	BenchmarkUpgradeBufferSize/0-4                     25669            234566 ns/op           32604 B/op        113 allocs/op
	BenchmarkUpgradeBufferSize/128-4                   24739            238283 ns/op           24325 B/op        117 allocs/op
	BenchmarkUpgradeBufferSize/1024-4                  25352            238885 ns/op           28087 B/op        116 allocs/op
	BenchmarkUpgradeBufferSize/2048-4                  22660            234890 ns/op           32444 B/op        116 allocs/op
	BenchmarkUpgradeBufferSize/4096-4                  25668            232591 ns/op           41672 B/op        116 allocs/op
	BenchmarkUpgradeBufferSize/8192-4                  24908            240755 ns/op           59103 B/op        116 allocs/op
2022-11-16 13:48:34 -07:00
..
amp format using go-1.19 2022-10-09 21:15:50 +02:00
bridgefingerprint Represent Bridge Fingerprint As String 2022-06-16 14:06:58 +01:00
encapsulation format using go-1.19 2022-10-09 21:15:50 +02:00
event Use event logger for proxy starting message and NAT info 2022-11-16 10:08:10 -08:00
ipsetsink Use truncated hash instead crc64 for counted hash 2022-06-16 15:00:12 +01:00
messages format using go-1.19 2022-10-09 21:15:50 +02:00
namematcher Update Relay Pattern format to include dollar sign 2022-06-16 14:06:58 +01:00
nat Wrap client NAT log 2022-05-31 08:52:23 -07:00
safelog format using go-1.19 2022-10-09 21:15:50 +02:00
task Wait some time before displaying the proxy usage log 2022-05-25 11:01:01 -04:00
turbotunnel Increase smux and QueuePacketConn buffer sizes 2021-08-10 15:38:11 -04:00
util Bump version of pion/sdp 2021-01-25 10:28:17 -05:00
utls Don't use entropy for test 2022-06-02 17:24:54 +02:00
websocketconn Benchmark websocket.Conn Upgrade creation. 2022-11-16 13:48:34 -07:00