Neither networked nor multithreaded applications have constant performance.
Thread scheduling artifacts, cache effects, timing issues in handoffs,
network congestion, retransmissions etc.

My suggestion is to take out the known slow parts first. Then measure and
tune.
On Mar 24, 2014 8:31 AM, "Boris Capitanu" <bor...@gmail.com> wrote:

>
>> Then you are likely to benchmark the slowness of Java Serialization.
>>
>>
> Viktor, thank you for your feedback.  I'm not convinced the serializer is
> at fault with this.  Regardless of how inefficient the serializer is, it
> should not take a variable amount of time to serialize identical objects.
> For example,
>
> when the sender is told to send 100,000 messages to receiver:
>
> 16:07:33.976 [INFO] - delta = 475 ms, received = 40,000
> 16:07:34.585 [INFO] - delta = 610 ms, received = 60,000
> 16:07:35.065 [INFO] - delta = 479 ms, received = 80,000
>
> a log message is generated once for each 20K messages the receiver
> receives;  the delta value is the time elapsed since last log message was
> printed (so it shows how long it took to receive the "next" 20K messages);
>   given that all the messages are of the same size (as in "case class
> Message(id :Int)"), I would expect the time it takes for the receiver to
> receive 20K messages should be more or less constant;  compare the above
> with:
>
> 17:46:44.280 [INFO] - delta = 14,290 ms, received = 40,000
> 17:47:01.804 [INFO] - delta = 17,524 ms, received = 60,000
> 17:47:19.130 [INFO] - delta = 17,325 ms, received = 80,000
> 17:47:35.865 [INFO] - delta = 16,736 ms, received = 100,000
>
>
> which is output generated in a different run, when the sender was told to
> send 1,600,000 messages to the receiver.
>
> In the former case each 25K set of messages is received in ~600ms... while
> in the latter case, over 16 seconds.
> I'm not seeing how the difference can be explained by the serializer used.
>  Even if a single message is serialized in a long time, it should be the
> same amount of "long" time regardless of how many messages the sender is
> told to send to receiver.
>
> Am I missing something?
>
> Thank you!
>
> -Boris
>
>
>  --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to