@@ -25,22 +25,30 @@ IMPORTANT NOTE: The first time you run this executable it may take a long
25time because it has to build the `bench-report` executable which has a
25time because it has to build the `bench-report` executable which has a
26lot of dependencies.
26lot of dependencies.
28−If you are using nix then use `benchmark/bench-runner/default.nix`. Build it
29−manually and install it in the root of the repository like so,
28+You can install it once in the root of the repository and use it multiple times.
30+You can use `cabal.project.report` to install bench-runner like so:
32+$ cabal install bench-runner --project-file=cabal.project.report --installdir=./ --overwrite-policy=always
33+$ ./bench-runner <bench-runner-args>
36+If you're using nix, you can install bench-runner like so:
31$ cd benchmark/bench-runner
38$ cd benchmark/bench-runner
32$ nix-shell --run 'cabal install bench-runner --installdir=../../ --overwrite-policy=always'
39$ nix-shell --run 'cabal install bench-runner --installdir=../../ --overwrite-policy=always'
33$ cd ../../
40$ cd ../../
41+$ ./bench-runner <bench-runner-args>
36−You can also use `cabal.project.report` to directly build an run the `bench-runner` like so,
44+You can run the `bench-runner` without installing, like so:
38$ cabal run bench-runner --project-file=cabal.project.report -- <bench-runner-args>
46$ cabal run bench-runner --project-file=cabal.project.report -- <bench-runner-args>
41−## bench.sh: Quick start
49+## bench-runner: Quick start
43−Assuming `bench-runner` is the executable. You can replace `bench-runner` with
51+Assuming `bench-runner` is the executable. You can replace `./bench-runner` with
44`cabal run bench-runner --project-file=cabal.project.report --`
52`cabal run bench-runner --project-file=cabal.project.report --`
46Useful commands:
54Useful commands: