yaki_nuka
yaki_nuka

Reputation: 804

Benchmark JNDI lookup: Spring vs classic

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.

Upvotes: 0

Views: 398

Answers (1)

Michael Wiles
Michael Wiles

Reputation: 21186

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.

Upvotes: 1

Related Questions