Benchmarking matrix creation