Re: [grpc-io] Re: gRPC performance (Java)

2023-01-04 Thread Gordan Krešić

On 03. 01. 2023. 23:57, 'Sergii Tkachenko' via grpc.io wrote:

Just an idea - did you try to run `ghz` with the `--async` flag. It might make 
sense to play around with `--skipFirst` flag as well, so that first request to 
not pre-warmed JVM do not bias the result.
Also - looks like REST wrk benchmark uses 400 connections, while gRPC ghz just 
one? Consider trying `--connections=400` ghz argument.
Docs: https://ghz.sh/docs/usage


Already did all of that and more:

* played with `--async`, `--concurrency` and `--connections`

* invoked ghz multiple times to make sure server is "warm"

Like I already mentioned, I even wrote my own benchmark that gave *somewhat* 
better throughput than ghz, but still way lower than REST tests.

If no one can spot anything I missed on server side, I'll also write my own 
benchmarks for REST endpoints - that way I can guarantee that client logic is 
the same.

-gkresic.

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/dee72ea2-09cc-0a85-eb08-25ec32ae2a4a%40steatoda.com.


Re: [grpc-io] Re: gRPC performance benchmark

2018-11-07 Thread robert engels
I would think it is going to depend heavily on the work the gRPC service method 
does, not GRPC itself. Since the REST/HTTP protocol is already less efficient 
than the gRPC one - the former is going to dominate it in terms of relative 
performance.


> On Nov 7, 2018, at 1:31 PM, dineshs via grpc.io  
> wrote:
> 
> We are using ab to hit REST endpoints. 
> 
> ab ->   REST server (GRPC Client) -> GRPC server
> 
> In this case the protobuf deserialization is happening on the REST server 
> using the real client. AB is not performing the protobuf deserialization. 
> 
> On Tuesday, November 6, 2018 at 1:27:57 PM UTC-8, Carl Mastrangelo wrote:
> I'm not sure ab is a very good benchmark tool.  It used to be years ago, but 
> I haven't seen it used in a long time.  Also, by using it you avoid the 
> deserialization that a real client would do.  
> 
> 
> 
> On Tuesday, November 6, 2018 at 10:39:49 AM UTC-8, din...@wepay.com <> wrote:
> Hi,
> 
> Using gRPC Java RouteGuide Example available in github, I was running a gRPC 
> server and a REST server which contains gRPC client. Using this setup, I 
> tried to run AB (Apache Bench) tool to find the performance of unary and 
> server side streaming calls.
> 
> I noticed that the response time becomes low as we increase the concurrency 
> level (especially more significant change for server side streaming calls). I 
> would like to if there is any recommended best practices or this is and 
> expected increase in latency.
> 
> FYI, I created a single ManagedChannel instance for the client and startup 
> time. I have also attached the performace graphs.
> 
> Regards,
> Dinesh P S
> 
> 
> 
> -- 
> 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/f868d5a5-e6b8-466a-a2e9-1572874e58e0%40googlegroups.com
>  
> .
> 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/12A1601F-3ECF-48CB-9F34-09BD78129A2F%40earthlink.net.
For more options, visit https://groups.google.com/d/optout.


Re: [grpc-io] Re: gRPC Performance

2018-03-14 Thread ndun
Hi Sree, 

any updates? we also found that some data is 
missing: 
https://performance-dot-grpc-testing.appspot.com/explore?dashboard=5636470266134528

Nan

On Thursday, March 8, 2018 at 8:36:04 PM UTC-8, Sree Kuchibhotla wrote:
>
> Thanks for bringing this to our attention. The numbers look very low for 
> C++ (especially for unary, its way too low). We are investigating..
>
> thanks,
> Sree
>
>
> On Wed, Mar 7, 2018 at 4:38 PM 'Matt Kwong' via grpc.io <
> grp...@googlegroups.com > wrote:
>
>> +grpc-io
>>
>> Unfortunately, I'm not the best person to answer this question. Adding 
>> grpc-io, so that someone working on C++ or Java performance can answer 
>> this. 
>>
>> On Wed, Mar 7, 2018 at 4:10 PM, Nan Dun > > wrote:
>>
>>> Hi Matt,
>>>
>>>  
>>>
>>> This is Nan from Quantcast. Our team at Quantcast is looking for gPRC 
>>> performance numbers and we are glad to find this very insightful chart: 
>>> https://performance-dot-grpc-testing.appspot.com/explore?dashboard=5636470266134528
>>>
>>>  
>>>
>>> However, we are a bit confused, in throughput QPS charts (both unary and 
>>> streaming), why Java has much better performance (almost 2x) than C++? We 
>>> do appreciate if you can give us some hints about this. Thank you!
>>>
>>>  
>>>
>>> Sincerely,
>>>
>>> Nan
>>>
>>
>> -- 
>> 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+u...@googlegroups.com .
>> To post to this group, send email to grp...@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/CALc3v%2BOoOwcvFdLuPG7%3DAvaO%2BmKQhT29Kxvb4WthQHLi5Dv9eg%40mail.gmail.com
>>  
>> 
>> .
>> 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/3e139cb3-6e6b-4ed5-8c3c-aee80d48fa99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [grpc-io] Re: gRPC Performance

2018-03-08 Thread 'Sree Kuchibhotla' via grpc.io
Thanks for bringing this to our attention. The numbers look very low for
C++ (especially for unary, its way too low). We are investigating..

thanks,
Sree


On Wed, Mar 7, 2018 at 4:38 PM 'Matt Kwong' via grpc.io <
grpc-io@googlegroups.com> wrote:

> +grpc-io
>
> Unfortunately, I'm not the best person to answer this question. Adding
> grpc-io, so that someone working on C++ or Java performance can answer
> this.
>
> On Wed, Mar 7, 2018 at 4:10 PM, Nan Dun  wrote:
>
>> Hi Matt,
>>
>>
>>
>> This is Nan from Quantcast. Our team at Quantcast is looking for gPRC
>> performance numbers and we are glad to find this very insightful chart:
>> https://performance-dot-grpc-testing.appspot.com/explore?dashboard=5636470266134528
>>
>>
>>
>> However, we are a bit confused, in throughput QPS charts (both unary and
>> streaming), why Java has much better performance (almost 2x) than C++? We
>> do appreciate if you can give us some hints about this. Thank you!
>>
>>
>>
>> Sincerely,
>>
>> Nan
>>
>
> --
> 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/CALc3v%2BOoOwcvFdLuPG7%3DAvaO%2BmKQhT29Kxvb4WthQHLi5Dv9eg%40mail.gmail.com
> 
> .
> 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/CALRi9QdnRfsTkLNj0vhR%2BJei0XWpnA1fVSiwwYZ7ga%2BtAGGpPQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.