X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=benchmarking%2FREADME;h=d1ec146cfae9cb84cdb436573a335b5c03c0120e;hb=5104921c5c24afc2066ad6dc127f2dcb9e07daa5;hp=4011e5ac3d46f040f7f2d82fc08b4c6545e5fa1e;hpb=7bb9eaabdb22172fedefd9d47cdd9543063e9999;p=jalview.git diff --git a/benchmarking/README b/benchmarking/README index 4011e5a..d1ec146 100644 --- a/benchmarking/README +++ b/benchmarking/README @@ -1,29 +1,36 @@ To set up benchmarking: +You will need to install Maven: https://maven.apache.org/install.html -1. In the jalview directory run +1. Run the makedist target of build.xml in Eclipse, or 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. +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 JSON output instead use: + java -jar target/benchmarks.jar -rf json - To get output as a json file use instead: - java -jar target/benchmarks.jar -rf json + To run a specific benchmark file use: + java -jar target/benchmarks.jar - 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 @@ -33,8 +40,5 @@ to install the jalview.jar file in the local maven repository. The pom.xml in th 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. - \ No newline at end of file + 6. If you make changes to the Jalview code everything will need to be refreshed, by performing steps 3-5 again. +