{"id":20408011,"url":"https://github.com/heapy/di-comparison","last_synced_at":"2025-04-12T15:21:47.849Z","repository":{"id":69451136,"uuid":"328506839","full_name":"Heapy/di-comparison","owner":"Heapy","description":"DI containers comparison","archived":false,"fork":false,"pushed_at":"2021-03-13T14:18:19.000Z","size":182,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T06:22:28.634Z","etag":null,"topics":["di-comparison","di-containers"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Heapy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-11T00:14:07.000Z","updated_at":"2022-05-22T16:54:51.000Z","dependencies_parsed_at":"2023-09-16T00:00:56.782Z","dependency_job_id":null,"html_url":"https://github.com/Heapy/di-comparison","commit_stats":{"total_commits":43,"total_committers":4,"mean_commits":10.75,"dds":0.4651162790697675,"last_synced_commit":"0d21b2fc90c97b97953c5681f0c90fec8ec83bb2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Heapy%2Fdi-comparison","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Heapy%2Fdi-comparison/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Heapy%2Fdi-comparison/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Heapy%2Fdi-comparison/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Heapy","download_url":"https://codeload.github.com/Heapy/di-comparison/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248586319,"owners_count":21129015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["di-comparison","di-containers"],"created_at":"2024-11-15T05:27:30.425Z","updated_at":"2025-04-12T15:21:47.826Z","avatar_url":"https://github.com/Heapy.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DI Containers Comparison\n\nComparing a simple app varieties on different DI containers.\n\n## IntelliJ IDEA Setup\n\nGo to \"Preferences \u003e Annotation Processors\", and check \"Enable Annotation\nProcessing\".\n\n## \"Benchmark\"\n\n```\n# Build\n./gradlew clean build installDist distTar\n\n# Run\nTestRunner in common-deep/src/test/kotlin\n```\n\n## Test machine\n\n```\nMacBook Pro (16-inch, 2019)\nProcessor: 2,6 GHz 6-Core Intel Core i7\nMemory: 32 GB 2667 MHz DDR4\n\nopenjdk 11.0.10 2021-01-19 LTS\nOpenJDK Runtime Environment Corretto-11.0.10.9.1 (build 11.0.10+9-LTS)\nOpenJDK 64-Bit Server VM Corretto-11.0.10.9.1 (build 11.0.10+9-LTS, mixed mode)\n```\n\n## Results for JVM (JDK 11)\n\n|DI|Jar w/Deps Size, Mb|:arrow_down: Exec time, s|LoC|\n|----|----|----|----|\n|jvm|1.69|111|2|\n\n## Results for 2 classes (JDK 11)\n|DI|Jar w/Deps Size, Mb|:arrow_down: Exec time, ms|LoC|\n|----|----|----|----|\n|kotlin-lazy|1.69|118|16|\n|baseline|1.69|130|7|\n|dagger|1.73|130|37|\n|cayennedi|1.76|158|37|\n|koin|1.85|160|16|\n|koin-reflect|1.88|170|17|\n|kodein|2.36|180|17|\n|bootique|4.18|229|52|\n|guice|5.42|331|33|\n|spring|5.60|356|23|\n|komodo|6.41|392|17|\n|spring-scan|5.60|410|13|\n|owb|3.05|421|35|\n|spring-xml|5.60|430|19|\n|springboot|9.73|916|42|\n\n## Results for 100 classes (JDK 11)\n|DI|Jar w/Deps Size, Mb|:arrow_down: Exec time, ms|LoC|\n|----|----|----|----|\n|baseline-deep|1.83|142|107|\n|kotlin-lazy-deep|1.91|158|313|\n|dagger-deep|1.96|163|534|\n|cayennedi-deep|1.95|212|1444|\n|koin-deep|2.13|216|113|\n|koin-reflect-deep|2.51|241|114|\n|bootique-deep|4.31|280|549|\n|kodein-deep|2.92|284|114|\n|guice-deep|5.56|407|530|\n|spring-deep|5.73|469|420|\n|komodo-deep|6.64|531|114|\n|spring-xml-deep|5.72|559|319|\n|owb-deep|3.18|584|532|\n|spring-scan-deep|5.73|687|13|\n|springboot-deep|9.85|1054|439|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapy%2Fdi-comparison","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheapy%2Fdi-comparison","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapy%2Fdi-comparison/lists"}