Analyses of different compiler and different languages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
fossdd dddb8875be Update "README.md" 1 day ago
.github/workflows Use GitHub CI for README.md generation 8 months ago
code Initial commit 8 months ago
tools Calculate the binary sizes 8 months ago
.gitignore Initial commit 8 months ago
README.md Update "README.md" 1 day ago
README.md.tmpl Calculate the binary sizes 8 months ago

README.md

Compiler Analyses

These are tables that analyse different compilers for different languages.

Build Time

Language/Compiler Command Time
C (tcc) tcc code/hello_world.c 0m0.014s
C (gcc) gcc code/hello_world.c 0m0.136s
C (cc) cc code/hello_world.c 0m0.038s
Python python3 -m py_compile code/hello_world.py 0m0.027s
Go go build code/hello_world.go 0m0.238s
Rust rustc code/hello_world.rs 0m0.915s

Run Time

Language/Compiler Command Time
C (tcc) ./a.out 0m0.001s
C (gcc) ./a.out 0m0.001s
C (cc) ./a.out 0m0.001s
Python python3 code/hello_world.py 0m0.020s
Go ./hello_world 0m0.001s
Rust ./hello_world 0m0.001s

Binary Size

Language/Compiler Size
C (tcc) 20K
C (gcc) 20K
C (cc) 20K
Python 4.0K
Go 3.5M
Rust 3.5M