Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitecf7dec

Browse files
committed
ci/bench.sh: Install QEMU on CI
1 parentfb13df2 commitecf7dec

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

‎README.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,8 @@ Advantages of nhooyr.io/websocket:
120120
- Gorilla requires registering a pong callback before sending a Ping
121121
- Can target Wasm ([gorilla/websocket#432](https://github.com/gorilla/websocket/issues/432))
122122
- Transparent message buffer reuse with[wsjson](https://pkg.go.dev/nhooyr.io/websocket/wsjson) subpackage
123-
-[3x](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
123+
-[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
124124
- Gorilla's implementation is slower and uses[unsafe](https://golang.org/pkg/unsafe/).
125-
Soon we'll have assembly and be 3x faster[#326](https://github.com/nhooyr/websocket/pull/326)
126125
- Full[permessage-deflate](https://tools.ietf.org/html/rfc7692) compression extension support
127126
- Gorilla only supports no context takeover mode
128127
-[CloseRead](https://pkg.go.dev/nhooyr.io/websocket#Conn.CloseRead) helper for write only connections ([gorilla/websocket#492](https://github.com/gorilla/websocket/issues/492))

‎ci/bench.sh‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,10 @@ go test --run=^$ --bench=. --benchmem --memprofile ci/out/prof.mem --cpuprofile
88
gotest --run=^$ --bench=. --benchmem --memprofile ../../ci/out/prof-thirdparty.mem --cpuprofile ../../ci/out/prof-thirdparty.cpu -o ../../ci/out/thirdparty.test"$@".
99

1010
GOARCH=arm64 gotest -c -o ../../ci/out/thirdparty-arm64.test.
11+
if ["${CI-}" ];then
12+
sudo apt-get update
13+
sudo apt-get install -y qemu-user-static
14+
alias qemu-aarch64=qemu-aarch64-static
15+
fi
1116
qemu-aarch64 ../../ci/out/thirdparty-arm64.test --test.run=^$ --test.bench=Benchmark_mask --test.benchmem --test.memprofile ../../ci/out/prof-thirdparty-arm64.mem --test.cpuprofile ../../ci/out/prof-thirdparty-arm64.cpu.
1217
)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp