How To Check Sql Performance With Sql Function