[Hackage] #894: Add benchmark support
Hackage
cvs-ghc at haskell.org
Wed Oct 5 05:03:11 CEST 2011
#894: Add benchmark support
----------------------------+-----------------------------------------------
Reporter: tibbe | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Cabal library | Version:
Severity: normal | Keywords:
Difficulty: unknown | Ghcversion:
Platform: |
----------------------------+-----------------------------------------------
Today, a user needs to rely on external tools, such as Make, to build
benchmarks associated with a package. This has a couple of issues:
* It's hard to have both Make (which builds the benchmark) and Cabal
(which builds the library) pick the same versions of package dependencies.
This leads to compilation errors when the user installs or removes some
packages from his/her system.
* It's hard to accurately track what needs to be rebuilt when, forcing
the user to rebuild more than necessary, which wastes time.
Proposal: Add a new `.cabal` file section for benchmarks, modeled after
the "test-suite" section.
Usage:
{{{
cabal configure --enable-benchmarks
cabal build
cabal bench
# results are written to stdout
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/894>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
More information about the cabal-devel
mailing list