-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
29 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,36 @@ | ||
{-# LANGUAGE NoFieldSelectors #-} | ||
{-# LANGUAGE OverloadedRecordDot #-} | ||
module Main (main) where | ||
|
||
import Data.Void (Void) | ||
import qualified Crypto.Hash.SHA256 as SHA256 | ||
import qualified Data.ByteString as BS | ||
import qualified Data.ByteString.Short as SBS | ||
import Data.Void (Void) | ||
import qualified Options.Applicative as O | ||
|
||
-- We should be able to write this benchmark | ||
-- using only use public lsm-tree interface | ||
import qualified Database.LSMTree.Normal as LSM | ||
|
||
type K = BS.ByteString | ||
type V = BS.ByteString | ||
type B = Void | ||
|
||
main :: IO () | ||
main = putStrLn "hello" | ||
|
||
data GlobalOpts = GlobalOpts | ||
{ rootDir :: FilePath -- ^ session directory. | ||
} | ||
deriving Show | ||
|
||
data Cmd | ||
-- | Setup benchmark: generate initial LSM tree etc. | ||
= CmdSetup | ||
|
||
-- | Make a dry run, measure the overhead. | ||
| CmdDryRun | ||
|
||
-- | Run the actual benchmark | ||
| CmdRun | ||
deriving Show |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters