基准 JNDI 查找:Spring 与 classic
你好(请原谅我的英语)
我正在将我的应用程序迁移到 Spring。我对此有一个疑问。
为了使用 Spring 查找 EJB,我使用 ,这对我来说非常适合。
现在我想对旧调用(初始上下文,然后查找方法)与新调用(remoteObj bean实例化)进行基准测试)。我用 System.currentTimeInMillis() 包装代码,但措施几乎相同。
那么,是否有任何可靠的软件/Java 类...对此采取可靠的措施?然后,我可以说Spring JNDI 查找在我的应用程序中得到了改进。
提前致谢。此致。
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 I 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我并不感到惊讶,时间几乎相同。两种方法之间的差异不足以保证性能上存在可测量的差异。
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.