Rename benchmark driver exe to bench-runner

To keep it consistent with test-runner for test driver
This commit is contained in:
Harendra Kumar 2022-04-28 20:21:11 +05:30
parent 7d12c647f1
commit b7b3aa8d02
12 changed files with 19 additions and 22 deletions

View File

@ -70,11 +70,10 @@ jobs:
cabal update
- uses: actions/cache@v2
name: Cache ~/.cabal and bench-report
name: Cache ~/.cabal
with:
path: |
~/.cabal
./benchmark/bench-report/bin/bench-report
# Bump the key version to clear the cache
key: cache-v1
@ -120,7 +119,7 @@ jobs:
- name: Run benchmarks and append
run: |
cabal run report --project-file=cabal.project.report -- --targets "$CI_BENCHMARKS" --raw --append
cabal run bench-runner --project-file=cabal.project.report -- --targets "$CI_BENCHMARKS" --raw --append
# -----------------------------------------------------------------
# -- Compare
@ -128,7 +127,7 @@ jobs:
- name: List all benchmarks
run: |
cabal run report --project-file=cabal.project.report -- --targets "$CI_BENCHMARKS" --no-measure
cabal run bench-runner --project-file=cabal.project.report -- --targets "$CI_BENCHMARKS" --no-measure
- name: Compare benchmarks
run: |
@ -146,7 +145,8 @@ jobs:
echo
echo "Checking $bname for regressions greater than $cutoff percent"
! cabal run report --project-file=cabal.project.report -- --targets "$bname" \
! cabal run bench-runner --project-file=cabal.project.report -- \
--targets "$bname" \
--fields "$CI_FIELDS" \
--no-measure --silent \
--diff-cutoff-percent $cutoff \

View File

@ -7,9 +7,8 @@
.hlint.yaml
.packcheck.ignore
appveyor.yml
benchmark/bench-report/default.nix
benchmark/report/default.nix
benchmark/report/cabal.project
benchmark/bench-runner/default.nix
benchmark/bench-runner/cabal.project
bin/ghc.sh
bin/run-ci.sh
bin/run-repl-quick.sh
@ -28,5 +27,5 @@ hie.yaml
stack.yaml
targets/default.nix
targets/cabal.project
test/report/default.nix
test/report/cabal.project
test/test-runner/default.nix
test/test-runner/cabal.project

View File

@ -4,9 +4,7 @@ import BenchRunner (mainWith)
import BuildLib (Quickness(..))
import Control.Applicative ((<|>))
import Data.List (isInfixOf, isPrefixOf, isSuffixOf)
import Data.Map (Map)
import qualified Data.Map as Map
import Targets (targets)
rtsOpts :: String -> String -> String

View File

@ -1,5 +1,5 @@
cabal-version: 2.4
name: report
name: bench-runner
version: 0.1.0.0
-- A short (one-line) description of the package.
@ -25,7 +25,7 @@ version: 0.1.0.0
-- category:
-- extra-source-files: CHANGELOG.md
executable report
executable bench-runner
ghc-options: -Wall
main-is: Main.hs

View File

@ -1,7 +1,7 @@
packages:
targets/streamly-targets.cabal
benchmark/report/report.cabal
test/report/streamly-test-report.cabal
benchmark/bench-runner/bench-runner.cabal
test/test-runner/test-runner.cabal
streamly.cabal
core/streamly-core.cabal

View File

@ -49,8 +49,8 @@ build-type: Configure
extra-source-files:
benchmark/*.hs
benchmark/report/Main.hs
benchmark/report/report.cabal
benchmark/bench-runner/Main.hs
benchmark/bench-runner/bench-runner.cabal
benchmark/Streamly/Benchmark/Data/*.hs
benchmark/Streamly/Benchmark/Data/Array/Common.hs
benchmark/Streamly/Benchmark/Data/Array/CommonImports.hs
@ -79,8 +79,8 @@ extra-source-files:
docs/streamly-docs.cabal
targets/streamly-targets.cabal
targets/Targets.hs
test/report/Main.hs
test/report/streamly-test-report.cabal
test/test-runner/Main.hs
test/test-runner/test-runner.cabal
-- This is duplicated
src/Streamly/Internal/Data/Stream/Instances.hs

View File

@ -1,5 +1,5 @@
cabal-version: 2.4
name: streamly-test-report
name: test-runner
version: 0.1.0.0
-- A short (one-line) description of the package.
@ -25,7 +25,7 @@ version: 0.1.0.0
-- category:
-- extra-source-files: CHANGELOG.md
executable test-report
executable test-runner
main-is: Main.hs
-- Modules included in this executable, other than Main.