grpc icon indicating copy to clipboard operation
grpc copied to clipboard

How to run benchmarks?

Open danirukun opened this issue 3 years ago • 2 comments

Describe the question I have tried following the exact instructions in the benchmarks subdirectory, but running the tests always fails. Could you please provide up-to-date instructions on how to setup an environment for benchmarks?

Versions:

  • OS: macOS 12.5 21G72 x86_64
  • Erlang:Erlang/OTP 25 [erts-13.0.3] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns]

Elixir 1.13.3 (compiled with Erlang/OTP 25)

  • Elixir:
  • mix.lock(grpc, gun, cowboy, cowlib):

danirukun avatar Aug 26 '22 09:08 danirukun

I think we're gonna need @tony612's input here. The fork is based on a really outdated version of grpc, and what fails (at least for me) is some part of the build process. There aren't many additions, but we need a commit updating the fork.

Additions in question: https://github.com/grpc/grpc/compare/master...tony612:grpc:elixir-bench

Alternatively, we could find a way to call the benchmark as a library instead and have this custom code as part of this repo.

polvalente avatar Aug 30 '22 06:08 polvalente

grpc's benchmark is complex and it may change as time goes by, so it's not strange to see the failing. I think we need to revisit the benchmarks and lots of code may need to be changed. It will be better if we can find a way to not fork grpc/grpc.

tony612 avatar Aug 31 '22 14:08 tony612