The tradeoff between testing accuracy and memory consumption by models