On 24 June 2014 09:40, Klaus Kraft <kl.kraf...@gmail.com> wrote:

>
>
Is there any particular reason why the first invocation is "much" slower
> than the second one? I used the most current version of protobuf for the
> evaluation, if this is relevant for the answer.
>

Classloading, method resolution etc are the obvious things here.

Java microbenchmarks are hard to get right - I'd suggest using an
established framework e.g. JMH rather than trying to roll your own.

Oliver

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to