| CPC G06F 11/3495 (2013.01) [G06F 11/3404 (2013.01); G06F 11/3409 (2013.01); G06F 11/3447 (2013.01); G06F 15/781 (2013.01)] | 18 Claims |

|
1. A method for measuring performance of a processing device, comprising:
receiving, at a processor, hardware information associated with the processing device and a calculation task;
generating, via the processor, hardware model as agents, according to the hardware information;
generating, via the processor, an event model by dividing the calculation task by events for the agents based on the hardware model, wherein the event model includes nodes corresponding to the agents and edges corresponding to the events; and
measuring, via the processor, a total duration of the calculation task through simulation of the event model based on durations of the edges, each of the edges is data transmission between nodes, wherein the event model is regenerated after removing an edge,
wherein measuring the total duration comprises:
advancing time by a final duration of an edge that is completed earliest among the edges;
removing the edge that is completed the earliest;
computing a final duration of each of all the edges again; and
measuring the total duration by summing the advanced time if all the edges have been removed.
|