summaryrefslogtreecommitdiff
path: root/perf/ruby
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-09-10 15:20:54 +0200
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-09-10 15:20:54 +0200
commit93e70ee583489034c9f3b92fb87b374707afd5d5 (patch)
treeca95d3ca3eb8f2b2d6208d0a2f4d1046fce0b8d0 /perf/ruby
parent95944551be93665fe4dcadbe00168da553b7d82f (diff)
throughput tests use P2P sockets consistently
Diffstat (limited to 'perf/ruby')
-rw-r--r--perf/ruby/local_thr.rb2
-rw-r--r--perf/ruby/remote_thr.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/perf/ruby/local_thr.rb b/perf/ruby/local_thr.rb
index 4d9357b..117e54b 100644
--- a/perf/ruby/local_thr.rb
+++ b/perf/ruby/local_thr.rb
@@ -28,7 +28,7 @@ message_size = ARGV[1].to_i
message_count = ARGV[2].to_i
ctx = Context.new(1, 1)
-s = Socket.new(ctx, SUB);
+s = Socket.new(ctx, P2P);
s.bind(bind_to);
msg = s.recv(0)
diff --git a/perf/ruby/remote_thr.rb b/perf/ruby/remote_thr.rb
index 7d55f86..8d98848 100644
--- a/perf/ruby/remote_thr.rb
+++ b/perf/ruby/remote_thr.rb
@@ -28,7 +28,7 @@ message_size = ARGV[1].to_i
message_count = ARGV[2].to_i
ctx = Context.new(1, 1)
-s = Socket.new(ctx, PUB);
+s = Socket.new(ctx, P2P);
s.connect(connect_to);
msg = "#{'0'*message_size}"