master.py: fixed matrix benchmark