1. An application server that performs dynamic compilation for executing a program, comprising: an execution performance information obtainment unit to obtain execution performance information of a program when the program is executed by an interpreter; a compilation timing information setting unit to set compilation timing information for each method included in the program in accordance with the information on the execution performance; and a dynamic compilation unit to compile the method into a native code in accordance with the information specifying the compilation timing.