Closed
Description
The traffic generation currently uses a needless amount of CPU by launching a Bash instance in the workspace. It also relies on crypto/rand
to produce random output.
To reduce CPU, we can switch bash to dd
to allow both echo and non-echo operation dd if=/dev/stdin of=/dev/stdout|/dev/null bs=[payload size]
.
We can also switch crypto/rand
to math/rand
with a seed to allow reproducible pseudo-random output.