Skip to content

Instantly share code, notes, and snippets.

@hackwaly
hackwaly / HAMT.ml
Created August 8, 2023 02:57 — forked from Guest0x0/HAMT.ml
Hash Array Mapped Trie implementation & benchmark in OCaml
(* HAMT v.s. AVL benchmark.
test for their usage as string map.
usage:
> ocamlopt HAMT.ml -o <executable-name>
> <executable-name> (avl|hamt) (random|ordered) <key-length>
time data of the form:
<tree-size> <add-time> <find-time>