summaryrefslogtreecommitdiff
path: root/perf/remote_thr.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-06-19 09:22:11 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-06-19 09:22:11 +0200
commit5b77a41eafe6501a3f7cc76f2c746858036aef81 (patch)
tree6c4d0fbdde979a1ebf0ed2a3f1ea517b14d6d1e1 /perf/remote_thr.cpp
parent4b60023b96d25571f58e50899a2717da14866e6b (diff)
Throughput tests fixed.
Introduction of subscription forwarding have broken throughput tests. This patch changes the pattern used in the tests to PUSH/PULL. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'perf/remote_thr.cpp')
-rw-r--r--perf/remote_thr.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/perf/remote_thr.cpp b/perf/remote_thr.cpp
index 363ae7c..c8df333 100644
--- a/perf/remote_thr.cpp
+++ b/perf/remote_thr.cpp
@@ -50,7 +50,7 @@ int main (int argc, char *argv [])
return -1;
}
- s = zmq_socket (ctx, ZMQ_PUB);
+ s = zmq_socket (ctx, ZMQ_PUSH);
if (!s) {
printf ("error in zmq_socket: %s\n", zmq_strerror (errno));
return -1;
@@ -88,8 +88,6 @@ int main (int argc, char *argv [])
}
}
-zmq_sleep (2);
-
rc = zmq_close (s);
if (rc != 0) {
printf ("error in zmq_close: %s\n", zmq_strerror (errno));