File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes OO, Patterns, UML and Refactoring and the fly likes Guice vs Spring DI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Guice vs Spring DI" Watch "Guice vs Spring DI" New topic

Guice vs Spring DI

Vijitha Kumara

Joined: Mar 24, 2008
Posts: 3902

Hi Dhanji Prasanna,

How do you compare the DI implementations in both Spring and Guice ? Is there any substantial difference(s) in performance ? Since Guice primarily focuses on DI is it better than Spring's counterpart ?


[How to ask questions] [Twitter]
Dhanji Prasanna
Ranch Hand

Joined: Aug 30, 2009
Posts: 38

Here is a comparison from the Guice wiki:

In performance, a speed test we wrote outdid spring 1.0 by 100x and spring 2.5 by 10x (This benchmark is available in the Guice code repository). Both continue to make speed improvements.

Software Engineer at Google
I agree. Here's the link:
subject: Guice vs Spring DI
It's not a secret anymore!