expose the number of frame that the benchmark mode runs as commandline parameter:
for example --max_framecount=1000