android-dependency-injection-performance
android-dependency-injection-performance copied to clipboard
Update DI libraries
I updated all DI libraries to the latest version and refactored the Katana module to use the compact declaration.
Koin looks faster than ever 👏
motorola albus (aka Moto Z2 Play) with Android 8.0.0
Library | Setup Kotlin | Setup Java | Inject Kotlin | Inject Java |
---|---|---|---|---|
Koin | 1.64 ms | 1.54 ms | 0.18 ms | 0.19 ms |
Kodein | 12.77 ms | 12.50 ms | 0.27 ms | 0.23 ms |
Katana | 0.87 ms | 0.79 ms | 0.11 ms | 0.09 ms |
Custom | 0.25 ms | 0.22 ms | 0.09 ms | 0.11 ms |
Dagger | 0.02 ms | 0.02 ms | 0.12 ms | 0.09 ms |