Skip to content

Commit

Permalink
Split benchmark into yojson-bench package.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcgilchrist committed Dec 2, 2021
1 parent d0c14ab commit bd0d4fd
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
2 changes: 2 additions & 0 deletions bench/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
(executable
(name bench)
(package yojson-bench)
(public_name yojson-bench)
(flags (-safe-string))
(libraries yojson core_bench core))

Expand Down
25 changes: 25 additions & 0 deletions yojson-bench.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
opam-version: "2.0"
maintainer: ["[email protected]" "[email protected]"]
authors: ["Martin Jambon"]
homepage: "https://github.com/ocaml-community/yojson"
bug-reports: "https://github.com/ocaml-community/yojson/issues"
dev-repo: "git+https://github.com/ocaml-community/yojson.git"
doc: "https://ocaml-community.github.io/yojson/"
license: "BSD-3-Clause"
build: [
["dune" "subst"] {pinned}
["dune" "build" "-p" name "-j" jobs]
]
depends: [
"ocaml" {>= "4.02.3"}
"yojson" {= version}
"dune"
"core_bench"
]
synopsis:
"Run Yojson benchmarks"
description: """
Yojson benchmarks require `Core_bench` which is not a dependency of Yojson,
because it is not part of the regular installation/testing flow. This is solely
meant for developers that are worried about performance changes in Yojson.
"""
2 changes: 0 additions & 2 deletions yojson.opam
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ depends: [
"dune"
"cppo" {build}
"alcotest" {with-test & >= "0.8.5"}
"core_bench" {with-test}
"core" {with-test}
"odoc" {with-doc}
]
synopsis:
Expand Down

0 comments on commit bd0d4fd

Please sign in to comment.