Write test code ,performance optimization part of the interface