3

I'm using stack as a build tool, and criterion as benchmarking library. To run the benchmarks I execute the following command:

stack bench

Criterion accepts command line arguments to specify where the output should be written to. I would like to pass these arguments to the executable built and run by stack. Is there a way to achieve this?

Damian Nadales
  • 4,907
  • 1
  • 21
  • 34

1 Answers1

4
stack bench --benchmark-arguments "--arguments --for --criterion"

(It's among options listed under stack bench --help.)

Li-yao Xia
  • 31,896
  • 2
  • 33
  • 56