Statistics by number of VUs

I want to do something similar to a “Breakpoint test”, that is to say, increase little by little the number of VUS until I reach a high number. The problem I have is that I don’t know how to obtain statistics (mainly ‘http_req_duration’) according to the number of VUS at any given moment.

Any suggestions on how I could do this?

Thanks

I answer myself…

import { instance } from 'k6/execution'

....
tags: { "vusActive": instance.vusActive }

2 Likes