Skip to main content

Benchmarks

We compared ActiveJ Inject to Guice and Spring in the same scenario, using JMH as the benchmark tool. We ran the benchmarks in AverageTime mode and made 20 measurements. All measurement results are presented 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;

The benchmarks were run 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