Haskell function execution time

前端 未结 6 1880
予麋鹿
予麋鹿 2020-12-12 15:35

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

6条回答
  •  隐瞒了意图╮
    2020-12-12 16:12

    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.

提交回复
热议问题