Permalink
Browse files

Fixed compilation of performance classes and added scripts for execut…

…ion of performance tools.
  • Loading branch information...
1 parent 3077190 commit a40a49dfeb31cfe723833956d3046bf2e67eed1a @abelaska abelaska committed Dec 9, 2010
Showing with 40 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +5 −0 README-PERF
  3. +26 −2 perf/Makefile.am
  4. +2 −0 perf/local_lat.sh
  5. +2 −0 perf/local_thr.sh
  6. +2 −0 perf/remote_lat.sh
  7. +2 −0 perf/remote_thr.sh
View
@@ -2,6 +2,7 @@ INSTALL
aclocal.m4
config/
src/zmq.jar
+perf/zmq-perf.jar
Makefile
Makefile.in
autom4te.cache
View
@@ -0,0 +1,5 @@
+First you have to compile library, follow README.
+
+Performance utilities must be executed from perf directory (cd perf).
+
+More informations can be found here http://www.zeromq.org/results:perf-howto.
View
@@ -1,5 +1,29 @@
AM_JAVACFLAGS=-classpath $(top_builddir)/src
-dist_noinst_JAVA = local_lat.java remote_lat.java local_thr.java \
-remote_thr.java
+jarfile = zmq-perf.jar
+JZMQ_PERF_JAVA_FILES = \
+ local_lat.java \
+ local_thr.java \
+ remote_lat.java \
+ remote_thr.java
+
+JZMQ_PERF_CLASS_FILES = \
+ local_lat.class \
+ local_thr.class \
+ remote_lat.class \
+ remote_thr.class
+
+$(jarfile): $(dist_noinst_JAVA)
+ $(JAR) cf $(JARFLAGS) $@ *.class
+
+dist_noinst_DATA = $(jarfile)
+
+dist_noinst_JAVA = $(JZMQ_PERF_JAVA_FILES)
+
+BUILT_SOURCES = \
+ $(JZMQ_PERF_JAVA_FILES)
+
+CLEANFILES = \
+ $(JZMQ_PERF_CLASS_FILES) \
+ $(jarfile)
View
@@ -0,0 +1,2 @@
+#!/bin/sh
+java -classpath "../src/zmq.jar:zmq-perf.jar" local_lat $@
View
@@ -0,0 +1,2 @@
+#!/bin/sh
+java -classpath "../src/zmq.jar:zmq-perf.jar" local_thr $@
View
@@ -0,0 +1,2 @@
+#!/bin/sh
+java -classpath "../src/zmq.jar:zmq-perf.jar" remote_lat $@
View
@@ -0,0 +1,2 @@
+#!/bin/sh
+java -classpath "../src/zmq.jar:zmq-perf.jar" remote_thr $@

0 comments on commit a40a49d

Please sign in to comment.