A few things jump out that you'll want to look at...

- Make sure GRPC does not have TLS enabled
- When creating your server call ServerBuilder.directExecutor  (We don't
usually recommend this for real world usage as it makes the network thread
block on application code but that's what you're doing with Thrift so....)
- Similarly use ManagedChannelBuilder.directExecutor (Same issue as above)

Also your benchmarks have no warm up phase which is going to mess with your
numbers. Use a real benchmarking framework like JMH to drive things.

GRPC is doing more work than Thrift that comes at a cost, the metadata
exchange features are a built-in for GRPC that Thrift does not have

On Fri, Sep 30, 2016 at 6:31 AM, Udit Sharma <udit7...@gmail.com> wrote:

> i am playing for sometime  with sample apps written in both framework in
> java.
>
> And here is response times i observed.
>
> Thrift : 404 ms for 10K sequential RPC calls .
>
> GRPC =  4478 ms for 10K sequential  RPC calls.
>
>
> I am surprised with this result, i was not expecting this at all. I may be
> doing something wrong, so just wanted to check, if this results make sense
> at all ?
>
>
> Can someone help me understand what might be going behind the scene which
> can explain this ?
>
> http://pastebin.com/5tUB3F2m (link to sample app code for the client)
>
> --
> You received this message because you are subscribed to the Google Groups "
> grpc.io" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to grpc-io+unsubscr...@googlegroups.com.
> To post to this group, send email to grpc-io@googlegroups.com.
> Visit this group at https://groups.google.com/group/grpc-io.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/grpc-io/8ac14b21-17bc-4d70-b61d-0f11ec0af48e%40googlegroups.com
> <https://groups.google.com/d/msgid/grpc-io/8ac14b21-17bc-4d70-b61d-0f11ec0af48e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CADQ0XY06BuX4iRgqSKrhjXUjf3dEM1f2dGXpYU%2B2-9OeyF%2BmOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to