I like the mytop tool . It’s just like topin the * nix world, but for MySQL itself. And that basically does exactly what you ask ...
, Apache Bench MySQL. , script, , , . AB concurrency. , , , , . , . , , . :
<?php
$my = new MySQLi($host, $user, $pass);
$my->query('SELECT foo');
, AB:
ab -c 10 -n 10000 http://localhost/path/to/my/test.php
, concurrency (-c 10), . , , , .