From: kiramt Date: Thu, 11 Jan 2018 17:28:29 +0000 (+0000) Subject: Merge remote-tracking branch 'origin/task/JAL-2662' into develop X-Git-Tag: Release_2_10_3b1~3^2~7 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=5eeb49c62b1004b1efe837a543c8ff84aa6d7faf;p=jalview.git Merge remote-tracking branch 'origin/task/JAL-2662' into develop Conflicts: benchmarking/README --- 5eeb49c62b1004b1efe837a543c8ff84aa6d7faf diff --cc benchmarking/README index fac0bf6,4011e5a..ccf53c1 --- a/benchmarking/README +++ b/benchmarking/README @@@ -7,21 -6,35 +7,34 @@@ You will need to install Maven: https:/ This builds a jalview.jar file and puts it into dist/ + -2. Make a lib directory in benchmarking/ if not already present. +2. Make a lib directory in benchmarking/ if not already present and cd into this directory. + -3. In the benchmarking directory run: - mvn install:install-file -Dfile=../dist/jalview.jar -DgroupId=jalview.org -DartifactId=jalview -Dversion=1.0 -Dpackaging=jar -DlocalRepositoryPath=lib +3. Purge any previous maven dependencies: + mvn dependency:purge-local-repository -DactTransitively=false -DreResolve=false ++ +4. 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 +5. Build and run jmh benchmarking. In the benchmarking directory: + mvn clean install + java -jar target/benchmarks.jar - To get output as a json file use instead: - java -jar target/benchmarks.jar -rf json + To get JSON output instead use: + java -jar target/benchmarks.jar -rf json - JSON output can be viewed quickly by drag-dropping on http://jmh.morethan.io/ - JSON files can be visualised using the viewer at http://jmh.morethan.io/ ++ JSON output can be viewed quickly by drag-dropping on http://jmh.morethan.io/ + + To get help use the standard -h option: + java -jar target/benchmarks.jar -h + + More information here: + http://openjdk.java.net/projects/code-tools/jmh/ + http://java-performance.info/jmh/ + + - 5. If you make changes to the jalview code everything will need to be refreshed, by calling: - mvn dependency:purge-local-repository -DactTransitively=false -DreResolve=false - - followed by steps 3 and 4 again. - ++ 6. If you make changes to the Jalview code everything will need to be refreshed, by performing steps 3-5 again.