【问题标题】:Passing command line arguments to the benhmark program using stack使用堆栈将命令行参数传递给 Benhmark 程序
【发布时间】:2017-11-19 08:34:16
【问题描述】:

我使用stack 作为构建工具,criterion 作为基准测试库。要运行基准测试,我执行以下命令:

stack bench

Criterion 接受命令行参数来指定输出应写入的位置。我想将这些参数传递给由stack 构建和运行的可执行文件。有没有办法做到这一点?

【问题讨论】:

    标签: haskell haskell-stack criterion


    【解决方案1】:
    stack bench --benchmark-arguments "--arguments --for --criterion"
    

    (它在stack bench --help 下列出的选项中。)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-06
      • 2020-01-01
      • 2010-10-04
      • 1970-01-01
      • 2018-06-22
      相关资源
      最近更新 更多