mref.lua is done: to measure the delay of mem ref