# Which is faster? Intellij built-in build system vs Gradle for Kotlin

**URL:** https://discuss.kotlinlang.org/t/which-is-faster-intellij-built-in-build-system-vs-gradle-for-kotlin/5360
**Category:** Support
**Created:** [November 10, 2017, 5:39am UTC](https://discuss.kotlinlang.org/t/which-is-faster-intellij-built-in-build-system-vs-gradle-for-kotlin/5360 "2017-11-10T05:39:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![snoobvn](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@snoobvn](https://discuss.kotlinlang.org/u/snoobvn)
#### Post date: [November 10, 2017, 5:39am UTC](https://discuss.kotlinlang.org/t/which-is-faster-intellij-built-in-build-system-vs-gradle-for-kotlin/5360/1 "2017-11-10T05:39:30Z")

</div>

As the title, Which is faster? Intellij built-in build system vs Gradle. And which one should i use?

---

<div class="post-metadata">

### Author: ![darksnake](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/darksnake/32/2479_2.png) [@darksnake](https://discuss.kotlinlang.org/u/darksnake)
#### Post date: [November 10, 2017, 7:06am UTC](https://discuss.kotlinlang.org/t/which-is-faster-intellij-built-in-build-system-vs-gradle-for-kotlin/5360/2 "2017-11-10T07:06:04Z")

</div>

The compilation speed is the same. The difference is in incremental build and caching. Idea allows to use partially compiled project, meaning it recompiles only those parts of code that are related to currently executed code. On one hand it is much faster for debugging, but on the other hand sometimes it produces a very bizarre behavior during debugging and run.  
Total recompile feels faster in gradle. And of course gradle build is much more reliable.

---

<div class="post-metadata">

### Author: ![vseregin](https://avatars.discourse-cdn.com/v4/letter/v/35a633/32.png) [@vseregin](https://discuss.kotlinlang.org/u/vseregin)
#### Post date: [November 10, 2017, 6:46pm UTC](https://discuss.kotlinlang.org/t/which-is-faster-intellij-built-in-build-system-vs-gradle-for-kotlin/5360/3 "2017-11-10T18:46:50Z")

</div>

They both use JDK tools for compilation so there should be no big difference. Incremental compilation can speed up the process, but sometimes can produce troubles (differently in different build tools).
