# 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-10-08, spring-projects/spring-boot contains 448,026 total lines (245,888 code) across 4,919 files, while micronaut-projects/micronaut-core contains 510,892 total lines (295,938 code) across 3,292 files as of 2026-10-11. micronaut-projects/micronaut-core is about 1.2x the size of spring-projects/spring-boot 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,919 | 3,292 |
| Total lines | 448,026 | 510,892 |
| Code lines | 245,888 | 295,938 |
| Comment lines | 140,179 | 168,644 |
| Blank lines | 61,959 | 46,310 |
| 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.1% of code), Kotlin (3.0% of code), Python (2.5% 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 main (commit 535d133bdaa0) on 2026-10-08; micronaut-projects/micronaut-core was counted at ref 5.3.x (commit 7a583057f8cb) on 2026-10-11. 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?

micronaut-projects/micronaut-core has more code: 295,938 code lines versus 245,888 for spring-projects/spring-boot, about 1.2x as much, based on cached OctoCounts reports as of 2026-10-11.

### 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 main (commit 535d133bdaa0) on 2026-10-08; micronaut-projects/micronaut-core was counted at ref 5.3.x (commit 7a583057f8cb) on 2026-10-11. 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)
