latency benchmark tool in C an Haskell