Target latency executor?

Howdy,
In the k6 executor, one sets the number of iterations or VUs. Yet, I want to do the opposite and set the target latency to find out the number of RPS the server can perform. Then I will be able to characterize the performance of the system based on the number of RPS in the results. Is there any scenario that would do this? I could write a shell script to loop through multiple k6 runs to find this information, I was just hoping it could be done internally in k6.

Thanks