Loop body | MicroSeconds/iteration | Comment |
int assignment | 0.500 | No allocations/iteration (curious that this is larger; may be collection effects). |
New Integer | 0.200 | Two allocations/iteration assignment. |
String assignment | 0.100 | No allocations/iteration. |
Direct call | 0.100 | Using Java reflection API directly. |
ReflectionUtilities.findMethod | 9.710 | Represents 94% of total call time. |
Method.invoke | 0.610 | Invoking a prefound method. |
ReflectionUtilities.invoke | 10.310 |
Table 1: With Hot Spot optimization.