Coder Social home page Coder Social logo

Comments (10)

arriven avatar arriven commented on August 25, 2024 5

it won't affect memory usage but the CPU profile should get a lot better

from db1000n.

arriven avatar arriven commented on August 25, 2024 1

There's no StaticPacket there

Yeah, updating all the admin processes takes some time

from db1000n.

arriven avatar arriven commented on August 25, 2024

for getNextPacket: have you tried setting StaticPacket to true in the config? should work on tcp/udp jobs as well as they just forward that argument to packetgen

from db1000n.

deputinizer avatar deputinizer commented on August 25, 2024

Well I'm using the default config.
https://github.com/db1000n-coordinators/LoadTestConfig/blob/e3ed4702c7d19347668ac5842d058172b596c329/config.v0.7.json#L435

There's no StaticPacket there

from db1000n.

arriven avatar arriven commented on August 25, 2024

I'm not sure you can optimize other two without defeating their purpose completely. The only other thing that could be done is porting that StaticPacket thing to http flood to enable sending more traffic when no variablility is needed

from db1000n.

deputinizer avatar deputinizer commented on August 25, 2024

Well there should be something faster, maybe:

  • just pure function and arg (random_payload 10)
  • JIT - just in time compiled template? Is there anything in go?

from db1000n.

deputinizer avatar deputinizer commented on August 25, 2024

Because compiling config is a no-go? 😋
https://github.com/valyala/quicktemplate

from db1000n.

arriven avatar arriven commented on August 25, 2024

pure function and arg could work, but it would make the config even more bloated and I'm not completely sure it would be much faster, especially compared to static version which parses templates only once when new config is received. Also current implementation is already not that bad - in go you have separate Parse and Execute functions for templates where Parse takes significantly more resources than Execute. I don't think it's the most effective implementation but it does its job quite well

from db1000n.

deputinizer avatar deputinizer commented on August 25, 2024

Nice, you added static :)

[Spoiler] Here's dynamic

image

from db1000n.

arriven avatar arriven commented on August 25, 2024

hmm, having thought about it more, with current usage it might be easier to switch the code to use static by default and dynamic would have to be specified explicitly

from db1000n.

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.