between(min_wait, max_wait)
返回一个函数,该函数将返回一个介于min_wait和max_wait之间的随机数。
例子:
class MyUser(User):
# wait between 3.0 and 10.5 seconds after each task
wait_time = between(3.0, 10.5)
constant(wait_time)
返回一个函数,该函数只返回由wait_time参数指定的数字
例子:
class MyUser