1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
--- _build/src/github.com/coder/websocket/internal/thirdparty/frame_test.go.orig 2024-12-03 08:53:31.928527735 -0600
+++ _build/src/github.com/coder/websocket/internal/thirdparty/frame_test.go 2024-12-03 08:54:02.475915804 -0600
@@ -23,9 +23,6 @@
//go:linkname maskGo github.com/coder/websocket.maskGo
func maskGo(b []byte, key32 uint32) int
-//go:linkname maskAsm github.com/coder/websocket.maskAsm
-func maskAsm(b *byte, len int, key32 uint32) uint32
-
//go:linkname gorillaMaskBytes github.com/gorilla/websocket.maskBytes
func gorillaMaskBytes(key [4]byte, pos int, b []byte) int
@@ -72,17 +69,6 @@
}
},
},
- {
- name: "wdvxdr1123-asm",
- fn: func(b *testing.B, key [4]byte, p []byte) {
- key32 := binary.LittleEndian.Uint32(key[:])
- b.ResetTimer()
-
- for i := 0; i < b.N; i++ {
- maskAsm(&p[0], len(p), key32)
- }
- },
- },
{
name: "gorilla",
|