adding memory benchmark tracking and output, and the check.bmem option
to turn it on