You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2016/03/01 23:14:29 UTC

logging-log4j2 git commit: Add SimplePerfTest shell script.

Repository: logging-log4j2
Updated Branches:
  refs/heads/master b2ec3055d -> af02a02be


Add SimplePerfTest shell script.


Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/af02a02b
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/af02a02b
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/af02a02b

Branch: refs/heads/master
Commit: af02a02be5caf746c22ba93ea1277ef658907678
Parents: b2ec305
Author: Matt Sicker <bo...@gmail.com>
Authored: Tue Mar 1 16:14:25 2016 -0600
Committer: Matt Sicker <bo...@gmail.com>
Committed: Tue Mar 1 16:14:25 2016 -0600

----------------------------------------------------------------------
 .../log4j/core/async/perftest/SimplePerfTest.sh | 22 ++++++++++++++++++++
 1 file changed, 22 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/af02a02b/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/SimplePerfTest.sh
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/SimplePerfTest.sh b/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/SimplePerfTest.sh
new file mode 100755
index 0000000..d2d1efb
--- /dev/null
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/SimplePerfTest.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+if [ $# -ne 1 ]; then
+    echo Usage: $0 version
+    exit 1
+fi
+
+export MEM_OPTIONS="-Xms128m -Xmx128m"
+export GC_OPTIONS="-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationConcurrentTime -XX:+PrintGCApplicationStoppedTime"
+
+LOG4J_OPTIONS="-Dlog4j.configurationFile=perf-CountingNoOpAppender.xml"
+LOG4J_OPTIONS="${LOG4J_OPTIONS} -DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector"
+LOG4J_OPTIONS="${LOG4J_OPTIONS} -Dlog4j2.enable.threadlocals=true"
+export LOG4J_OPTIONS
+
+CP="log4j-api-${1}.jar:log4j-core-${1}.jar:disruptor-3.3.4.jar"
+CP="${CP}:${HOME}/Documents/log4j/log4j-core/target/test-classes"
+export CP
+
+export MAIN="org.apache.logging.log4j.core.async.perftest.SimplePerfTest"
+
+java ${MEM_OPTIONS} ${GC_OPTIONS} ${LOG4J_OPTIONS} -cp "${CP}" ${MAIN}