Skip to content

Commit

Permalink
Added some more perf data and turned debugging back off.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgastako committed Apr 24, 2009
1 parent 7b85cfa commit 426d984
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
18 changes: 17 additions & 1 deletion PERFDATA.txt
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Total write: 1.708 MB/s

It looks like Kestrel is going a lot slower handling two clients
against two queues at once. I am somewhat surprised by this, since it
is mina driven and uses Scala actors and I would expect disk
is MINA driven and uses Scala actors and I would expect disk
contention for the journal to be the biggest factor. I can't rule out
the possibility that the other processes running on this machine just
happened to interfere more during my Kestrel tests than during my erq
Expand All @@ -183,3 +183,19 @@ UPDATE: Oops, for the two concurrent tests of erq done above I did not
pass the -smp option to the emulator. I will correct this when I get
a chance to do more tests in a clean environment.


UPDATE (4/23/2009):

Here are the numbers for the latest version of the code (with the recently
added blocking functionality, although that code is not exercised in this
test) with the -smp flag:

Configuration:
Queue name: hurley
Payload size: 512
Number of messags: 1024

Writing 1024 messages of size 512 took 0.255 seconds - 4010.184 msg/s - 1.958 MB/s (with 0 errors)
Reading 1024 messages took 0.138 seconds - 7413.578 m/s - 3.620 MB/s
Checking response correctness.
Found 0 errors in 1024 responses.
4 changes: 2 additions & 2 deletions erqutils.erl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

%%-define(debug(_, _), ok).
%%-define(debug(Format, Args), io:format("DEBUG: " ++ Format, Args), ok).
% debug(_, _) -> ok.
debug(Format, Args) -> io:format("DEBUG: " ++ Format ++ "~n", Args), ok.
debug(_, _) -> ok.
% debug(Format, Args) -> io:format("DEBUG: " ++ Format ++ "~n", Args), ok.

%% Remove trailing \r's and \n's from a string. Probably better ways to do this in
%% erlang, but for now, this works.
Expand Down

0 comments on commit 426d984

Please sign in to comment.