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

Add D benchmark #30

Closed
3 tasks done
Trisfald opened this issue Jul 19, 2020 · 1 comment · Fixed by #202
Closed
3 tasks done

Add D benchmark #30

Trisfald opened this issue Jul 19, 2020 · 1 comment · Fixed by #202
Assignees
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Trisfald
Copy link
Collaborator

Trisfald commented Jul 19, 2020

Add a D grpc benchmark.

Library: https://github.com/huntlabs/grpc-dlang

  • gRPC server implementation
  • Dockerfile to build an image with the gRPC server
  • update build.sh, clean.sh and bench.sh scripts
@Trisfald Trisfald added help wanted Extra attention is needed good first issue Good for newcomers labels Jul 19, 2020
@Trisfald Trisfald self-assigned this Jul 19, 2020
@Trisfald
Copy link
Collaborator Author

Trisfald commented Jul 19, 2020

I can compile the application, but the server crashes during the test.

Steps to reproduce:

Checkout the branch d-bench.

Build the server with:

docker build --force-rm -f d_grpc/Dockerfile -t d_grpc_test .

Start a container and run the server inside it:

docker run --rm --network host --cpus 1 --name test --entrypoint bash -it d_grpc_test
./server

Perform a client request:

docker run --name ghz --rm --network=host -v "${PWD}"/proto:/proto:ro --entrypoint=ghz infoblox/ghz:0.0.1 --proto=/proto/helloworld/helloworld.proto --call=helloworld.Greeter.SayHello --insecure --duration 1s -d "{\"name\":\"it's not as performant as we expected\"}" 127.0.0.1:50051

Server crashes with this ouput:

2020-07-19 18:54:13 (21) [debug] parseNext - after parseLine =>[pos=16 lim=24 cap=24] - /root/.dub/packages/hunt-http-0.6.3/hunt-http/source/hunt/http/codec/http/decode/HttpParser.d:1325
2020-07-19 18:54:13 (21) [info] onPreface - server received preface: Http2Session@132645144323280{l:127.0.0.1:50051 <-> r:127.0.0.1:33236,sendWindow=65535,recvWindow=65535,streams=0,NOT_CLOSED} - grpc-dlang/source/grpc/GrpcServer.d:64
2020-07-19 18:54:13 (21) [info] onNewStream - server created new stream: 1 - grpc-dlang/source/grpc/GrpcServer.d:69
2020-07-19 18:54:13 (21) [info] onNewStream - server created new stream headers: POST{u=http://127.0.0.1:50051/helloworld.Greeter/SayHello,HTTP/2.0,h=4,cl=-1} - grpc-dlang/source/grpc/GrpcServer.d:70
2020-07-19 18:54:13 (21) [info] onNewStream - server created new stream: 3 - grpc-dlang/source/grpc/GrpcServer.d:69
2020-07-19 18:54:13 (21) [info] onNewStream - server created new stream headers: POST{u=http://127.0.0.1:50051/helloworld.Greeter/SayHello,HTTP/2.0,h=4,cl=-1} - grpc-dlang/source/grpc/GrpcServer.d:70
Segmentation fault

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant