Skip to content

Instantly share code, notes, and snippets.

@luislavena
Created April 24, 2018 17:54
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 luislavena/c313c273bb08d69569a36385916c36dd to your computer and use it in GitHub Desktop.
Save luislavena/c313c273bb08d69569a36385916c36dd to your computer and use it in GitHub Desktop.
$ crystal --version
Crystal 0.24.2 [4f9ed8d03] (2018-03-08)
LLVM: 4.0.0
Default target: x86_64-unknown-linux-gnu
$ time make crystal stats=true
Using /usr/bin/llvm-config-5.0 [version=5.0.0]
g++ -c -o src/llvm/ext/llvm_ext.o src/llvm/ext/llvm_ext.cc -I/usr/lib/llvm-5.0/include -std=c++0x -fuse-ld=gold -Wl,--no-keep-files-mapped -Wl,--no-map-whole-files -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -ffunction-sections -fdata-sections -O2 -DNDEBUG -g1 -fno-exceptions -DLLVM_BUILD_GLOBAL_ISEL -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
cc -fPIC -c -o src/ext/sigfault.o src/ext/sigfault.c
ar -rcs src/ext/libcrystal.a src/ext/sigfault.o
CRYSTAL_CONFIG_PATH="/home/luis/code/crystal-lang/crystal/src" ./bin/crystal build --stats -o .build/crystal src/compiler/crystal.cr -D without_openssl -D without_zlib
Parse: 00:00:00.000192000 ( 0.18MB)
Semantic (top level): 00:00:00.917145000 ( 91.32MB)
Semantic (new): 00:00:00.006111000 ( 91.32MB)
Semantic (type declarations): 00:00:00.058642000 ( 99.32MB)
Semantic (abstract def check): 00:00:00.001690000 ( 99.32MB)
Semantic (ivars initializers): 00:00:00.087806000 ( 107.32MB)
Semantic (cvars initializers): 00:00:00.009393000 ( 107.32MB)
Semantic (main): 00:00:18.336255000 ( 859.32MB)
Semantic (cleanup): 00:00:00.005071000 ( 859.32MB)
Semantic (recursive struct check): 00:00:00.004274000 ( 859.32MB)
Codegen (crystal): 00:00:13.489471000 (1035.38MB)
Codegen (bc+obj): 00:00:11.476161000 (1035.38MB)
Codegen (linking): 00:00:06.524813000 (1035.38MB)
Macro runs:
- /mnt/c/Users/Luis/Code/crystal-lang/crystal/src/ecr/process.cr: 00:00:05.500647000
Codegen (bc+obj):
- no previous .o files were reused
real 0m55.407s
user 1m3.703s
sys 0m21.078s
$ bin/crystal --version
Using compiled compiler at `.build/crystal'
Crystal 0.24.2+286 [1c4e4e8] (2018-04-24)
LLVM: 5.0.0
Default target: x86_64-pc-linux-gnu
$ touch src/compiler/crystal.cr
$ time make crystal stats=true release=true
Using /usr/bin/llvm-config-5.0 [version=5.0.0]
./bin/crystal build --release --stats -o .build/crystal src/compiler/crystal.cr -D without_openssl -D without_zlib
Using compiled compiler at `.build/crystal'
Parse: 00:00:00.000373000 ( 0.19MB)
Semantic (top level): 00:00:01.662731000 ( 92.33MB)
Semantic (new): 00:00:00.009394000 ( 92.33MB)
Semantic (type declarations): 00:00:00.147456000 ( 100.33MB)
Semantic (abstract def check): 00:00:00.007009000 ( 100.33MB)
Semantic (ivars initializers): 00:00:00.182149000 ( 108.33MB)
Semantic (cvars initializers): 00:00:00.020121000 ( 108.33MB)
Semantic (main): 00:00:15.019674000 ( 788.33MB)
Semantic (cleanup): 00:00:00.011332000 ( 788.33MB)
Semantic (recursive struct check): 00:00:00.007185000 ( 788.33MB)
Codegen (crystal): 00:00:07.678254000 (1004.39MB)
Codegen (bc+obj): 00:04:32.831965000 (1004.39MB)
Codegen (linking): 00:00:02.587811000 (1004.39MB)
Macro runs:
- /mnt/c/Users/Luis/Code/crystal-lang/crystal/src/ecr/process.cr: reused previous compilation (00:00:00.061796000)
Codegen (bc+obj):
- no previous .o files were reused
real 5m0.748s
user 4m50.906s
sys 0m8.781s
$ touch src/compiler/crystal.cr
$ time make crystal stats=true release=true
Using /usr/bin/llvm-config-5.0 [version=5.0.0]
./bin/crystal build --release --stats -o .build/crystal src/compiler/crystal.cr -D without_openssl -D without_zlib
Using compiled compiler at `.build/crystal'
Parse: 00:00:00.000293000 ( 0.19MB)
Semantic (top level): 00:00:00.739501000 ( 92.49MB)
Semantic (new): 00:00:00.008174000 ( 92.49MB)
Semantic (type declarations): 00:00:00.064179000 ( 100.49MB)
Semantic (abstract def check): 00:00:00.002404000 ( 100.49MB)
Semantic (ivars initializers): 00:00:00.093226000 ( 108.49MB)
Semantic (cvars initializers): 00:00:00.011869000 ( 108.49MB)
Semantic (main): 00:00:10.020077000 ( 788.49MB)
Semantic (cleanup): 00:00:00.004395000 ( 788.49MB)
Semantic (recursive struct check): 00:00:00.005962000 ( 788.49MB)
Codegen (crystal): 00:00:05.430610000 (1004.55MB)
Codegen (bc+obj): 00:00:01.774218000 (1004.55MB)
Codegen (linking): 00:00:02.375877000 (1004.55MB)
Macro runs:
- /mnt/c/Users/Luis/Code/crystal-lang/crystal/src/ecr/process.cr: reused previous compilation (00:00:00.061393000)
Codegen (bc+obj):
- all previous .o files were reused
real 0m21.122s
user 0m14.391s
sys 0m7.156s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment