code to measure memory bandwidth utilization