问题描述
我一直在使用栈来处理一个Haskell应用程序,到目前为止,我已经能够构建和测试了,并且有兴趣查看性能,所以试过 stack bench
然而,这是所有似乎都发生的事情:
c:\Users\jk\projects\foo> ;堆栈长凳
堆栈长凳
我不认为它可以做任何事情吗?我的应用程序似乎没有运行。 Presuembly有一些我缺少的配置?
stack bench
will运行在 foo.cabal
文件中定义的任何基准套件。没有看到它很难说更多,但请注意,您可以使用 -v
运行以获得更多输出。
从上面我看到的,但我猜你没有定义任何基准,所以 stack bench
什么都不做,因为没有什么可做的:)
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?
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 :)
这篇关于如何使用堆栈台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!