Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/shenwei356/uint64-hash-bench

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/shenwei356/uint64-hash-bench

  • v0.0.0-20200222110042-e13bd2794d5e
  • Source
  • Go
  • Socket score

Version published
Created
Source

Benchmark of three uint64 hash functions

Hash functions

  • maphsh, go1.14rc1
  • xxhash, version d7df741
  • murmur3, version 539464a
  • Thomas Wang’s 64-bit integer hash function
  • Inverse of Thomas Wang’s 64-bit integer hash function

Result

$ go test . -bench=Benchmark* -benchmem
goos: linux
goarch: amd64
pkg: github.com/shenwei356/uint64-hash-bench
BenchmarkGoMapHash-16                           74581323                16.2 ns/op             0 B/op          0 allocs/op
BenchmarkXxhashMethod-16                        107216905               11.6 ns/op             0 B/op          0 allocs/op
BenchmarkXxhashFunction-16                      282878127                4.15 ns/op            0 B/op          0 allocs/op
BenchmarkMurmur3-16                             42436113                29.0 ns/op             0 B/op          0 allocs/op
BenchmarkThomasWangUint64Hash-16                777305191                1.52 ns/op            0 B/op          0 allocs/op
BenchmarkInverseThomasWangUint64Hash-16         231070869                5.14 ns/op            0 B/op          0 allocs/op

BenchmarkMutexLockUnlock-16                     88848709                13.6 ns/op             0 B/op          0 allocs/op

FAQs

Package last updated on 22 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc