{"repo":"yarpc/yab","free":true,"listed":false,"github":"https://github.com/yarpc/yab","clone":"git clone https://github.com/yarpc/yab.git","description":"Call and benchmark YARPC services from the command line.","language":"Go","stars":86,"topics":["yarpc","cli","benchmarking","curl"],"license":"MIT","category":"cli-tools","readme_excerpt":"yab [![Build Status][ci-img]][ci] [![Coverage Status][cov-img]][cov] yab (Yet Another Benchmarker) is a tool to benchmark YARPC services. It currently supports making Thrift requests to both HTTP and TChannel services, as well as Protobuf requests to gRPC services. yab is currently in beta status. Installing If you have go installed, simply run the following to install the latest version: This will install yab to $GOPATH/bin/yab . Optionally, you can get precompiled binaries from [Releases][releases]. Usage Making a single request Thrift The following examples assume that the Thrift service running looks like: If a TChannel service was running with name keyvalue on localhost:12345 , you can make a call to the get method by running: Proto The following examples assume that the Proto service running looks like: If a gRPC service was running with name KeyValue on localhost:12345 with proto package name pkg.keyvalue and binary file containing a compiled protobuf FileDescriptorSet as keyValue.proto.bin , you can make a call to the GetValue method by running: You can make a call to the bi-directional stream method GetValueStream with multiple requests by running: You can also interactively pass request data (JSON or YAML) on STDIN to the bi-directional stream method GetValueStream by setting option -request='-' : Note: YAML requests on STDIN must be delimited by --- and followed by a newline. Protobuf FileDescriptorSet can be generated by running: Note : If Server Reflection is ena","default_branch":null,"files":null,"tree":[],"storefront":"/r/yarpc","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yarpc/yab/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}