Add test benchmark to monitor heap/off-heap memory usage