Skip to main content

Benchmarks

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.measure
Score: 138.475; Error: ± 6.156; Units: ns/op;
GuiceDiScopesBenchmark.measure
Score: 780.017; Error: ± 23.994: Units: ns/op;
SpringDiBenchmark.measure
Score: 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