A common technique is to benchmark a function by calling it many times i.e.
void foo(void); int main(void) { } -- Summary: "benchmark" function attribute. Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: svfuerst at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44053