基准 JNDI 查找:Spring 与 classic

发布于 2024-10-08 05:07:53 字数 355 浏览 0 评论 0原文

你好(请原谅我的英语)

我正在将我的应用程序迁移到 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

丢了幸福的猪 2024-10-15 05:07:53

我并不感到惊讶,时间几乎相同。两种方法之间的差异不足以保证性能上存在可测量的差异。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文