I heard that cglib takes less time as compare to java reflection for runtime object creation but when I checked, it is taking 100 times more time than java reflection.
Following is the result of my research
Creating 10000 objects
CGLIB:191 milliseconds
Normal:2 milliseconds
Reflection:24 milliseconds
I want to ask here that what are the benefits of using cglib/javaassit over java reflection.