How to use stack bench

醉酒当歌 提交于 2019-12-11 13:46:02

问题


I've been playing around with using stack for a little haskell application, so far I have been able to build and test fine and was interested in looking at performance so tried stack bench however this is all that seems to happen:

c:\Users\jk\projects\foo>stack bench
stack bench

I don't think it can have done anything? My application does not appear to have run. Presuembly there is some configuration I am missing?


回答1:


stack bench will run any benchmark suites defined in your foo.cabal file. Without seeing it it's hard to say more, note though that you can run with -v to get more output.

From what I see above however I guess you don't have defined any benchmarks so stack bench does nothing because there is nothing to do :)



来源:https://stackoverflow.com/questions/31998500/how-to-use-stack-bench

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!