Haskell函数执行时间 [英] Haskell function execution time

查看:201
本文介绍了Haskell函数执行时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种简单的方法来计算Haskell中函数执行的时间?

解决方案

最简单的事情就是在:set + s code> ghci ,然后你就可以看到你运行的任何执行时间以及内存使用情况。


Is there a simple method to compute time of function execution in Haskell?

解决方案

Simplest things is to just do :set +s in ghci, and then you can see the execution time of anything you run, along with memory usage.

这篇关于Haskell函数执行时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆