Hi everyone,

I am doing a stress test for Iotivity Cloud to evaluate its performance. I
create a publisher script which creates 10 threads and each thread sends
1000 messages at rate 1 message/second by using the API: *publishMQTopic*. To
evaluate the delay time at the Cloud Interface, I add my evaluation script
to the function *onDefaultRequestReceived *of the file MessageQueue.java as
follows:

long startTime = System.nanoTime();  //my code line
*mPSServer.sendRequest(request,srcDevice); //original code line*
long endTime = System.nanoTime(); //my code line
elapsed_time+=endTime - startTime //my code line

Similarly, to evaluate the delay time of pushing message to *MessageQueue*
I add my evaluation script to the function *publishMessage* of the file*
MQBrokerResource.java* as follows:

long startTime = System.nanoTime();  //my code line
*IResponse response = topic.handlePublishMessage(request); //original code
line*
long endTime = System.nanoTime(); //my code line
elapsed_time+=endTime - startTime //my code line

*So my questions are:*
1. I know the Cloud Interface will forward the publish message to the MQ
server in the global cloud. But is there a queue at the Cloud Interface
because I send a large amount of messages to it?
2. Is the location of my evaluation script correct in term of delay
evaluation of the Cloud Interface and MessageQueue?
3. When I increase the sending rate (from 1 to 5 or 10 messages/second),
the delay time is decrease. It's so strange because in my opinion, the more
messages come to the MQ at the same time, the delay time will increase (MQ
busy to process) or at least equal. Is my opinion correct?

Any help would be very appreciate.

*DANG Thien Binh*
Networking Laboratory, 26317
Electronic and Electrical Engineering Department
School of Information and Communication Engineering
Sungkyunkwan University (SKKU)
Suwon 440-746, KOREA
+82-31-290-4226(LAB)
+82-31-299-4134(FAX)
email: dtbinh at skku.edu, binh01t2 at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20161223/4cb4b6d6/attachment.html>

Reply via email to