标准的能力

时间:2012-03-16 00:24:25

标签: haskell criterion

我找到了一些使用标准here的旧例子。看起来好像在2009年,它支持绘制图形的命令行选项。

现在,当我导入标准0.6时,将其包装在基本应用程序中(进行测试)并说出./application --help它只给出了很少的可用选项,并且没有任何与绘图相关的选项。在我看来,对于输出格式和功能而言,它在2009年拥有的功能比2012年更多?

似乎有一个criterion-to-html可以创建基本的HTML报告,但没有任何内容可以接近,例如png输出显示在上面的网站或标准源包的examples目录中。

我在哪里可以找到准确和最新的信息?

./application --help

Usage: application [OPTIONS] [BENCHMARKS]
  -h, -?       --help               print help, then exit
  -G           --no-gc              do not collect garbage between iterations
  -g           --gc                 collect garbage between iterations
  -I CI        --ci=CI              bootstrap confidence interval
  -l           --list               print only a list of benchmark names
  -o FILENAME  --output=FILENAME    report file to write to
  -q           --quiet              print less output
               --resamples=N        number of bootstrap resamples to perform
  -s N         --samples=N          number of samples to collect
  -t FILENAME  --template=FILENAME  template file to use
  -u FILENAME  --summary=FILENAME   produce a summary CSV file of all results
  -V           --version            display version, then exit
  -v           --verbose            print more output
If no benchmark names are given, all are run
Otherwise, benchmarks are run by prefix match


 ./application -k win
Error: unrecognized option `-k'
Run "application --help" for usage information

1 个答案:

答案 0 :(得分:2)

由于评论中的monadic链接 - 标准中不再支持图表(通过图表库)。它提供的最好的是CSV输出和HTML output,两者都非常有用。可以使用您想要的任何内容(pgfplots,Chart,gnuplot等)绘制CSV输出,但需要进行一些解析。 HTML非常好,如果你不是在寻找任何自动化的东西,你可以拍一张屏幕截图。

如果你有时间,那么也许你可以建立/上传一个读取Criterion CSVs的包并通过Chart生成旧的条形图(或者甚至更好的!)。

相关问题