Skip to content

Commit

Permalink
Update benchmark (cmdliner)
Browse files Browse the repository at this point in the history
  • Loading branch information
dinosaure committed Sep 15, 2023
1 parent 7f3f84c commit 83395f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
6 changes: 3 additions & 3 deletions bench/densld.ml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let d =
Arg.(value & flag & info ["d"] ~doc)

let cmd =
( Term.(const inflate $ file $ d)
, Term.info "bench" ~doc:"Run benchmarks for ns implementation" )
let info = Cmd.info "bench" ~doc:"Run benchmarks for ns implementation" in
Cmd.v info Term.(const inflate $ file $ d)

let () = Term.(exit @@ eval cmd)
let () = Cmd.(exit @@ eval cmd)
10 changes: 4 additions & 6 deletions bench/dune
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
decompress.de
decompress.zl
cmdliner
yojson
ppx_deriving_yojson))
ppx_deriving_yojson.runtime
yojson))

(executable
(name run)
Expand Down Expand Up @@ -46,13 +46,12 @@

(library
(name lz_landmarks)
(optional)
(modules lz_landmarks)
(enabled_if
(= %{profile} benchmark))
(libraries checkseum optint landmarks de)
(preprocess
(pps landmarks.ppx --auto)))
(pps landmarks-ppx --auto)))

(rule
(copy ../lib/lz.ml lz_landmarks.ml))
Expand All @@ -69,15 +68,14 @@

(library
(name de_landmarks)
(optional)
(modules de_landmarks)
(enabled_if
(= %{profile} benchmark))
(libraries checkseum optint landmarks de)
(flags
(:standard -w -55))
(preprocess
(pps landmarks.ppx --auto)))
(pps landmarks-ppx --auto)))

(rule
(copy ../lib/de.ml de_landmarks.ml))
Expand Down

0 comments on commit 83395f7

Please sign in to comment.