github.com/simonmittag/ws@v1.1.0-rc.5.0.20210419231947-82b846128245/nonce_test.go (about) 1 package ws 2 3 import "testing" 4 5 func BenchmarkInitAcceptFromNonce(b *testing.B) { 6 dst := make([]byte, acceptSize) 7 nonce := mustMakeNonce() 8 for i := 0; i < b.N; i++ { 9 initAcceptFromNonce(dst, nonce) 10 } 11 }