I'm currently working on a project using the vcache-trie module. I'm looking to test the execution speed of a research inside the trie with the lookupPrefix function.
This is a benchmark created with Criterion for this purpose :
bench "trieSearch" $ nf (lookupPrefix (pack "ab")) trie
where trie is created in an environment for criterion. The type of this trie is Trie Int.
As the environment is evaluated to normal form I need to create an instance of NFData for this specific type.
The content of the trie for this specific case is [(ByteString, Int)], I assume the instance of NFData should evaluate each tuple but I'm not sure how to proceed.
Any help would be greatly appreciate, thanks for taking the time to read my issue.