Skip to content

Commit 17e7f4f

Browse files
committed
Moving from gauge to tasty-bench for memory benchmark of Compact.Pure
1 parent 733ac81 commit 17e7f4f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

linear-base.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,6 @@ benchmark memory
244244
build-depends:
245245
base,
246246
deepseq,
247-
gauge,
248247
ghc-compact,
249-
linear-base
248+
linear-base,
249+
tasty-bench >= 0.3

memory/Compact/Pure.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module Compact.Pure (benchmarks) where
2-
import Gauge
2+
3+
import Test.Tasty.Bench
34
import Compact.SExpr
45
import GHC.Compact (compact, getCompact)
56

memory/Main.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ module Main (main) where
22

33
import qualified Compact.Pure as Compact
44

5-
import Gauge (defaultMain)
5+
import Test.Tasty.Bench (defaultMain)
66
import Compact.SExpr
77

88
-- Launch with
9-
-- stack bench linear-base:bench:memory --ba '--regress allocated:iters +RTS -T'
9+
-- stack bench linear-base:bench:memory --ba '+RTS -T'
1010

1111
main :: IO ()
1212
main = do

0 commit comments

Comments
 (0)