From 5d7a9bd86283c903f7e9149df4b062a05e3a0bd6 Mon Sep 17 00:00:00 2001 From: kiramt Date: Fri, 18 Aug 2017 10:55:08 +0100 Subject: [PATCH] JAL-2662 First benchmark running --- benchmarking/README | 18 ++++++++++++++++++ benchmarking/pom.xml | 12 ++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 benchmarking/README diff --git a/benchmarking/README b/benchmarking/README new file mode 100644 index 0000000..63381ce --- /dev/null +++ b/benchmarking/README @@ -0,0 +1,18 @@ +To set up benchmarking: + +1. In the jalview directory run + ant makedist + +This builds a jalview.jar file and puts it into dist/ + +2. Make a lib directory in benchmarking/ if not already present. + +3. Run + mvn install:install-file -Dfile=../dist/jalview.jar -DgroupId=jalview.org -DartifactId=jalview -Dversion=1.0 -Dpackaging=jar -DlocalRepositoryPath=lib + +to install the jalview.jar file in the local maven repository. The pom.xml in the benchmarking references this installation, so if you change the names the pom.xml file will also need to be updated. + +4. Build and run jmh benchmarking. In the benchmarking directory: + mvn clean install + java -jar target/benchmarks.jar + \ No newline at end of file diff --git a/benchmarking/pom.xml b/benchmarking/pom.xml index 5ca96f6..3bced18 100644 --- a/benchmarking/pom.xml +++ b/benchmarking/pom.xml @@ -45,6 +45,13 @@ THE POSSIBILITY OF SUCH DAMAGE. Edit as needed. --> + + + lib + file://${project.basedir}/lib + + + org.openjdk.jmh @@ -57,6 +64,11 @@ THE POSSIBILITY OF SUCH DAMAGE. ${jmh.version} provided + + jalview.org + jalview + 1.0 + -- 1.7.10.2