# Spring Boot vs Micronaut: source lines of code compared

The Spring Boot vs Micronaut comparison on OctoCounts shows side-by-side source line counts for spring-projects/spring-boot and micronaut-projects/micronaut-core, counted with the same engine and analysis options on the dates shown in the methodology line: files, total lines, code lines, comment lines, blank lines, and per-language totals, pinned to the exact commits listed below.

As of 2026-09-16, spring-projects/spring-boot contains 447,125 total lines (245,337 code) across 4,910 files, while micronaut-projects/micronaut-core contains 412,715 total lines (242,510 code) across 2,933 files as of 2026-09-16. spring-projects/spring-boot and micronaut-projects/micronaut-core are similar in size by code lines. Code size is not code quality: a larger count only means more source material, not a better or worse project.

| Metric | [spring-projects/spring-boot](https://octocounts.com/github/spring-projects/spring-boot) | [micronaut-projects/micronaut-core](https://octocounts.com/github/micronaut-projects/micronaut-core) |
| --- | ---: | ---: |
| Files | 4,910 | 2,933 |
| Total lines | 447,125 | 412,715 |
| Code lines | 245,337 | 242,510 |
| Comment lines | 139,939 | 130,880 |
| Blank lines | 61,849 | 39,325 |
| Languages counted | 12 | 12 |

Top languages in spring-projects/spring-boot: Java (87.1% of code), JSON (4.9% of code), JavaScript (3.5% of code). Top languages in micronaut-projects/micronaut-core: Java (93.5% of code), Kotlin (3.3% of code), Python (1.9% of code). Java, JSON appear in both top language lists; JavaScript, XML, YAML appear only in spring-projects/spring-boot's top languages; Kotlin, Python, Groovy appear only in micronaut-projects/micronaut-core's top languages.

Methodology: both counts come from cached OctoCounts reports generated with tokei. spring-projects/spring-boot was counted at ref 32b09e479b78afd151577df37e800f47711db749 (commit 32b09e479b78) on 2026-09-16; micronaut-projects/micronaut-core was counted at ref 78f8ba45ac58beccb169fcb3bbb9003a48578868 (commit 78f8ba45ac58) on 2026-09-16. See the [counting methodology](https://octocounts.com/docs/methodology) for ignored directories and analysis options.
## About this comparison

spring-projects/spring-boot counts the Spring Boot repository: the auto-configuration layer, starters, actuator, and CLI that sit on top of the wider Spring Framework. micronaut-projects/micronaut-core counts Micronaut's core repository: the IoC container, HTTP server and client, and AOP machinery. Both are JVM framework source trees, counted on the dates shown above — but each is one repository inside a much larger multi-repository framework family.

Both counted trees are predominantly Java as the per-language tables show, so the headline difference comes from repository scope: which subsystems each project keeps in its core tree versus in sibling repositories.

Neither total represents its whole framework: Spring Boot builds on the Spring Framework repositories, and Micronaut splits its ecosystem across many micronaut-projects repositories — the pages count one tree per side, not the complete framework surface of either.

_The smaller core-repository count should not be read as the smaller framework: both projects distribute most of their features across companion repositories that this comparison does not count, so the totals understate each ecosystem by a different, unmeasured amount._

Sources: [spring-projects/spring-boot repository](https://github.com/spring-projects/spring-boot) · [micronaut-projects/micronaut-core repository](https://github.com/micronaut-projects/micronaut-core). Statements verified 2026-09-16.

Evidence and next steps:

- [spring-projects/spring-boot SLOC report](https://octocounts.com/github/spring-projects/spring-boot)
- [micronaut-projects/micronaut-core SLOC report](https://octocounts.com/github/micronaut-projects/micronaut-core)
- [Compare spring-projects/spring-boot and micronaut-projects/micronaut-core interactively](https://octocounts.com/compare?left=https%3A%2F%2Fgithub.com%2Fspring-projects%2Fspring-boot&right=https%3A%2F%2Fgithub.com%2Fmicronaut-projects%2Fmicronaut-core)

Note: code size is not code quality. OctoCounts only reports reproducible line counts and makes no claim that either project is better.

## Compare FAQ

### Which has more lines of code, spring-projects/spring-boot or micronaut-projects/micronaut-core?

As of 2026-09-16, spring-projects/spring-boot and micronaut-projects/micronaut-core are close in size: 245,337 vs 242,510 code lines, a difference of less than 15%. Neither clearly outsizes the other by this metric.

### Does more source lines of code mean more complexity?

Not necessarily. SLOC measures size, not complexity, quality, or maintainability. A larger codebase can mean more features, more generated or vendored code, more verbose language idioms, or more tests — none of which imply the code is harder to work with. Use SLOC to gauge the scale of what you'd be reading or maintaining, not as a quality signal for spring-projects/spring-boot, micronaut-projects/micronaut-core, or any repository.

### How is this comparison calculated?

Methodology: both counts come from cached OctoCounts reports generated with tokei. spring-projects/spring-boot was counted at ref 32b09e479b78afd151577df37e800f47711db749 (commit 32b09e479b78) on 2026-09-16; micronaut-projects/micronaut-core was counted at ref 78f8ba45ac58beccb169fcb3bbb9003a48578868 (commit 78f8ba45ac58) on 2026-09-16. See the counting methodology for ignored directories and analysis options.

### Can I compare a different branch, tag, or commit?

Yes. This page shows the default branch for each repository. Use the interactive comparison tool to pick any public GitHub repository, branch, tag, or commit SHA for both sides and get a fresh side-by-side report.

## Related OctoCounts pages

- [Interactive repository comparison](https://octocounts.com/compare)
- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [OctoCounts API docs](https://octocounts.com/docs/api)
