<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/k2-compiler-performance-benchmarks-and-how-to-measure-them-on-your-projects-bw4srx1f4" -->

---
title: K2 Compiler Performance Benchmarks and How to Measure...
description: The K2 compiler brings significant performance improvements, with compilation speed gains of up to 94%. The new architecture has shown the biggest improvement...
canonical: https://daily.dev/posts/k2-compiler-performance-benchmarks-and-how-to-measure-them-on-your-projects-bw4srx1f4
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: K2 Compiler Performance Benchmarks and How to Measure Them on Your Projects | daily.dev
og:description: The K2 compiler brings significant performance improvements, with compilation speed gains of up to 94%. The new architecture has shown the biggest improvement...
og:url: https://daily.dev/posts/k2-compiler-performance-benchmarks-and-how-to-measure-them-on-your-projects-bw4srx1f4
og:image: https://api.daily.dev/og/posts/BW4srx1f4.png
og:image:alt: K2 Compiler Performance Benchmarks and How to Measure Them on Your Projects
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# K2 Compiler Performance Benchmarks and How to Measure Them on Your Projects

**[Kotlin](https://daily.dev/sources/kotlin)** · 8 min read · 2 upvotes · 0 comments

## Summary

The K2 compiler brings significant performance improvements, with compilation speed gains of up to 94%. The new architecture has shown the biggest improvement in the analysis phase. Performance tests were conducted on the Anki-Android and Exposed projects. You can collect your own performance statistics for Kotlin projects using the provided performance management tool.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.jetbrains.com/kotlin/2024/04/k2-compiler-performance-benchmarks-and-how-to-measure-them-on-your-projects/>

---

Tags: [#compiler](https://daily.dev/tags/compiler), [#gradle](https://daily.dev/tags/gradle), [#kotlin](https://daily.dev/tags/kotlin), [#performance](https://daily.dev/tags/performance)

[View this post on daily.dev](https://daily.dev/posts/k2-compiler-performance-benchmarks-and-how-to-measure-them-on-your-projects-bw4srx1f4)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"K2 Compiler Performance Benchmarks and How to Measure Them on Your Projects","url":"https://daily.dev/posts/k2-compiler-performance-benchmarks-and-how-to-measure-them-on-your-projects-bw4srx1f4","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/k2-compiler-performance-benchmarks-and-how-to-measure-them-on-your-projects-bw4srx1f4"},"datePublished":"2024-04-25T17:00:01.959Z","dateModified":"2025-12-08T02:19:38.733Z","description":"The K2 compiler brings significant performance improvements, with compilation speed gains of up to 94%. The new architecture has shown the biggest improvement...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/76bab2727af804d012852802fe679daf?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/76bab2727af804d012852802fe679daf?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Kotlin","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Kotlin","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/kotlin","url":"https://daily.dev/sources/kotlin"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/k2-compiler-performance-benchmarks-and-how-to-measure-them-on-your-projects-bw4srx1f4","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"compiler,gradle,kotlin,performance","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Kotlin","item":"https://daily.dev/sources/kotlin"},{"@type":"ListItem","position":3,"name":"K2 Compiler Performance Benchmarks and How to Measure Them on Your Projects"}]}
```

