polynomial matrix benchmark