Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Deprecated] feat(hash): add xfnv #24

Merged
merged 1 commit into from
Sep 13, 2024
Merged

[Deprecated] feat(hash): add xfnv #24

merged 1 commit into from
Sep 13, 2024

Conversation

xiaost
Copy link
Collaborator

@xiaost xiaost commented Sep 13, 2024

goos: darwin
goarch: arm64
pkg: [github.com/cloudwego/gopkg/hash/xfnv](http://github.com/cloudwego/gopkg/hash/xfnv)
cpu: Apple M2 Pro
BenchmarkHash/size-8-xfnv-12         	717303117	         1.446 ns/op	5532.30 MB/s	       0 B/op	       0 allocs/op
BenchmarkHash/size-16-xfnv-12        	511216770	         2.331 ns/op	6863.04 MB/s	       0 B/op	       0 allocs/op
BenchmarkHash/size-32-xfnv-12        	412136562	         2.900 ns/op	11033.81 MB/s	       0 B/op	       0 allocs/op
BenchmarkHash/size-64-xfnv-12        	290687257	         4.077 ns/op	15697.38 MB/s	       0 B/op	       0 allocs/op
BenchmarkHash/size-128-xfnv-12       	185321935	         6.581 ns/op	19450.86 MB/s	       0 B/op	       0 allocs/op
BenchmarkHash/size-512-xfnv-12       	45126494	        25.66 ns/op	19953.27 MB/s	       0 B/op	       0 allocs/op

BenchmarkHash/size-8-xxhash3-12      	577990251	         2.069 ns/op	3866.08 MB/s	       0 B/op	       0 allocs/op
BenchmarkHash/size-16-xxhash3-12     	552189901	         2.133 ns/op	7500.65 MB/s	       0 B/op	       0 allocs/op
BenchmarkHash/size-32-xxhash3-12     	368224900	         3.251 ns/op	9844.28 MB/s	       0 B/op	       0 allocs/op
BenchmarkHash/size-64-xxhash3-12     	255709491	         4.665 ns/op	13720.10 MB/s	       0 B/op	       0 allocs/op
BenchmarkHash/size-128-xxhash3-12    	162289681	         7.374 ns/op	17357.58 MB/s	       0 B/op	       0 allocs/op
BenchmarkHash/size-512-xxhash3-12    	35457762	        33.96 ns/op	15075.21 MB/s	       0 B/op	       0 allocs/op

BenchmarkHash/size-8-maphash-12      	317968779	         3.769 ns/op	2122.63 MB/s	       0 B/op	       0 allocs/op
BenchmarkHash/size-16-maphash-12     	459757710	         2.604 ns/op	6144.16 MB/s	       0 B/op	       0 allocs/op
BenchmarkHash/size-32-maphash-12     	468764800	         2.600 ns/op	12305.84 MB/s	       0 B/op	       0 allocs/op
BenchmarkHash/size-64-maphash-12     	344560749	         3.482 ns/op	18379.42 MB/s	       0 B/op	       0 allocs/op
BenchmarkHash/size-128-maphash-12    	229868084	         5.236 ns/op	24444.13 MB/s	       0 B/op	       0 allocs/op
BenchmarkHash/size-512-maphash-12    	34775300	        34.05 ns/op	15036.77 MB/s	       0 B/op	       0 allocs/op

What type of PR is this?

feat

Check the PR title.

  • This PR title match the format: <type>(optional scope): <description>
  • The description of this PR title is user-oriented and clear enough for others to understand.
  • Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo

(Optional) Translate the PR title into Chinese.

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en:
zh(optional):

(Optional) Which issue(s) this PR fixes:

(optional) The PR that updates user documentation:

joway
joway previously approved these changes Sep 13, 2024
jayantxie
jayantxie previously approved these changes Sep 13, 2024
@xiaost xiaost merged commit c2f7170 into main Sep 13, 2024
16 checks passed
@xiaost xiaost deleted the feat/xfnv branch September 13, 2024 07:59
@xiaost xiaost changed the title feat(hash): add xfnv [Deprecated] feat(hash): add xfnv Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants