摘要 |
Test data used in evaluating the performance of a program is generated. First, a source program targeted for performance evaluation, sample data, and a generation parameter used for determining the size of the test data to be generated are received from an input device. A processor then executes the source program using the sample data and obtains the number of executions for each of a plurality of statements in the source program. In addition, on the basis of the obtained number of executions, the processor generates test data having a size that is a multiple of the generation parameter of the sample data size, the test data being such that the frequency of executions for each of the plurality of statements in the source program is the same as the frequency of executions for each of the plurality of statements when executing the source program using the sample data.
|