Hi Jestan,
On Tue, Sep 24, 2013 at 9:55 PM, Jestan Nirojan <
jestan...@gmail.com> wrote:
> I have got a Netty application working on OSv
>
https://github.com/jestan/netty-osv-perf.
>
> Starting the application is very fast :) and it completed the task faster
> than my host PC (sending 8 byte messages from client to server in ping pong
> fashion 100000 times)
> and its great, keep up the good work guys.
>
> but I have got following histogram results for the latency, i was hoping
> that it would be close to few nano seconds, any idea why the latency is like
> this?
What exactly are you trying to measure here? OSv loopback latency? The
test case runs such a short amount of time, you're also measuring
Hotspot JIT compilation...
Microbenchmarks are very hard to get right on the JVM. I strongly
recommend porting the test to JMH before continuing with the
experiment:
http://openjdk.java.net/projects/code-tools/jmh/
Pekka