I'm messing around with binary trees, and I'm trying to get a very rough benchmark of a few functions using GHCi. I only want to get the time required to evaluate the test functions; not how long it takes to fold the tree. If I have:
"ghci>" let tR = tFromListR [1..1000000] --I want to force this to evaluate "ghci>" tMax tR --I want to get the time required to evaluate this
How can I force evaluation of the first line (so the generation time isn't included)? I could obviously just type "tR", which would print the massive tree, but it outputs rather slowly. It would probably take an hour to 2 to completely print.
(Yes I know GHCi will be slower then fully compiled code. I'm looking for relative times)