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 ed4b71ee32 Update "README.md" 15 hours ago
.github/workflows Use GitHub CI for README.md generation 6 months ago
code Initial commit 6 months ago
tools Calculate the binary sizes 5 months ago
.gitignore Initial commit 6 months ago
README.md Update "README.md" 15 hours ago
README.md.tmpl Calculate the binary sizes 5 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.096s
C (gcc) gcc code/hello_world.c 0m1.202s
C (cc) cc code/hello_world.c 0m0.047s
Python python3 -m py_compile code/hello_world.py 0m0.034s
Go go build code/hello_world.go 0m0.310s
Rust rustc code/hello_world.rs 0m7.366s

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.033s
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.3M
Rust 3.3M