阅读背景:

如何可靠地比较Haskell和C的运行时?

来源:互联网 

I used Criterion library to write benchmarks for my Haskell functions. Now I am implementing the same algorithm in C to compare performance with Haskell. The question is how can I do it reliably? Criterion does a lot of fancy stuff like accounting for clock call overhead and doing statistical analysis of the results. I guess that if I just measure time needed by my C function it will not be comparable with the results returned by Criterion. In his I used Criterion library to write benchmarks fo




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: