Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elixir Client speedup #6

Open
predrag-rakic opened this issue Jul 28, 2017 · 2 comments
Open

Elixir Client speedup #6

predrag-rakic opened this issue Jul 28, 2017 · 2 comments

Comments

@predrag-rakic
Copy link

@tony612
I tried to reproduce ~10x speed improvement mentioned in darkofabijan/grpc-stress-test#7 (comment) but got only ~10% speedup (single request takes 40ms instead of 44ms):
https://semaphoreci.com/renderedtext/grpc-stress/branches/master/builds/3 vs
https://semaphoreci.com/renderedtext/grpc-stress/branches/pr-cb_speedup/builds/2
(look at the last command output).

PR #5 is how I used https://github.com/tony612/chatterbox/tree/speedup
Is there something I missed?

(I get the same results on my notebook)

@tony612
Copy link

tony612 commented Jul 30, 2017

I don't know the problem.But there're some differences between yours and mine:

  • I print less log by changing priv/client.exs to
{:ok, channel} = GRPC.Stub.connect("localhost:50051")
Enum.each 1..100000, fn(x) ->
  reply = channel |> Helloworld.Greeter.Stub.say_hello(Helloworld.HelloRequest.new(name: Integer.to_string(x)))
  if rem(x, 1000) == 0 do
    IO.puts "#{Time.utc_now} #{x}"
    IO.inspect reply
  end
end
  • My Erlang version is OTP 20(?)
  • I used Go server
  • The test code is different, so they're not comparable. I'm not sure if it's related to Benchee or others.

@predrag-rakic
Copy link
Author

predrag-rakic commented Jul 31, 2017

I added elixir server to comparison and tried both:

  • Elixir 1.4.5 with Erlang 19 build and
  • Elixir 1.5.0 with Erlang 20 build

Get the same performance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants