Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
phadej committed Apr 25, 2024
1 parent 0c3ea39 commit efeee0a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
15 changes: 14 additions & 1 deletion bench/macro/lsm-tree-bench-wp8.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,26 @@ data GlobalOpts = GlobalOpts
}
deriving Show

data SetupOpts = SetupOpts
{ size :: Int
}
deriving Show

data Cmd
-- | Setup benchmark: generate initial LSM tree etc.
= CmdSetup
= CmdSetup SetupOpts

-- | Make a dry run, measure the overhead.
| CmdDryRun

-- | Run the actual benchmark
| CmdRun
deriving Show

globalOptsP :: O.Parser GlobalOpts
globalOptsP = pure GlobalOpts
<*> pure "_bench_session"

setupOptsP :: O.Parser SetupOpts
setupOptsP = pure SetupOpts
<*> pure 1000 -- TODO: change to 100e6
1 change: 0 additions & 1 deletion lsm-tree.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@ benchmark lsm-tree-bench-wp8
, optparse-applicative
, primitive
, random
, vector
, wide-word

ghc-options: -rtsopts -with-rtsopts=-T -threaded
Expand Down

0 comments on commit efeee0a

Please sign in to comment.