Skip to content

Instantly share code, notes, and snippets.

@mg6maciej
Created May 1, 2017 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mg6maciej/0b186bf2e8b4d865a5a811d765457370 to your computer and use it in GitHub Desktop.
Save mg6maciej/0b186bf2e8b4d865a5a811d765457370 to your computer and use it in GitHub Desktop.
Comparison of incremental compilation times when tests are in the same module vs in separate one (~900 unit tests in 140 classes)
Serious change (e.g. public function name)
tests in the same module
▇▇▇▇▇▇▇▇ 15% :compileKotlin (0:02.743)
▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 66% :compileTestKotlin (0:11.629)
▇▇▇▇▇▇▇▇▇▇ 19% :junitPlatformTest (0:03.323)
tests in separate module
▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 34% :compileKotlin (0:02.646)
▇▇▇▇▇▇▇▇▇▇▇▇ 21% :core-tests:compileTestKotlin (0:01.579)
▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 44% :core-tests:junitPlatformTest (0:03.408)
Internal change (e.g. extracting private function, changing constant to different value)
tests in the same module
1% :compileKotlin (0:00.222)
▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 75% :compileTestKotlin (0:11.292)
▇▇▇▇▇▇▇▇▇▇▇ 23% :junitPlatformTest (0:03.454)
tests in separate module
▇ 5% :compileKotlin (0:00.187)
▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 93% :core-tests:junitPlatformTest (0:03.442)
@mg6maciej
Copy link
Author

See KT-17674 for info if this is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment