1. A method of estimating a processing cost of a user-defined function or method, comprising: obtaining a value set of parameters of one of a user defined function and a user defined method; setting parameters of the one of the user defined function and the user defined method according to the value set; running the one of the user defined function and the user defined method; and responsive to running the one of the user defined function and the user defined method, calculating an execution time of the one of the user defined function and the user defined method.