Comments (5)
Yeah, something like this?
foreach (var structuralElementDto in data.StructuralElements)
{
Step.Run("Create_structural_element_and_structural_objects"
}
I understand that maybe it's not so convenient compared to your proposal, but keep in mind that NBomber doesn't know much about HTTP/WebSockets/gRPC, etc. Conceptually NBomber knows only about step/scenario abstraction.
Does it make sense?
from nbomber.
Hi @destructorvad
Can you please elaborate on what statistics you are looking for?
Maybe some examples that you have seen in other tools?
from nbomber.
Also question, why not to wrap Step.Run in your for loop?
from nbomber.
@AntyaDev I dont have examples in other tools - but I have following code:
await Step.Run("Create_structural_element_and_structural_objects", context, async () =>
{
foreach (var structuralElementDto in data.StructuralElements)
{
var response = await Http.Send(httpClient, GetRequest(structuralElementDto));
if (createStructuralElementResponse.IsError) return Response.Fail();
}
return Response.Ok();
});
Here is statistics result:
| name | Create_structural_element_and_structural_objects |
+--------------------+---------------------------------------------------------------+
| request count | all = 2, ok = 2, RPS = 2 |
+--------------------+---------------------------------------------------------------+
| latency | min = 4897.34, mean = 4921.34, max = 4944.81, StdDev = 24.58 |
+--------------------+---------------------------------------------------------------+
| latency percentile | p50 = 4898.81, p75 = 4947.97, p95 = 4947.97, p99 = 4947.97 |
What I want to see in statistics:
Number of actual http calls, mean, latency for every http call - now I see it for the whole step. As a variant - return not one response from step - but collection of responses (it can be used for per request statistics)
Also question, why not to wrap Step.Run in your for loop?
Do you mean one step per every http call ?
from nbomber.
Ok, thanks for your help :)
from nbomber.
Related Issues (20)
- Implement Step.RunHidden to not show a step in the report HOT 14
- Show Standard Deviation in Report HOT 2
- Add Bytes extensions API
- Problem with license validation HOT 6
- Help: Why is only one copy running even if I specified multiple copies? HOT 11
- Feature Request: Provide a way for a scenario to detect that the scenario is ending. HOT 5
- Add hint if Warmup is None
- Reporting maxes out at about 12 minutes HOT 9
- Provide list of license servers
- Add ability to start measuring stats after some period of time.
- Improve license validation
- Backwards compatibility issues with NATS Client HOT 6
- Add a Hidden Step support HOT 1
- Add ReportFinalizer handler to allow manipulation of final data for report generation
- ClientPool - extending pool / add new clients dynamically HOT 8
- Client Pool - clean client before it can be reused HOT 1
- Grafana - Incorrect query for Request Count HOT 5
- Unhandled exception: MetricsStatsActor failed HOT 3
- Add CLI argument to set SessionId
- AutoCluster - Grafana dashboard isn't displaying Status Codes HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nbomber.