compiler | version
command
- name | instruction count | time
clang++ | 6.0.1
perf stat clang -O3 main.cpp -o cpp-app-full
- full | 266m | 110ms
perf stat clang -O3 main.cpp -emit-llvm -S -o cpp.ll
- emit | 219m | 95ms
perf stat llc -O3 -filetype=obj cpp.ll -o cpp.o
- llvm compile | 56m | 45ms
couldn't figure this one out
- llvm link
rustc | 1.27.1
perf stat rustc -O main.rs -o rust-app-full
- full | 1870m | 575ms
perf stat rustc -O main.rs --emit=llvm-ir -o rust.ll
- emit | 520m | 200ms
perf stat llc -O3 -filetype=obj rust.ll -o rust.o
- llvm compile | 55m | 50ms
rustc | 1.29.0-nightly
perf stat rustc -O main.rs -o rust-app-full
- full | 1340m | 405ms
perf stat rustc -O main.rs --emit=llvm-ir -o rust.ll
- emit | 422m | 145ms
perf stat llc -O3 -filetype=obj rust.ll -o rust.o
- llvm compile | 66m | 50ms