I am upgrading older code from mysql_ to mysqli and i found myself writing a replacement for the common :
mysql_result();
What i wrote was :
function mysqli_result($res, $row, $field=0) {
$res->data_seek($row);
$datarow = $res->fetch_array();
return $datarow[$field];
}
But im curious, is there anyway to precisely benchmark the two without hindering any performance speed and if so what would be the best way about it ?