dan*_*anr 10 haskell haskell-criterion
有一个从输出HTML的一个很好的例子标准在http://bos.github.com/criterion/.
哪个命令行选项用于生成此输出?
好吧,如果你只想要html输出,那么yourBench -o yourReport.html将产生一些完全合理的输出.如果要使用自己的模板,请查看分发中的templates/report.tpl示例并使用该-t选项.
对不起,我没有回答您的评论问题.
Jedai给出的答案是正确的 - 只是使用-o.例如,以下是来自我的一个Makefile的一行,用于使用defaultMainCriterion 运行基准测试:
./Bench -g -u Bench.csv -o Bench.html -s $(SAMPLES)
Run Code Online (Sandbox Code Playgroud)
打破这种情况,它说:
-g run GC between each sample
-u output CSV data to the given file
-o output HTML data to the given file
-s collect this many samples
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1039 次 |
| 最近记录: |