Damian Nadales
Damian Nadales

Reputation: 5037

Passing command line arguments to the benhmark program using stack

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?

Upvotes: 3

Views: 366

Answers (1)

Li-yao Xia
Li-yao Xia

Reputation: 33389

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

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

Upvotes: 4

Related Questions