如何使用堆栈台

编程入门 行业动态 更新时间:2024-10-10 19:16:56
本文介绍了如何使用堆栈台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我一直在使用栈来处理一个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 :)

更多推荐

如何使用堆栈台

本文发布于:2023-11-29 05:56:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1645536.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:堆栈   如何使用

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!