Skip to content

Instantly share code, notes, and snippets.

@mjago
Created January 25, 2017 11:28
Show Gist options
  • Save mjago/78afea9f5aefde8b517bfdcd82937076 to your computer and use it in GitHub Desktop.
Save mjago/78afea9f5aefde8b517bfdcd82937076 to your computer and use it in GitHub Desktop.
hello_world with release and non-release compilers
non release compiler:
Wed Jan 25: compile/ > bin/crystal ../examples/hello/hello.cr --
release --stats
Using compiled compiler at .build/crystal
Parse: 00:00:00.0409620 ( 0.19MB)
Semantic (top level): 00:00:00.5428400 ( 26.57MB)
Semantic (new): 00:00:00.0078450 ( 26.57MB)
Semantic (type declarations): 00:00:00.0535600 ( 26.57MB)
Semantic (abstract def check): 00:00:00.0026690 ( 26.57MB)
Semantic (cvars initializers): 00:00:00.0243660 ( 34.57MB)
Semantic (ivars initializers): 00:00:00.0021480 ( 34.57MB)
Semantic (main): 00:00:00.1856690 ( 42.64MB)
Semantic (cleanup): 00:00:00.0014320 ( 42.64MB)
Semantic (recursive struct check): 00:00:00.1200140 ( 42.64MB)
Codegen (crystal): 00:00:00.5278460 ( 50.64MB)
here
target_machine.triple # => "x86_64-apple-macosx"
Codegen (bc+obj): 00:00:04.1218870 ( 50.64MB)
Codegen (linking): 00:00:00.0259180 ( 50.64MB)
hello world
Execute: 00:00:00.0251830 ( 50.64MB)
Wed Jan 25: compile/ >
########################################################
with release compiler:
Wed Jan 25: compile/ > bin/crystal ../examples/hello/hello.cr --
release --stats
Using compiled compiler at .build/crystal
Parse: 00:00:00.0067820 ( 0.19MB)
Semantic (top level): 00:00:00.1244610 ( 27.00MB)
Semantic (new): 00:00:00.0011990 ( 27.00MB)
Semantic (type declarations): 00:00:00.0207600 ( 27.00MB)
Semantic (abstract def check): 00:00:00.0129020 ( 27.00MB)
Semantic (cvars initializers): 00:00:00.0497150 ( 35.00MB)
Semantic (ivars initializers): 00:00:00.0007020 ( 35.00MB)
Semantic (main): 00:00:00.0556360 ( 43.00MB)
Semantic (cleanup): 00:00:00.0006710 ( 43.00MB)
Semantic (recursive struct check): 00:00:00.0410990 ( 43.06MB)
Codegen (crystal): 00:00:00.1081170 ( 51.06MB)
here
target_machine.triple # => "x86_64-apple-macosx"
Codegen (bc+obj): 00:00:04.1047770 ( 51.06MB)
Codegen (linking): 00:00:00.0230390 ( 51.06MB)
hello world
Execute: 00:00:00.0379930 ( 51.06MB)
Wed Jan 25: compile/ >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment