I try to simulate http workload that obeys rayleigh distribution. I wish to use jmeter for that. I know how to utilize the Poisson and Gaussian Random Timers and I wonder if you have an idea of how to use a raleigh-based timer.
Thanks,
I try to simulate http workload that obeys rayleigh distribution. I wish to use jmeter for that. I know how to utilize the Poisson and Gaussian Random Timers and I wonder if you have an idea of how to use a raleigh-based timer.
Thanks,
You would need to implement the algorithm using for example:
EDIT 2/08/2016:
You used the BeanShell (JSR223+Groovy would perform much better) option to utilize the Apache commons.math3 library.
Sample code:
import org.apache.commons.math3.distribution.WeibullDistribution;
alpha = Integer.parseInt(vars.get("alpha"));
beta = Integer.parseInt(vars.get("beta"));
rng= Integer.parseInt(bsh.args[0]);
try {
WeibullDistribution g= new WeibullDistribution(rng, alpha,beta);
return g.sample();
} catch (Throwable ex) {
log.error("Something wrong", ex);
throw ex;
}