Skip to main content


We've compared ActiveJ Inject to Guice and Spring in the same scenario, using JMH as the benchmark tool. We ran benchmarks in AverageTime mode and made 20 measurements. All measurement results are represented in nanoseconds.

ActiveInjectScopesBenchmark.measureScore: 138.475; Error: ± 6.156; Units: ns/op;
GuiceDiScopesBenchmark.measureScore: 780.017; Error: ± 23.994: Units: ns/op;
SpringDiBenchmark.measureScore: 77191; Error: ± 322.6; Units: ns/op;

Benchmarks were launched on a machine with the following parameters: Ubuntu 18.04 bionic, Kernel: x86_64 Linux 4.15.0-55-generic, CPU: Intel Core i5-8400 @ 6x 4GHz [27.8°C].

You can find benchmark sources on GitHub