Title: Function cost analysis