Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
f2717822
Commit
f2717822
authored
Mar 19, 2020
by
Oleg Grenrus
Browse files
Add simple cabal-benchmarks (only parser atm)
parent
0e1c0604
Changes
3
Hide whitespace changes
Inline
Side-by-side
cabal-benchmarks/bench/CabalBenchmarks.hs
0 → 100644
View file @
f2717822
module
Main
where
import
Criterion.Main
(
bench
,
defaultMain
,
env
,
whnf
)
import
Distribution.PackageDescription.Parsec
(
parseGenericPackageDescriptionMaybe
)
import
qualified
Data.ByteString
as
BS
main
::
IO
()
main
=
defaultMain
[
env
(
BS
.
readFile
"Cabal/Cabal.cabal"
)
$
\
bs
->
bench
"Cabal"
$
whnf
parseGenericPackageDescriptionMaybe
bs
,
env
(
BS
.
readFile
"cabal-benchmarks/cabal-benchmarks.cabal"
)
$
\
bs
->
bench
"cabal-benchmarks"
$
whnf
parseGenericPackageDescriptionMaybe
bs
]
cabal-benchmarks/cabal-benchmarks.cabal
0 → 100644
View file @
f2717822
name: cabal-benchmarks
version: 3
copyright: 2003-2017, Cabal Development Team (see AUTHORS file)
license: BSD3
license-file: LICENSE
author: Cabal Development Team <cabal-devel@haskell.org>
maintainer: cabal-devel@haskell.org
homepage: http://www.haskell.org/cabal/
bug-reports: https://github.com/haskell/cabal/issues
synopsis: Benchmarks for the cabal dependency solver
description:
This package contains benchmarks that test cabal's dependency solver by running the cabal executable.
category: Distribution
cabal-version: >=1.10
build-type: Simple
extra-source-files: README.md
source-repository head
type: git
location: https://github.com/haskell/cabal/
subdir: solver-benchmarks
test-suite cabal-benchmarks
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: CabalBenchmarks.hs
hs-source-dirs: bench
ghc-options: -threaded -Wall -fwarn-tabs
build-depends:
base
, bytestring
, Cabal
, criterion >=1.5.6.2 && <1.6
cabal.project
View file @
f2717822
...
...
@@ -3,6 +3,7 @@ packages: cabal-install/ solver-benchmarks/
tests
:
True
packages
:
Cabal
/
Cabal
-
quickcheck
/
packages
:
cabal
-
benchmarks
/
--
Uncomment
to
allow
picking
up
extra
local
unpacked
deps
:
--
optional
-
packages
:
*/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment