mirror of
https://github.com/ilyakooo0/streamly.git
synced 2024-09-11 08:25:40 +03:00
Rename benchmark driver exe to bench-runner
To keep it consistent with test-runner for test driver
This commit is contained in:
parent
7d12c647f1
commit
b7b3aa8d02
10
.github/workflows/regression-check.yml
vendored
10
.github/workflows/regression-check.yml
vendored
@ -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 \
|
||||
|
@ -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
|
||||
|
@ -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
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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.
|
Loading…
Reference in New Issue
Block a user