Skip to content

Commit 35f8322

Browse files
authored
tests/thirdparty: add bytedance/gopkg (#418)
Adds the https://github.com/bytedance/gopkg `xxhash3` package to the third-party test suite.
1 parent 11e0a21 commit 35f8322

File tree

4 files changed

+102
-19
lines changed

4 files changed

+102
-19
lines changed

.github/workflows/packages.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,3 +1111,45 @@ jobs:
11111111
- name: Test
11121112
working-directory: circl/simd/keccakf1600
11131113
run: go test ./...
1114+
bytedance-gopkg-util-xxhash3:
1115+
runs-on: ubuntu-latest
1116+
steps:
1117+
- name: Install Go
1118+
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
1119+
with:
1120+
go-version: 1.21.x
1121+
check-latest: true
1122+
- name: Checkout avo
1123+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
1124+
with:
1125+
path: avo
1126+
persist-credentials: false
1127+
- name: Checkout bytedance/gopkg
1128+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
1129+
with:
1130+
repository: bytedance/gopkg
1131+
ref: a5eedbe96960cf0f801cf970e89f511842daee75
1132+
path: gopkg
1133+
persist-credentials: false
1134+
- name: Setup Generator Module
1135+
working-directory: gopkg/util/xxhash3/internal/avo
1136+
run: |
1137+
sed -i.bak '/build ignore/d' *.go
1138+
go mod init github.com/bytedance/gopkg/util/xxhash3/internal/avo
1139+
- name: Avo Module Replacement
1140+
working-directory: gopkg/util/xxhash3/internal/avo
1141+
run: |
1142+
go mod edit -modfile=go.mod -require=github.com/mmcloughlin/[email protected]
1143+
go mod edit -modfile=go.mod -replace=github.com/mmcloughlin/avo=${{ github.workspace }}/avo
1144+
go mod tidy -modfile=go.mod
1145+
- name: Generate
1146+
working-directory: gopkg/util/xxhash3/internal/avo
1147+
run: |
1148+
go run . -avx2 -out ../../avx2_amd64.s
1149+
go run . -sse2 -out ../../sse2_amd64.s
1150+
- name: Diff
1151+
working-directory: gopkg/util/xxhash3
1152+
run: git diff
1153+
- name: Test
1154+
working-directory: gopkg/util/xxhash3
1155+
run: go test ./...

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,10 @@ Implementations of full algorithms:
192192
Popular projects[^projects] using `avo`:
193193

194194
[^projects]: Projects drawn from the `avo` third-party test suite. Popularity
195-
estimated from Github star count collected on Jan 1, 2024.
195+
estimated from Github star count collected on Jan 9, 2024.
196196

197197
<img src="https://images.weserv.nl?fit=cover&h=24&mask=circle&maxage=7d&url=https%3A%2F%2Fgithub.com%2Fgolang.png&w=24" width="24" height="24" hspace="4" valign="middle" /> [golang / **go**](https://github.com/golang/go)
198-
:star: 116.7k
198+
:star: 116.8k
199199
> The Go programming language
200200
201201
<img src="https://images.weserv.nl?fit=cover&h=24&mask=circle&maxage=7d&url=https%3A%2F%2Fgithub.com%2Fklauspost.png&w=24" width="24" height="24" hspace="4" valign="middle" /> [klauspost / **compress**](https://github.com/klauspost/compress)
@@ -210,12 +210,16 @@ estimated from Github star count collected on Jan 1, 2024.
210210
:star: 1.8k
211211
> Reed-Solomon Erasure Coding in Go
212212
213+
<img src="https://images.weserv.nl?fit=cover&h=24&mask=circle&maxage=7d&url=https%3A%2F%2Fgithub.com%2Fbytedance.png&w=24" width="24" height="24" hspace="4" valign="middle" /> [bytedance / **gopkg**](https://github.com/bytedance/gopkg)
214+
:star: 1.4k
215+
> Universal Utilities for Go
216+
213217
<img src="https://images.weserv.nl?fit=cover&h=24&mask=circle&maxage=7d&url=https%3A%2F%2Fgithub.com%2Fcloudflare.png&w=24" width="24" height="24" hspace="4" valign="middle" /> [cloudflare / **circl**](https://github.com/cloudflare/circl)
214218
:star: 1.1k
215219
> CIRCL: Cloudflare Interoperable Reusable Cryptographic Library
216220
217221
<img src="https://images.weserv.nl?fit=cover&h=24&mask=circle&maxage=7d&url=https%3A%2F%2Fgithub.com%2Fsegmentio.png&w=24" width="24" height="24" hspace="4" valign="middle" /> [segmentio / **asm**](https://github.com/segmentio/asm)
218-
:star: 820
222+
:star: 821
219223
> Go library providing algorithms optimized to leverage the characteristics of modern CPUs
220224
221225
<img src="https://images.weserv.nl?fit=cover&h=24&mask=circle&maxage=7d&url=https%3A%2F%2Fgithub.com%2Fzeebo.png&w=24" width="24" height="24" hspace="4" valign="middle" /> [zeebo / **xxh3**](https://github.com/zeebo/xxh3)
@@ -230,10 +234,6 @@ estimated from Github star count collected on Jan 1, 2024.
230234
:star: 316
231235
> A pure-Go implementation of the BLAKE3 cryptographic hash function
232236
233-
<img src="https://images.weserv.nl?fit=cover&h=24&mask=circle&maxage=7d&url=https%3A%2F%2Fgithub.com%2Fminio.png&w=24" width="24" height="24" hspace="4" valign="middle" /> [minio / **md5-simd**](https://github.com/minio/md5-simd)
234-
:star: 159
235-
> Accelerate aggregated MD5 hashing performance up to 8x for AVX512 and 4x for AVX2. Useful for server applications that need to compute many MD5 sums in parallel.
236-
237237
See the [full list of projects using `avo`](doc/adopters.md).
238238

239239
## Contributing

doc/adopters.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ Optimized Go Compression Packages
1616

1717
Reed-Solomon Erasure Coding in Go
1818

19+
<img src="https://images.weserv.nl?fit=cover&h=28&mask=circle&maxage=7d&url=https%3A%2F%2Fgithub.com%2Fbytedance.png&w=28" width="28" height="28" hspace="4" valign="middle" /> [bytedance / **gopkg**](https://github.com/bytedance/gopkg)
20+
21+
Universal Utilities for Go
22+
1923
<img src="https://images.weserv.nl?fit=cover&h=28&mask=circle&maxage=7d&url=https%3A%2F%2Fgithub.com%2Fcloudflare.png&w=28" width="28" height="28" hspace="4" valign="middle" /> [cloudflare / **circl**](https://github.com/cloudflare/circl)
2024

2125
CIRCL: Cloudflare Interoperable Reusable Cryptographic Library
@@ -40,14 +44,14 @@ A pure-Go implementation of the BLAKE3 cryptographic hash function
4044

4145
Accelerate aggregated MD5 hashing performance up to 8x for AVX512 and 4x for AVX2. Useful for server applications that need to compute many MD5 sums in parallel.
4246

43-
<img src="https://images.weserv.nl?fit=cover&h=28&mask=circle&maxage=7d&url=https%3A%2F%2Fgithub.com%2FFiloSottile.png&w=28" width="28" height="28" hspace="4" valign="middle" /> [FiloSottile / **edwards25519**](https://github.com/FiloSottile/edwards25519)
44-
45-
filippo.io/edwards25519 — A safer, faster, and more powerful low-level edwards25519 Go implementation.
46-
4747
<img src="https://images.weserv.nl?fit=cover&h=28&mask=circle&maxage=7d&url=https%3A%2F%2Fgithub.com%2Fdgryski.png&w=28" width="28" height="28" hspace="4" valign="middle" /> [dgryski / **go-bloomindex**](https://github.com/dgryski/go-bloomindex)
4848

4949
Bloom-filter based search index
5050

51+
<img src="https://images.weserv.nl?fit=cover&h=28&mask=circle&maxage=7d&url=https%3A%2F%2Fgithub.com%2FFiloSottile.png&w=28" width="28" height="28" hspace="4" valign="middle" /> [FiloSottile / **edwards25519**](https://github.com/FiloSottile/edwards25519)
52+
53+
filippo.io/edwards25519 — A safer, faster, and more powerful low-level edwards25519 Go implementation.
54+
5155
<img src="https://images.weserv.nl?fit=cover&h=28&mask=circle&maxage=7d&url=https%3A%2F%2Fgithub.com%2Fphoreproject.png&w=28" width="28" height="28" hspace="4" valign="middle" /> [phoreproject / **bls**](https://github.com/phoreproject/bls)
5256

5357
Go implementation of the BLS12-381 pairing

tests/thirdparty/suite.json

Lines changed: 45 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
},
172172
"metadata": {
173173
"description": "Reed-Solomon Erasure Coding in Go",
174-
"stars": 1754
174+
"stars": 1755
175175
},
176176
"default_branch": "master",
177177
"version": "922778284547557265cff0f903ab5f4c27e40ae9",
@@ -230,7 +230,7 @@
230230
},
231231
"metadata": {
232232
"description": "Optimized Go Compression Packages",
233-
"stars": 4320
233+
"stars": 4332
234234
},
235235
"default_branch": "master",
236236
"version": "2f236383d7c2faa8ef7e354ccecb926a5b47a24d",
@@ -275,7 +275,7 @@
275275
},
276276
"metadata": {
277277
"description": "Bloom-filter based search index",
278-
"stars": 116
278+
"stars": 118
279279
},
280280
"default_branch": "master",
281281
"version": "0902316dce158c154b958ee5cfc706c62af29a42",
@@ -519,7 +519,7 @@
519519
},
520520
"metadata": {
521521
"description": "Go library providing algorithms optimized to leverage the characteristics of modern CPUs",
522-
"stars": 820
522+
"stars": 821
523523
},
524524
"default_branch": "main",
525525
"version": "2bf3fdd47b1cdbe8fe020f032caf14891e10a85f",
@@ -634,7 +634,7 @@
634634
"metadata": {
635635
"description": "[mirror] Go supplementary cryptography libraries",
636636
"homepage": "https://golang.org/x/crypto",
637-
"stars": 2864
637+
"stars": 2869
638638
},
639639
"default_branch": "master",
640640
"version": "089bfa5675191fd96a44247682f76ebca03d7916",
@@ -746,7 +746,7 @@
746746
"metadata": {
747747
"description": "The Go programming language",
748748
"homepage": "https://go.dev",
749-
"stars": 116689
749+
"stars": 116833
750750
},
751751
"default_branch": "master",
752752
"version": "go1.20.1",
@@ -817,7 +817,7 @@
817817
"metadata": {
818818
"description": "CIRCL: Cloudflare Interoperable Reusable Cryptographic Library",
819819
"homepage": "http://blog.cloudflare.com/introducing-circl",
820-
"stars": 1083
820+
"stars": 1088
821821
},
822822
"default_branch": "main",
823823
"version": "v1.1.0",
@@ -859,7 +859,44 @@
859859
]
860860
}
861861
]
862+
},
863+
{
864+
"repository": {
865+
"owner": "bytedance",
866+
"name": "gopkg"
867+
},
868+
"metadata": {
869+
"description": "Universal Utilities for Go",
870+
"stars": 1405
871+
},
872+
"default_branch": "develop",
873+
"version": "a5eedbe96960cf0f801cf970e89f511842daee75",
874+
"packages": [
875+
{
876+
"pkg": "util/xxhash3",
877+
"module": "internal/avo/go.mod",
878+
"setup": [
879+
{
880+
"name": "Setup Generator Module",
881+
"dir": "internal/avo",
882+
"commands": [
883+
"sed -i.bak '/build ignore/d' *.go",
884+
"go mod init github.com/bytedance/gopkg/util/xxhash3/internal/avo"
885+
]
886+
}
887+
],
888+
"generate": [
889+
{
890+
"dir": "internal/avo",
891+
"commands": [
892+
"go run . -avx2 -out ../../avx2_amd64.s",
893+
"go run . -sse2 -out ../../sse2_amd64.s"
894+
]
895+
}
896+
]
897+
}
898+
]
862899
}
863900
],
864-
"metadata_last_update": "2024-01-01T05:28:16.191838199Z"
901+
"metadata_last_update": "2024-01-09T01:47:54.01555539Z"
865902
}

0 commit comments

Comments
 (0)