Giter Site home page Giter Site logo

Comments (5)

AntyaDev avatar AntyaDev commented on September 27, 2024 1

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.

AntyaDev avatar AntyaDev commented on September 27, 2024

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.

AntyaDev avatar AntyaDev commented on September 27, 2024

Also question, why not to wrap Step.Run in your for loop?

from nbomber.

destructorvad avatar destructorvad commented on September 27, 2024

@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.

destructorvad avatar destructorvad commented on September 27, 2024

Ok, thanks for your help :)

from nbomber.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.