Benchmarking tool for gRPC & HTTP protocols-based web applications
Currently lgen is in the PoC period, not production ready (you can use it, as long as, you are aware of it's limitations)
- lgen utilizes
cobrapackage to have a CLI toolset to generate load using your specific configurations
- Currently, lgen dynamically parses the
protofile and generate random data based on the data type for each field - lgen supports
Unary,Client StreamingandServer Streaming.
go run main.go grpc --proto /home/ahmed-kamal/Downloads/services.proto --destination localhost:50051 --reqn 100000 --tarm sendmessage
Client streaming is tested by file uploading over chunks, file size can be changed, check go run main.go grpc help for details.
go run main.go grpc --proto /home/ahmed-kamal/Downloads/services.proto --destination localhost:50051 --reqn 100000 --tarm uploadfile
The main metric that should be cared for during Server streaming is the number of sent events
go run main.go grpc --proto /home/ahmed-kamal/Downloads/services.proto --destination localhost:50051 --reqn 10000 --tarm getnotifications --timeout 10
for POST requests, the request body should be specified.
go run main.go http --destination "http://localhost:8000/SendMessage" --reqn 100 --method POST --reqb_path test-scripts/body.json
go run main.go http cs --destination "http://localhost:8000/upload" --reqn 100 --size 2147483648
go run main.go http sse --destination "http://localhost:8000/GetNotifications?user_id=u1" --reqn 100
lgen is and will be always OSS, lgen is always open to OS contribution, feel free to open PR, add issue or even discuss detials within github discussions (slack/discord can considered if the community became bigger).