summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2009-07-02 14:49:06 +0100
committerMatthew Sackman <matthew@lshift.net>2009-07-02 14:49:06 +0100
commit010fc2a0cc744109eef8d6e8be34297518df5d4d (patch)
treeaa17f2fb051387b19ebefe5cba7b330e71f5a98a /Makefile
parent0d611f1188edc7b8f9da7935e21865fb49163a14 (diff)
downloadrabbitmq-server-git-010fc2a0cc744109eef8d6e8be34297518df5d4d.tar.gz
Done. In order to keep the code simple, the detection of naptime is done in reply and noreply functions. This means that the now() value there includes computation relating to the last message in. This is maybe not desirable, but the alternative is to wrap all of handle_cast, handle_call and handle_info. Nevertheless, testing shows this works:
in the erlang client: Conn = amqp_connection:start("guest", "guest", "localhost"), Chan = lib_amqp:start_channel(Conn), [begin Q = list_to_binary(integer_to_list(R)), Q = lib_amqp:declare_queue(Chan, Q) end || R <- lists:seq(1,1000)], Props = (amqp_util:basic_properties()). [begin Q = list_to_binary(integer_to_list(R)), ok = lib_amqp:publish(Chan, <<"">>, Q, <<0:(8*1024)>>, Props) end || _ <- lists:seq(1,1500), R <- lists:seq(1,1000)]. Then, after that lot's gone in, in a shell do: watch -n 2 "time ./scripts/rabbitmqctl list_queues | tail" The times for me start off at about 2.3 seconds, then drop rapidly to 1.4 and then 0.2 seconds and stay there.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions