Skip to content

ktrueda/kotli

Repository files navigation

kotli

This CLI tool shows kotli (small bird in Japanese). kotli was implemented in Kotlin.

$ kotli.kexe
             ,, -―-、
           /     ヽ
     / ̄ ̄/  /i⌒ヽ、|    オエーー!!!!
    /  (゜)/   / /
   /     ト、.,../ ,ー-、
  =彳      \\‘゚。、` ヽ。、o
  /          \\゚。、。、o
 /         /⌒ ヽ ヽU  o
 /         │   `ヽU ∴l
│         │     U :l
                  |:!
                  U

$ kotli.kexe --kind inko

                     / ̄ ̄ ̄ ̄\
                 /          )
               /    ●  (⌒⌒)
              /         \ノ
            / """゛゛ヽ       |
           /       )        |
         /      ノノ         |
        /      ノノ        /
      /      ノノ        /
     /      /         /
   / 彡ミ(_)二二二)) ))二二二)) ))二二二)
  / 彡
//
"゛

installation

Download the binary from github release page.

benchmark result

Kotlin-Native build is 18x faster than JVM build.

Prepare Command Mean [ms] Min [ms] Max [ms] Relative
gradle build ./build/bin/native/releaseExecutable/kotli.kexe 3.9 ± 1.9 2.7 20.6 1.00
kotlinc ./Main.kt -include-runtime -d ./Kotlin.jar java -jar Kotlin.jar 71.1 ± 4.2 67.6 93.7 1.00

https://github.com/sharkdp/hyperfine