Added a matrix perftest.

Signed-off-by: Grant Skinner <info@gskinner.com>