I dont' understand this sentence:
"Then "stop when time ends", that is missing with 'benchmark' and 'timeout' is important."

Isn't timeout stops the run after X time? Isn't this what you needed? And if benchmark finishes within 5 minutes you will get the stats.