macchiatow / gatling-grpc Goto Github PK
View Code? Open in Web Editor NEWA Gatling stress test plugin for gRPC protocol
License: Apache License 2.0
A Gatling stress test plugin for gRPC protocol
License: Apache License 2.0
here use FundsRequest
but not import me.macchiatow.gatling.grpc.FundsRequest
. Thanks a lot!
I write "setUp" like this, but throttle not work, the Running really produce 777 request, as expectation is reachRps*holdFor = 50 request. why? please answer my question, thank you.
setUp(scn.inject(atOnceUsers(777)))
.throttle(
reachRps(5) in (1 second),
holdFor(10 seconds)
)
.protocols(protocol)
according to your readme, the follow errors:
➜ gatling-charts-highcharts-bundle-2.3.1 sh bin/gatling.sh
GATLING_HOME is set to /Users/thinkerou/Downloads/gatling-charts-highcharts-bundle-2.3.1
16:30:02.222 [ERROR] i.g.c.ZincCompiler$ - /Users/thinkerou/Downloads/gatling-charts-highcharts-bundle-2.3.1/user-files/simulations/computerdatabase/BasicGrpcSimulation.scala:22: not found: value FundsServiceGrpc
16:30:02.224 [ERROR] i.g.c.ZincCompiler$ - FundsServiceGrpc.bindService((_: FundsRequest) => Future.successful(FundsResponse(300)),ExecutionContext.global))
16:30:02.224 [ERROR] i.g.c.ZincCompiler$ - ^
16:30:02.225 [ERROR] i.g.c.ZincCompiler$ - /Users/thinkerou/Downloads/gatling-charts-highcharts-bundle-2.3.1/user-files/simulations/computerdatabase/BasicGrpcSimulation.scala:22: not found: type FundsRequest
16:30:02.225 [ERROR] i.g.c.ZincCompiler$ - FundsServiceGrpc.bindService((_: FundsRequest) => Future.successful(FundsResponse(300)),ExecutionContext.global))
16:30:02.225 [ERROR] i.g.c.ZincCompiler$ - ^
16:30:02.226 [ERROR] i.g.c.ZincCompiler$ - /Users/thinkerou/Downloads/gatling-charts-highcharts-bundle-2.3.1/user-files/simulations/computerdatabase/BasicGrpcSimulation.scala:22: not found: value FundsResponse
16:30:02.226 [ERROR] i.g.c.ZincCompiler$ - FundsServiceGrpc.bindService((_: FundsRequest) => Future.successful(FundsResponse(300)),ExecutionContext.global))
16:30:02.226 [ERROR] i.g.c.ZincCompiler$ - ^
16:30:02.230 [ERROR] i.g.c.ZincCompiler$ - /Users/thinkerou/Downloads/gatling-charts-highcharts-bundle-2.3.1/user-files/simulations/computerdatabase/BasicGrpcSimulation.scala:26: not found: type FundsRequest
16:30:02.230 [ERROR] i.g.c.ZincCompiler$ - val feeder: Feeder[FundsRequest] = Iterator.continually(Map(
16:30:02.230 [ERROR] i.g.c.ZincCompiler$ - ^
16:30:02.312 [ERROR] i.g.c.ZincCompiler$ - /Users/thinkerou/Downloads/gatling-charts-highcharts-bundle-2.3.1/user-files/simulations/computerdatabase/BasicGrpcSimulation.scala:27: not found: value FundsRequest
16:30:02.313 [ERROR] i.g.c.ZincCompiler$ - ("fundsRequest", FundsRequest(Seq("adr")))
16:30:02.313 [ERROR] i.g.c.ZincCompiler$ - ^
16:30:02.621 [ERROR] i.g.c.ZincCompiler$ - 5 errors found
16:30:02.623 [ERROR] i.g.c.ZincCompiler$ - Compilation crashed
sbt.compiler.CompileFailed: null
example:
first grpc interface return {"num": 123, "name": "thinkerou"}
, and second grpc interface will use before num
result.
service resource have many rich.
Get the following data using Helloworld program which have not handle db/cache:
================================================================================
---- Global Information --------------------------------------------------------
> request count 1000000 (OK=1000000 KO=0 )
> min response time 100 (OK=100 KO=- )
> max response time 39059 (OK=39059 KO=- )
> mean response time 21825 (OK=21825 KO=- )
> std deviation 6123 (OK=6123 KO=- )
> response time 50th percentile 22521 (OK=22522 KO=- )
> response time 75th percentile 24805 (OK=24858 KO=- )
> response time 95th percentile 28557 (OK=28556 KO=- )
> response time 99th percentile 32369 (OK=32368 KO=- )
> mean requests/sec 22222.222 (OK=22222.222 KO=- )
---- Response Time Distribution ------------------------------------------------
> t < 800 ms 22199 ( 2%)
> 800 ms < t < 1200 ms 11107 ( 1%)
> t > 1200 ms 966694 ( 97%)
> failed 0 ( 0%)
================================================================================
================================================================================
---- Global Information --------------------------------------------------------
> request count 200000 (OK=200000 KO=0 )
> min response time 0 (OK=0 KO=- )
> max response time 453 (OK=453 KO=- )
> mean response time 0 (OK=0 KO=- )
> std deviation 1 (OK=1 KO=- )
> response time 50th percentile 0 (OK=0 KO=- )
> response time 75th percentile 0 (OK=0 KO=- )
> response time 95th percentile 1 (OK=1 KO=- )
> response time 99th percentile 1 (OK=1 KO=- )
> mean requests/sec 5882.353 (OK=5882.353 KO=- )
---- Response Time Distribution ------------------------------------------------
> t < 800 ms 200000 (100%)
> 800 ms < t < 1200 ms 0 ( 0%)
> t > 1200 ms 0 ( 0%)
> failed 0 ( 0%)
================================================================================
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.