hsbencher
Launch and gather data from Haskell and non-Haskell benchmarks.
Benchmark frameworks are usually very specific to the
host language/environment. Hence they are usually about as reusable
as compiler passes (that is, not).
Nevertheless, `hsbencher` is an attempt at a reusable benchmark
framework. It knows fairly little about what the benchmarks do, and
is mostly concerned with defining and iterating through
configuration spaces (e.g. varying the number of threads), and
managing the data that results.
Benchmark data is stored in simple text files, and optionally
uploaded via pluggable backend packages such as `hsbencher-fusion`,
which uploads to Google Fusion Tables.
`hsbencher` attempts to stradle the divide between language-specific
and language-agnostic by having an extensible set of `BuildMethod`s.
As shipped, `hsbencher` knows a little about cabal, ghc, and less
about Make, but it can be taught more.
The general philosophy is to have benchmarks follow a simple
protocol, for example printing out a line "SELFTIMED: 3.3" if they
wish to report their own timing, in seconds. The focus is on benchmarks that
run long enough to run in their own process. This is typical of
parallelism benchmarks and different than the fine-grained
benchmarks that are well supported by "Criterion".
`hsbencher` is used by creating a script or executable that imports `HSBencher`
and provides a list of benchmarks, each of which is decorated with its
parameter space. Below is a minimal example that creates a two-configuration
parameter space:
@
import HSBencher
main = defaultMainModifyConfig $ addBenchmarks
. [ mkBenchmark \"bench1/bench1.cabal\" [\"1000\"] $
. Or [ Set NoMeaning (RuntimeParam \"+RTS -qa -RTS\")
. , Set NoMeaning (RuntimeEnv \"HELLO\" \"yes\") ] ]
@
The output would appear as in this gist:
<https://gist.github.com/rrnewton/5667800>
More examples can be found here:
<https://github.com/rrnewton/HSBencher/tree/master/hsbencher/example>
ChangeLog:
* (1.3.8) Added @--skipto@ and @--runid@ arguments
* (1.3.4) Added ability to prune benchmarks with patterns on command line.
* (1.4.2) Breaking changes, don't use Benchmark constructor directly. Use mkBenchmark.
* (1.5) New columns in schema.
* (1.8) Backend plugins, hsbencher-fusion package factored out.
* (1.15) Add systemCleaner field to Config
* (1.17) Add cpu affinity control; lspci off by default
* (1.18) Fix COMPILE_FLAGS upload; upload "unwords" of COMPILE_FLAGS to avoid quotes in output.
* (1.19.1) Change the semantics of naked runtime args to conjunction, not disjunction.
Also allow filtering of benchmarks by BenchSpace as well.
* (1.20) Add "--bindir" command line argument.
| version | uploaded | uploader | changes | |
|---|---|---|---|---|
| 1.20.0.5 | 2015-04-26 12:18 UTC | RyanNewton | +308/−186 lines, 11 filesdep ~basedep ~bytestringdep ~containersPVP: major bump suggested | |
| 1.20.0.3 | 2014-11-26 22:11 UTC | RyanNewton | +6/−2 lines, 2 filesPVP ok | |
| 1.20.0.2 | 2014-11-26 03:45 UTC | RyanNewton | +5/−2 lines, 2 filesPVP ok | |
| 1.20.0.1 | 2014-11-22 17:15 UTC | RyanNewton | +28/−16 lines, 2 files | |
| 1.20 | 2014-11-22 17:08 UTC | RyanNewton | +592/−107 lines, 7 files | |
| 1.14.1 | 2014-10-16 04:47 UTC | RyanNewton | +3/−4 lines, 3 filesPVP ok | |
| 1.14 | 2014-10-16 04:42 UTC | RyanNewton | +39/−28 lines, 4 filesPVP ok | |
| 1.12 | 2014-10-12 00:03 UTC | RyanNewton | +572/−364 lines, 11 filesdep +data-defaultdep ~asyncdep ~basedep ~bytestringPVP ok | |
| 1.8.0.4 | 2014-05-23 19:26 UTC | RyanNewton | +2440/−2446 lines, 21 filesdep −handa-gdatadep −http-conduitdep −test-framework-thdep ~basedep ~bytestringdep ~containers | |
| 1.5.3.1 | 2014-02-19 14:39 UTC | RyanNewton | +253/−4 lines, 2 filesdep ~handa-gdata | |
| 1.5.3 | 2014-02-19 11:21 UTC | RyanNewton | +60/−271 lines, 9 files | |
| 1.5.1 | 2014-02-04 23:35 UTC | RyanNewton | +475/−159 lines, 12 filesdep +HUnitdep +test-frameworkdep +test-framework-hunitdep ~handa-gdatadep ~io-streamsdep ~process | |
| 1.3.9 | 2013-08-30 19:02 UTC | RyanNewton | +29/−4 lines, 2 filesdep ~io-streamsPVP ok | |
| 1.3.8 | 2013-07-11 13:12 UTC | RyanNewton | +38/−5 lines, 4 filesPVP: major bump suggested | |
| 1.3.6 | 2013-07-10 18:48 UTC | RyanNewton | +3/−2 lines, 2 filesPVP ok | |
| 1.3.4 | 2013-07-10 18:43 UTC | RyanNewton | +57/−24 lines, 2 filesPVP ok | |
| 1.3.1 | 2013-07-10 16:22 UTC | RyanNewton | +56/−23 lines, 8 filesPVP ok | |
| 1.2 | 2013-06-29 18:46 UTC | RyanNewton | +719/−409 lines, 7 files | |
| 1.1.0.2 | 2013-05-31 20:48 UTC | RyanNewton | +37/−8 lines, 3 filesdep +http-conduit | |
| 1.1.0.1 | 2013-05-31 18:34 UTC | RyanNewton | +14/−11 lines, 3 filesPVP: major bump suggested | |
| 1.1 | 2013-05-29 04:02 UTC | RyanNewton | +73/−76 lines, 5 filesPVP ok | |
| 1.0 | 2013-05-29 03:03 UTC | RyanNewton | +2467/−0 lines, 20 filesdep +GenericPrettydep +asyncdep +basesetup-changed |
Dependencies of hsbencher-1.20.0.5
GenericPretty >=1.2 1.2.1 → 1.2.2
| 2018-03-10 18:40 UTC | 1.2.2 | +12/−8 lines, 6 filesbinary-addedPVP: major bump suggested |
| 2012-11-22 16:38 UTC | 1.2.1 | +1075/−1073 lines, 9 filesdep −ghcsetup-changedPVP ok |
| 2012-07-19 08:14 UTC | 1.2.0 | +55/−102 lines, 6 filesdep +prettydep ~ghcPVP ok |
| 2011-08-29 12:54 UTC | 1.1.9 outside bounds | +76/−138 lines, 7 filesPVP: major bump suggested |
| 2011-08-16 23:00 UTC | 1.1.8 outside bounds | +24/−19 lines, 4 filesPVP ok |
showing 5 of 19 versions
HUnit >=0 1.6.1.0 → 1.6.2.0
| 2021-01-19 18:27 UTC | 1.6.2.0 | +48/−42 lines, 5 filesdep ~call-stackPVP: major bump suggested |
| 2020-10-31 12:09 UTC | 1.6.1.0 | +35/−21 lines, 4 filesPVP ok |
| 2017-03-20 01:42 UTC | 1.6.0.0 | +9/−5 lines, 4 filesdep ~basePVP ok |
| 2016-10-16 03:35 UTC | 1.5.0.0 | +47/−27 lines, 5 filesPVP ok |
| 2016-10-07 03:13 UTC | 1.4.0.0 | +761/−778 lines, 12 filesdep +call-stackPVP ok |
showing 5 of 22 versions
async >=2.0 2.2.5 → 2.2.6
| 2026-01-07 11:26 UTC | 2.2.6 | +503/−61 lines, 7 filesdep +unordered-containersPVP: major bump suggested |
| 2023-11-21 08:08 UTC | 2.2.5 | +1025/−797 lines, 5 filesdep ~basedep ~hashablePVP: major bump suggested |
| 2021-10-04 12:00 UTC | 2.2.4 | +26/−8 lines, 3 filesdep ~basedep ~hashablePVP ok |
| 2021-02-16 10:05 UTC | 2.2.3 | +160/−78 lines, 3 filesdep ~basePVP ok |
| 2019-06-06 08:27 UTC | 2.2.2 | +48/−15 lines, 4 filesdep ~basedep ~hashablePVP: major bump suggested |
showing 5 of 23 versions
base >=4.5 && <4.9 4.8.2.0 → 4.22.1.0 newer than bounds
| 2026-12-01 12:38 UTC | 4.22.1.0 newer than bounds | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 newer than bounds | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 newer than bounds | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 newer than bounds | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 newer than bounds | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
bytestring >=0.10 0.12.1.0 → 0.12.2.0
| 2024-12-06 21:41 UTC | 0.12.2.0 | +538/−437 lines, 44 filesdep ~QuickCheckdep ~basePVP ok |
| 2024-02-16 03:27 UTC | 0.12.1.0 | +3398/−1642 lines, 37 filesdep +sybdep ~basePVP: major bump suggested |
| 2023-08-16 01:53 UTC | 0.12.0.2 | +16/−2 lines, 3 files |
| 2023-08-05 00:03 UTC | 0.12.0.1 | +47/−9 lines, 3 files |
| 2023-07-07 01:45 UTC | 0.12.0.0 | +1459/−520 lines, 21 filesdep +data-array-bytePVP ok |
showing 5 of 49 versions
containers >=0.5 0.8 → 0.8.1
| 2026-10-04 06:08 UTC | 0.8.1 | +8085/−5169 lines, 39 filesdep +template-haskell-liftdep ~arraydep ~deepseqPVP: major bump suggested |
| 2025-03-01 13:03 UTC | 0.8 | +8447/−7031 lines, 37 filesnew-uploaderPVP ok |
| 2023-09-27 12:15 UTC | 0.7 | +76/−33 lines, 3 filesPVP ok |
| 2023-09-28 04:21 UTC | 0.6.8 | +644/−184 lines, 17 filesdep ~basedep ~deepseqPVP: major bump suggested |
| 2023-02-01 03:11 UTC | 0.6.7 | +783/−229 lines, 20 filesPVP: major bump suggested |
showing 5 of 43 versions
data-default >=0.5.3 0.8.0.1 → 0.8.0.2
| 2026-01-06 19:33 UTC | 0.8.0.2 | +27/−2 lines, 4 filesPVP: major bump suggested |
| 2025-03-16 21:34 UTC | 0.8.0.1 | +146/−2 lines, 2 filesdep ~containersPVP ok |
| 2024-10-23 20:22 UTC | 0.8.0.0 | +363/−34 lines, 4 filesdep −data-default-classdep −data-default-instances-containersdep −data-default-instances-dlistdep ~basedep ~containersPVP ok |
| 2024-10-17 19:18 UTC | 0.7.1.3 | +10/−6 lines, 2 filesdep ~data-default-classdep ~data-default-instances-containersdep ~data-default-instances-dlistPVP ok |
| 2024-10-13 14:25 UTC | 0.7.1.2 | +182/−62 lines, 4 filesdep +containersdep +data-defaultdep +mtldep ~data-default-classPVP: major bump suggested |
showing 5 of 17 versions
directory >=0 1.3.10.1 → 1.3.11.0
| 2026-05-27 05:59 UTC | 1.3.11.0 | +4560/−4504 lines, 25 filesdep ~file-iodep ~filepathdep ~os-stringPVP ok |
| 2026-01-05 11:08 UTC | 1.3.10.1 | +4989/−4830 lines, 43 filesPVP: major bump suggested |
| 2025-12-24 02:55 UTC | 1.3.10.0 | +90/−39 lines, 7 filesdep ~Win32dep ~basePVP: major bump suggested |
| 2024-10-11 10:43 UTC | 1.3.9.0 | +235/−158 lines, 14 filesdep +file-iodep ~basedep ~timePVP: major bump suggested |
| 2024-05-20 06:52 UTC | 1.3.8.5 | +15/−13 lines, 7 filesdep ~basePVP ok |
showing 5 of 55 versions
filepath >=0 1.5.4.0 → 1.5.5.0
| 2026-01-20 08:14 UTC | 1.5.5.0 | +68/−12 lines, 8 filesdep +QuickCheckdep +template-haskell-liftdep +template-haskell-quasiquoterPVP ok |
| 2024-11-17 13:06 UTC | 1.5.4.0 | +26/−6 lines, 3 filesdep ~basePVP ok |
| 2024-06-29 15:30 UTC | 1.5.3.0 | +876/−871 lines, 13 filesdep −QuickCheckdep ~basePVP: major bump suggested |
| 2024-01-26 07:02 UTC | 1.5.2.0 | +330/−256 lines, 11 filesdep +generic-derivingdep +generic-randomdep +tastydep ~basedep ~os-stringPVP ok |
| 2023-11-25 08:29 UTC | 1.5.0.0 | +53/−3744 lines, 35 filesdep +os-stringdep ~basePVP ok |
showing 5 of 35 versions
hydra-print >=0.1.0.3 0.1.0.2 → 0.1.0.3
| 2013-04-22 19:27 UTC | 0.1.0.3 | +41/−26 lines, 3 filesdep ~basedep ~ncursesnew-component:exe:systemtest-hydra-print |
| 2013-04-15 20:00 UTC | 0.1.0.2 outside bounds | +14/−7 lines, 2 files |
| 2013-04-06 05:46 UTC | 0.1.0.0 outside bounds | +1599/−0 lines, 12 filesdep +HUnitdep +QuickCheckdep +asyncsetup-changed |
io-streams >=1.1 1.5.2.1 → 1.5.2.2
| 2022-08-17 18:04 UTC | 1.5.2.2 | +35/−13 lines, 2 filesdep ~basedep ~bytestringdep ~deepseqPVP ok |
| 2021-05-10 19:01 UTC | 1.5.2.1 | +61/−35 lines, 3 filesdep ~attoparsecdep ~basedep ~textnew-uploaderPVP ok |
| 2020-09-07 12:55 UTC | 1.5.2.0 | +104/−19 lines, 7 filesdep ~bytestringPVP ok |
| 2019-01-28 14:51 UTC | 1.5.1.0 | +47/−27 lines, 4 filesdep ~attoparsecdep ~basedep ~bytestringPVP: major bump suggested |
| 2017-09-03 19:48 UTC | 1.5.0.1 | +13/−4 lines, 3 filesdep ~networkPVP ok |
showing 5 of 44 versions
mtl >=0 2.3.1 → 2.3.2
| 2025-12-08 04:58 UTC | 2.3.2 | +112/−21 lines, 12 filesdep ~basenew-uploaderPVP: major bump suggested |
| 2022-10-31 21:28 UTC | 2.3.1 | +188/−33 lines, 8 filesdep ~basePVP: major bump suggested |
| 2022-05-07 20:34 UTC | 2.3 | +1284/−520 lines, 29 filesdep ~basedep ~transformersnew-uploaderPVP ok |
| 2018-02-24 22:15 UTC | 2.2.2 | +152/−36 lines, 14 filesdep ~basePVP: major bump suggested |
| 2014-06-02 02:22 UTC | 2.2.1 | +179/−4 lines, 8 filesdep ~basedep ~transformersPVP: major bump suggested |
showing 5 of 20 versions
process >=1.2 1.6.29.0 → 1.6.30.0
| 2026-06-11 10:14 UTC | 1.6.30.0 | +19/−1 lines, 2 filesPVP ok |
| 2026-05-24 11:03 UTC | 1.6.29.0 | +5282/−4831 lines, 7 filesdep ~basePVP ok |
| 2026-04-18 12:18 UTC | 1.6.28.0 | +70/−33 lines, 3 filesPVP ok |
| 2026-03-08 19:39 UTC | 1.6.27.0 | +3/−2 lines, 2 filesPVP ok |
| 2026-03-07 13:46 UTC | 1.6.26.2 | +4852/−5346 lines, 7 filesPVP ok |
showing 5 of 57 versions
random >=0 1.3.0 → 1.3.1
| 2025-04-04 14:25 UTC | 1.3.1 | +15/−6 lines, 3 filesPVP ok |
| 2025-01-06 04:03 UTC | 1.3.0 | +2410/−538 lines, 16 filesdep +data-array-bytedep ~basedep ~transformersPVP ok |
| 2024-12-14 20:31 UTC | 1.2.1.3 | +22/−37 lines, 3 filesdep −doctestdep −mwc-randomdep −unliftiodep ~basedep ~containersdep ~primitivePVP ok |
| 2024-02-04 16:26 UTC | 1.2.1.2 | +17/−12 lines, 2 filesdep ~doctestdep ~tastyPVP: major bump suggested |
| 2022-05-09 02:32 UTC | 1.2.1.1 | +8/−9 lines, 3 filesdep −ghc-byteorderdep ~bytestringdep ~doctestdep ~mtlPVP ok |
showing 5 of 15 versions
test-framework >=0.8 0.8.2.2 → 0.8.2.3
| 2026-01-05 13:44 UTC | 0.8.2.3 | +15/−15 lines, 3 filesdep −bytestringdep −old-localedep −semigroupsdep ~ansi-terminaldep ~ansi-wl-pprintdep ~hostnamePVP: major bump suggested |
| 2025-04-11 08:21 UTC | 0.8.2.2 | +34/−35 lines, 3 filesdep −libxmldep −utf8-stringdep ~QuickCheckPVP ok |
| 2025-02-26 19:51 UTC | 0.8.2.1 | +1700/−1542 lines, 55 filesdep +utf8-stringdep −base-orphansdep ~HUnitdep ~QuickCheckdep ~ansi-terminalsetup-changednew-uploaderPVP: major bump suggested |
| 2017-12-30 17:50 UTC | 0.8.2.0 | +134/−79 lines, 13 filesdep +base-orphansdep +semigroupsdep ~QuickCheckdep ~ansi-terminaldep ~ansi-wl-pprintsetup-changedPVP: major bump suggested |
| 2015-01-09 04:04 UTC | 0.8.1.1 | +7/−2 lines, 2 filesdep ~ansi-terminaldep ~timePVP ok |
showing 5 of 34 versions
test-framework-hunit >=0.3 0.3.0.2 → 0.3.0.3
| 2026-01-05 13:43 UTC | 0.3.0.3 | +42/−40 lines, 4 filesdep −extensible-exceptionsdep ~HUnitdep ~basedep ~test-frameworksetup-changednew-uploaderPVP ok |
| 2015-09-04 15:42 UTC | 0.3.0.2 | +12/−4 lines, 2 filesdep ~HUnitnew-uploader |
| 2013-10-09 00:28 UTC | 0.3.0.1 | +10/−4 lines, 1 filesnew-uploader |
| 2012-12-04 19:56 UTC | 0.3.0 | +4/−1 lines, 2 filesdep ~test-frameworkPVP ok |
| 2012-01-27 12:54 UTC | 0.2.7 outside bounds | +5/−5 lines, 2 filesPVP ok |
showing 5 of 12 versions
text >=0 2.1.4 → 2.1.5
| 2026-11-27 23:30 UTC | 2.1.5 | +33786/−32979 lines, 58 filesPVP: major bump suggested |
| 2026-01-28 08:30 UTC | 2.1.4 | +30991/−20199 lines, 35 filesdep +template-haskell-liftdep ~QuickCheckdep ~template-haskellPVP ok |
| 2025-08-01 20:08 UTC | 2.1.3 | +2107/−1827 lines, 30 filesdep +splitmixdep +temporarydep ~QuickCheckdep ~ghc-primdep ~template-haskellPVP ok |
| 2024-10-26 13:22 UTC | 2.1.2 | +43588/−15378 lines, 41 filesdep ~basedep ~binaryPVP: major bump suggested |
| 2024-02-16 22:16 UTC | 2.1.1 | +986/−412 lines, 26 filesdep ~QuickCheckdep ~ghc-primdep ~template-haskellPVP: major bump suggested |
showing 5 of 83 versions
time >=0 1.16 → 1.16.0.1
| 2026-07-20 21:55 UTC | 1.16.0.1 | +1203/−148 lines, 25 filesPVP ok |
| 2026-05-03 08:43 UTC | 1.16 | +353/−64 lines, 29 filesdep +template-haskell-liftdep ~template-haskellPVP ok |
| 2025-08-04 16:22 UTC | 1.15 | +1407/−743 lines, 56 filesdep ~basedep ~deepseqdep ~template-haskellPVP ok |
| 2024-03-10 22:18 UTC | 1.14 | +6594/−5536 lines, 73 filesdep +template-haskelldep ~basePVP ok |
| 2021-10-18 05:36 UTC | 1.13 | +1279/−1589 lines, 59 filesdep ~basePVP ok |
showing 5 of 48 versions
unix >=0 2.8.7.0 → 2.8.8.0
| 2025-09-23 08:10 UTC | 2.8.8.0 | +161/−207 lines, 6 filesdep ~basedep ~timePVP ok |
| 2025-05-10 14:12 UTC | 2.8.7.0 | +8400/−7941 lines, 12 filesdep ~basedep ~timePVP ok |
| 2024-11-19 15:41 UTC | 2.8.6.0 | +1133/−333 lines, 14 filesdep ~basedep ~timePVP: major bump suggested |
| 2024-04-08 19:21 UTC | 2.8.5.1 | +7507/−6738 lines, 5 filesdep ~basedep ~filepathdep ~os-stringPVP: major bump suggested |
| 2023-12-01 00:53 UTC | 2.8.5.0 | +55/−9 lines, 7 filesdep +os-stringdep ~filepathdep ~timePVP ok |
showing 5 of 34 versions
Reverse dependencies
2 packages depend on hsbencher