Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
5df0303
mask.go: Use SIMD masking for amd64 and arm64
wdvxdr1123 Jan 24, 2022
cda2170
Refactor and compile masking code again
nhooyr Oct 19, 2023
f5397ae
mask_asm.go: Disable AVX2
nhooyr Oct 19, 2023
14172e5
Benchmark pure go masking algorithm separately from assembly
nhooyr Oct 19, 2023
685a56e
Update README.md to indicate assembly websocket masking
nhooyr Oct 19, 2023
cb7509a
mask_amd64.s: Remove AVX2 fully
nhooyr Oct 19, 2023
3f8c9e0
mask_amd64.s: Minor improvements
nhooyr Oct 19, 2023
367743d
mask_amd64.sh: Cleanup
nhooyr Oct 19, 2023
27f80cb
mask.go: Cleanup assembly and add nbio benchmark
nhooyr Oct 19, 2023
369d641
mask_arm64.s: Cleanup
nhooyr Oct 20, 2023
fb13df2
ci/bench.sh: Benchmark masking on arm64 with QEMU
nhooyr Oct 20, 2023
ecf7dec
ci/bench.sh: Install QEMU on CI
nhooyr Oct 20, 2023
d34e5d4
wsjson: Add json.Encoder vs json.Marshal benchmark
nhooyr Oct 20, 2023
e25d968
ci/bench.sh: Don't profile by default
nhooyr Oct 20, 2023
640e3c2
ci/bench.sh: Try function instead of alias
nhooyr Oct 20, 2023
0596e7a
wsjson: Extend benchmark with multiple sizes
nhooyr Oct 20, 2023
30447a3
ci/bench.sh: Just symlink the expected qemu-aarch64 binary name
nhooyr Oct 20, 2023
f4e61e5
ci/fmt.sh: Error if changes on CI
nhooyr Oct 21, 2023
f533f43
mask.go: Reorganize
nhooyr Oct 21, 2023
a1bb441
ci: Fix dev coverage output
nhooyr Feb 7, 2024
fee3739
mask_asm: Note implementation may not be perfect
nhooyr Feb 7, 2024
68fc887
mask.go: Revert my changes
nhooyr Feb 22, 2024
f62cef3
test.sh: Test assembly masking on arm64
nhooyr Feb 22, 2024
92acb74
internal/xcpu: Vendor golang.org/x/sys/cpu
nhooyr Feb 22, 2024
17e1b86
mask_asm: Disable AVX2
nhooyr Feb 22, 2024
2cd18b3
README.md: Link to assembly benchmark results
nhooyr Feb 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
mask_asm: Disable AVX2
  • Loading branch information
nhooyr committed Feb 22, 2024
commit 17e1b864a276ee7a45d6b14f4ed8445a05de543c
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Advantages of nhooyr.io/websocket:
- Gorilla requires registering a pong callback before sending a Ping
- Can target Wasm ([gorilla/websocket#432](https://github.com/gorilla/websocket/issues/432))
- Transparent message buffer reuse with [wsjson](https://pkg.go.dev/nhooyr.io/websocket/wsjson) subpackage
- [4x](https://github.com/nhooyr/websocket/pull/326) faster WebSocket masking implementation in assembly for amd64 and arm64 and [2x](https://github.com/nhooyr/websocket/releases/tag/v1.7.4) faster implementation in pure Go
- [3-4x](https://github.com/nhooyr/websocket/pull/326) faster WebSocket masking implementation in assembly for amd64 and arm64 and [2x](https://github.com/nhooyr/websocket/releases/tag/v1.7.4) faster implementation in pure Go
- Gorilla's implementation is slower and uses [unsafe](https://golang.org/pkg/unsafe/).
- Full [permessage-deflate](https://tools.ietf.org/html/rfc7692) compression extension support
- Gorilla only supports no context takeover mode
Expand Down
10 changes: 0 additions & 10 deletions internal/xcpu/.gitattributes

This file was deleted.

2 changes: 0 additions & 2 deletions internal/xcpu/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions internal/xcpu/README.md

This file was deleted.

17 changes: 0 additions & 17 deletions internal/xcpu/asm_aix_ppc64.s

This file was deleted.

66 changes: 0 additions & 66 deletions internal/xcpu/byteorder.go

This file was deleted.

Loading