Skip to content

Instantly share code, notes, and snippets.

@tatsuhiro-t
Created March 26, 2015 11:06
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tatsuhiro-t/0ef3b51f65fde16806a8 to your computer and use it in GitHub Desktop.
Save tatsuhiro-t/0ef3b51f65fde16806a8 to your computer and use it in GitHub Desktop.
h2load against gRPC greeter_server

command-line:

$ h2load http://localhost:50051/helloworld.Greeter/SayHello \
      -d grpc-upload \
      -H 'te: trailers'
      -H 'content-type: application/grpc'
      -n1000000 -c100 -m100

Create grpc-upload file using following python script:

d='\x00\x00\x00\x00\x07\x0a\x05\x77\x6f\x72\x6c\x64'
with open('grpc-upload', 'w') as f: f.write(d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment