ocaml-containers/benchs
Simon Cruanes 81d7e5cc60 CCInt.hash: replace OCaml Int64 loop with C stub (FNV-1a)
Implement FNV-1a hashing for CCInt.hash (and CCInt64.hash) as a C stub
instead of a pure-OCaml Int64-based loop. The core hash operates on
int64 values with separate entry points for int and int64.

Includes a throughput benchmark in benchs/run_benchs.ml comparing the
old pure-OCaml FNV hash vs the new C stub. The C stub is ~2x faster
(~117k/s vs ~58k/s) with zero allocations.
2026-02-16 12:30:17 +00:00
..
dune CCInt.hash: replace OCaml Int64 loop with C stub (FNV-1a) 2026-02-16 12:30:17 +00:00
objsize.ml reformat 2022-07-04 13:36:06 -04:00
ref_impl.ml move to ocamlformat 0.27, format code 2025-11-25 20:11:54 -05:00
run_bench_hash.ml move to dune 3.0, fix warnings 2024-05-13 21:42:54 -04:00
run_benchs.ml CCInt.hash: replace OCaml Int64 loop with C stub (FNV-1a) 2026-02-16 12:30:17 +00:00
run_benchs.sh helper script to run benchs 2024-05-13 21:05:55 -04:00
run_objsize.ml reformat 2022-07-04 13:36:06 -04:00