mirror of
https://github.com/haskell/ghcide.git
synced 2024-11-26 02:43:25 +03:00
0d7cae9846
* Remove hardcoded --stack-yaml and upstream/master assumption * support Cabal in bench suite * add benchmark run to CI Even if the time measurements are unreliable in a shared CI environment, the memory usage will be an accurate indicator of space leaks * Update bench/README * use origin/master * default to stack in benchmarks (for CI) * ignore ghcide-bench and ghcide-preprocessor binaries too * Review feedbacks * Add the v0.3.0 tag in bench/hist.yaml commented out to keep the CI time as tight as possible * Add .artifactignore file to avoid publishing binaries in azure bench pipeline * use default stack.yaml |
||
---|---|---|
.. | ||
exe | ||
hist | ||
lib | ||
hist.yaml | ||
README.md |
Benchmarks
This folder contains two Haskell programs that work together to simplify the performance analysis of ghcide:
exe/Main.hs
- a standalone benchmark runner. Run withstack run ghcide-bench
hist/Main.hs
- a Shake script for running the benchmark suite over a set of commits.- Run with
stack bench
orcabal bench
, - Requires a
ghcide-bench
binary in the PATH (usually provided by stack/cabal), - Calls
cabal
(orstack
, configurable) internally to build the project, - Driven by the
hist.yaml
configuration file. By default it compares HEAD with "master"
- Run with
Further details available in the module header comments.