Skip to content

Instantly share code, notes, and snippets.

@Andrei-Pozolotin
Last active March 25, 2018 22:58
Show Gist options
  • Save Andrei-Pozolotin/6d848247abfe63f15ed35c50dd186b78 to your computer and use it in GitHub Desktop.
Save Andrei-Pozolotin/6d848247abfe63f15ed35c50dd186b78 to your computer and use it in GitHub Desktop.
sample scala-native build timings in Scala IDE with scalor-maven-plugin: FULL vs INCREMENTAL
//
// Sample incremental buld times for minimal Main.scala
// * after warm up
// * cached away: discovery, nativelib compile/unpack, etc.
//
[INFO] Incremental build request.
[INFO] Linking binary mode=debug.
[INFO] Linking NIR
[INFO] [time] 0 s 801 ms
[INFO] Optimizing NIR
[INFO] [time] 0 s 671 ms
[INFO] Generating LL from NIR
[INFO] [time] 0 s 240 ms
[INFO] Compiling LL to native O
[INFO] [time] 0 s 565 ms
[INFO] Converting project C data to native O
[INFO] [time] 0 s 18 ms
[INFO] Compiling project C lang to native O
[INFO] [time] 0 s 62 ms
[INFO] Linking output runtime binary
[INFO] [time] 0 s 177 ms
//
// Sample full buld times for minimal Main.scala
// * NO warm up
// * NOT cached away: discovery, nativelib compile/unpack, etc.
//
[INFO] Full linker build request.
[INFO] Linking binary mode=debug.
[INFO] Creating build dir
[INFO] [time] 0 s 55 ms
[INFO] Discovering LLVM clang
[INFO] [time] 0 s 179 ms
[INFO] Discovering LLVM clang++
[INFO] [time] 0 s 70 ms
[INFO] Discovering GCC objcopy
[INFO] [time] 0 s 14 ms
[INFO] Discovering LLVM compile options
[INFO] [time] 0 s 40 ms
[INFO] Discovering LLVM linking options
[INFO] [time] 0 s 31 ms
[INFO] Discovering LLVM triple
[INFO] [time] 0 s 79 ms
[INFO] Linking NIR
[INFO] [time] 1 s 620 ms
[INFO] Optimizing NIR
[INFO] [time] 2 s 464 ms
[INFO] Generating LL from NIR
[INFO] [time] 1 s 620 ms
[INFO] Compiling LL to native O
[INFO] [time] 0 s 603 ms
[INFO] Unpacking scala-native:nativelib
[INFO] [time] 0 s 266 ms
[INFO] Compiling scala-native:nativelib
[INFO] [time] 0 s 257 ms
[INFO] Converting project C data to native O
[INFO] [time] 0 s 15 ms
[INFO] Compiling project C lang to native O
[INFO] [time] 0 s 58 ms
[INFO] Linking output runtime binary
[INFO] [time] 0 s 150 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment