This repository was archived by the owner on Jan 2, 2021. It is now read-only.
File tree 3 files changed +10
-18
lines changed
3 files changed +10
-18
lines changed Original file line number Diff line number Diff line change 23
23
- Analyisis of performance over the commit history of the project
24
24
25
25
How to run:
26
- 1. `cabal bench`
27
- 2 . `cabal exec cabal run ghcide-bench -- -- ghcide-bench-options`
26
+ 1. `cabal exec cabal run ghcide- bench -- -- ghcide-bench-options `
27
+ 1 . `stack build ghcide:ghcide-bench && stack exec ghcide-bench -- -- ghcide-bench-options`
28
28
29
29
Note that the package database influences the response times of certain actions,
30
30
e.g. code actions, and therefore the two methods above do not necessarily
Original file line number Diff line number Diff line change 29
29
30
30
To execute the script:
31
31
32
- > stack build --flag ghcide: bench-hist ghcide:exe:benchHist && stack exec benchHist all
32
+ > stack bench
33
33
34
34
To build a specific analysis, enumerate the desired file artifacts
35
35
36
- > stack exec benchHist bench-hist/HEAD/results.csv bench-hist/HEAD/edit.diff.svg
36
+ > stack bench --ba " bench-hist/HEAD/results.csv bench-hist/HEAD/edit.diff.svg"
37
37
38
38
-}
39
39
{-# LANGUAGE DeriveAnyClass #-}
Original file line number Diff line number Diff line change @@ -32,11 +32,6 @@ flag ghc-lib
32
32
default : False
33
33
manual : True
34
34
35
- flag bench-hist
36
- description : build the benchHist benchmark runner
37
- default : False
38
- manual : False
39
-
40
35
library
41
36
default-language : Haskell2010
42
37
build-depends :
@@ -178,14 +173,13 @@ executable ghcide-test-preprocessor
178
173
build-depends :
179
174
base == 4. *
180
175
181
- executable benchHist
176
+ benchmark benchHist
177
+ type : exitcode-stdio-1.0
182
178
default-language : Haskell2010
183
- if flag(bench-hist)
184
- buildable : True
185
- else
186
- buildable : False
187
179
ghc-options : -Wall -Wno-name-shadowing -threaded
188
180
main-is : bench/hist/Main.hs
181
+ build-tool-depends :
182
+ ghcide :ghcide
189
183
default-extensions :
190
184
BangPatterns
191
185
DeriveFunctor
@@ -350,12 +344,10 @@ test-suite ghcide-tests
350
344
TypeApplications
351
345
ViewPatterns
352
346
353
- benchmark ghcide-bench
354
- type : exitcode-stdio-1.0
347
+ executable ghcide-bench
355
348
default-language : Haskell2010
356
349
build-tool-depends :
357
- ghcide :ghcide,
358
- ghcide :ghcide-test-preprocessor
350
+ ghcide :ghcide
359
351
build-depends :
360
352
aeson,
361
353
base,
You can’t perform that action at this time.
0 commit comments