summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.benchmarks/BUILD
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2019-08-04 19:04:41 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2019-11-05 14:59:50 +0100
commit452c38cd2285df77b831406e7eeab2dc778bdf1c (patch)
treef488eee2d246cfb4f56910cabe4fa65750c47538 /org.eclipse.jgit.benchmarks/BUILD
parent06de3a1dd773e2bfff26b247c728f69a6dc99e97 (diff)
downloadjgit-452c38cd2285df77b831406e7eeab2dc778bdf1c.tar.gz
jgit-452c38cd2285df77b831406e7eeab2dc778bdf1c.zip
Run JMH benchmarks using bazel
The benchmarks can be built and run using bazel by running: $ bazel run //org.eclipse.jgit.benchmarks:benchmarks Change-Id: I6679750eaa0f2be30ed9d45036e013b0ea4fcc86 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.benchmarks/BUILD')
-rw-r--r--org.eclipse.jgit.benchmarks/BUILD13
1 files changed, 13 insertions, 0 deletions
diff --git a/org.eclipse.jgit.benchmarks/BUILD b/org.eclipse.jgit.benchmarks/BUILD
new file mode 100644
index 0000000000..3c6ff0e12b
--- /dev/null
+++ b/org.eclipse.jgit.benchmarks/BUILD
@@ -0,0 +1,13 @@
+load("//tools:bzl/jmh.bzl", "jmh_java_benchmarks")
+
+SRCS = glob(
+ ["src/**/*.java"],
+)
+
+jmh_java_benchmarks(
+ name = "benchmarks",
+ srcs = SRCS,
+ deps = [
+ "//org.eclipse.jgit:jgit",
+ ],
+) \ No newline at end of file