xxhash-ffi: Bindings and high-level helpers for xxHash

[ bsd3, cryptography, library ] [ Propose Tags ] [ Report a vulnerability ]

Bindings and high-level helpers for xxHash family of extremely fast non-cryptographic hash functions.


[Skip to Readme]

Flags

Automatic Flags
NameDescriptionDefault
pkg-config

Use pkg-config(1) to locate foreign xxhash library.

Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.1.0.1, 0.2.0.0, 0.3 (info)
Change log CHANGELOG.md
Dependencies base (>=4.10 && <5), bytestring (<0.13), data-array-byte (<0.2), hashable (<1.6), text (<2.2) [details]
Tested with ghc ==9.10.1, ghc ==9.8.2, ghc ==9.6.4, ghc ==9.4.8, ghc ==9.2.8, ghc ==9.0.2, ghc ==8.10.7, ghc ==8.8.4, ghc ==8.6.5, ghc ==8.4.4, ghc ==8.2.2
License BSD-3-Clause
Copyright 2017 Henri Verroken
Author Henri Verroken
Maintainer Bodigrim
Revised Revision 1 made by Bodigrim at 2024-07-04T20:38:50Z
Category Cryptography
Home page https://github.com/haskell-haskey/xxhash-ffi#readme
Source repo head: git clone https://github.com/hverr/xxhash-ffi
Uploaded by Bodigrim at 2024-03-28T21:49:54Z
Distributions LTSHaskell:0.3, NixOS:0.2.0.0, Stackage:0.3
Reverse Dependencies 1 direct, 2 indirect [details]
Downloads 2763 total (18 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2024-03-28 [all 1 reports]

Readme for xxhash-ffi-0.3

[back to package description]

xxhash-ffi

Hackage Stackage Nightly Stackage LTS

Haskell bindings and high-level helpers for xxHash family of extremely fast non-cryptographic hash functions.

Benchmarks against hashable-1.4.3.0 on x86_64:

10B
  Data.Digest.XXHash.FFI.XXH3:
    20.2 ns ± 692 ps
  Data.Hashable:
    20.3 ns ± 722 ps
1kB
  Data.Digest.XXHash.FFI.XXH3:
    80.8 ns ± 2.0 ns
  Data.Hashable:
    1.27 μs ±  16 ns
4kB
  Data.Digest.XXHash.FFI.XXH3:
    236  ns ± 7.9 ns
  Data.Hashable:
    5.09 μs ± 135 ns
1MB
  Data.Digest.XXHash.FFI.XXH3:
    138  μs ± 3.4 μs
  Data.Hashable:
    3.19 ms ±  60 μs

Benchmarks against hashable-1.4.3.0 on aarch64:

10B
  Data.Digest.XXHash.FFI.XXH3:
    10.2 ns ± 208 ps
  Data.Hashable:
    12.1 ns ± 404 ps
1kB
  Data.Digest.XXHash.FFI.XXH3:
    71.7 ns ± 1.8 ns
  Data.Hashable:
    1.14 μs ±  27 ns
4kB
  Data.Digest.XXHash.FFI.XXH3:
    289  ns ± 7.0 ns
  Data.Hashable:
    4.71 μs ± 187 ns
1MB
  Data.Digest.XXHash.FFI.XXH3:
    175  μs ± 6.9 μs
  Data.Hashable:
    2.87 ms ± 108 μs