From: Dominik Stadler Date: Sun, 11 Dec 2016 20:59:06 +0000 (+0000) Subject: Add script to run SSPerformanceTest X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0dbf487f31df20d372a77318052194da58162c81;p=poi.git Add script to run SSPerformanceTest git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1773648 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/perftest.sh b/perftest.sh new file mode 100755 index 0000000000..1935aed4d6 --- /dev/null +++ b/perftest.sh @@ -0,0 +1,40 @@ +#!/bin/sh + +export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-amd64 + +export PATH=$JAVA_HOME/bin:$PATH + +export ANT_OPTS="-Xmx1024m -XX:MaxPermSize=256m" + +#ls $JAVA_HOME +java -version + +# compile-ooxml-lite test-all testcoveragereport +#/opt/apache/apache-ant/apache-ant-1.7.1/bin/ +ant init compile-examples +if [ $? -ne 0 ];then + exit 1 +fi + +if [ ! -d build/ooxml-lite-classes ];then + ant compile-ooxml-lite + if [ $? -ne 0 ];then + exit 1 + fi +fi + + +for i in build/dist/maven/poi*/*.jar build/*classes ooxml-lib/xmlbeans-2.3.0.jar ooxml-lib/dom4j-1.6.1.jar;do + JARS="$JARS:$i" +done + +ROWS=25000 +COLS=25 + +AGENT=-agentpath:/opt/dynaTrace/dynatrace-6.1.0/agent/lib64/libdtagent.so=name=ApachePOI,server=localhost + +echo CP: $JARS +java -cp $JARS -Xmx1024m $AGENT org.apache.poi.ss.examples.SSPerformanceTest HSSF $ROWS $COLS 0 && \ +java -cp $JARS -Xmx1024m $AGENT org.apache.poi.ss.examples.SSPerformanceTest XSSF $ROWS $COLS 0 && \ +java -cp $JARS -Xmx1024m $AGENT org.apache.poi.ss.examples.SSPerformanceTest SXSSF $ROWS $COLS 0 && \ +echo All done