Skip to main content

Benchmarks

Resolution latency against a 7-class dependency graph. Measured with mitata.
Run npm run bench:compare to regenerate from your machine.
Please note that this is a simple resolution benchmark that might differ from the actual usage model of a particular library. For example, the NestJS container is not usually used directly, but through its application framework.
Last updated on June 17, 2026.

Transient

LibraryLatency
Raw (new)9.64 ns
DiCaf (provider)158.11 ns
DiCaf165.17 ns
Awilix481.83 ns
injection-js569.86 ns
TSyringe1.15 µs
Inversify1.93 µs
TypeDI2.28 µs
LoopBack2.71 µs
NestJS4.91 µs

Singleton

LibraryLatency
DiCaf (provider)16.37 ns
DiCaf17.85 ns
Awilix17.98 ns
TypeDI27.23 ns
Awilix (cradle)31.16 ns
injection-js40.21 ns
TSyringe68.56 ns
NestJS81.12 ns
Inversify101.72 ns
LoopBack195.07 ns