Comments (10)
it won't affect memory usage but the CPU profile should get a lot better
from db1000n.
There's no StaticPacket there
Yeah, updating all the admin processes takes some time
from db1000n.
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.
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.
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.
Well there should be something faster, maybe:
- just pure
function
andarg
(random_payload 10
) - JIT - just in time compiled template? Is there anything in go?
from db1000n.
Because compiling config is a no-go? 😋
https://github.com/valyala/quicktemplate
from db1000n.
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.
Nice, you added static :)
from db1000n.
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)
- Reference to db1000nX100 project HOT 1
- Error when pulling docker image HOT 1
- vpn load balancing script
- Simplify logs HOT 8
- Can you compiling file or opkg OpenWRT for MIPS, MIPSBE, MMIPS etc? ;) HOT 14
- Trojan HOT 3
- Scale up db1000n automatically in order to utilize all available system resources HOT 2
- Disk usage is increasing with Docker containers HOT 5
- Can you add limit download/upload speed? HOT 3
- Add more stats (cpu/memory load, amount of open connections, etc.)
- oom killed HOT 23
- prometheus.go:298: Can't push metrics to gateway HOT 2
- ERROR: HostClient can't follow redirects to a different protocol, please use Client instead HOT 1
- Config path is not available anymore for Digital Ocean deployment HOT 1
- Add new sites? HOT 2
- Non-cumulative stats HOT 1
- Build unsuccesful by go install HOT 4
- . HOT 2
- warn failed to fetch config {"path": "", "error": "open : no such file or directory"} ----how do I fix this?
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 db1000n.