Hi (excuse me for my English)
I'm migrating my app to Spring. I have a question about it.
To lookup EJBs with Spring, I use and this works perfect for me.
Now 开发者_如何学JAVAI want to benchmark old invocation (initial context and then lookup method) vs new one (remoteObj bean instantiation). I'm wrapping the code with System.currentTimeInMillis() , but the measures are almost the same.
So, is there any reliable software/Java class... to take reliable measures about this? Then, I could say Spring JNDI lookup improves in my app or not.
Thanks in advance. Best regards.
It doesn't surprise me the times are almost the same. The differences between the two approaches are not sufficient to warrant there being a measurable difference in performance.
精彩评论