Move to directory and add basic readme

Signed-off-by: Adrien Kara <adrien@iglou.eu>
This commit is contained in:
Adrien Kara 2020-11-10 13:59:17 +01:00
parent 9111df2bd1
commit 33fff4092e
Signed by: adrien
GPG Key ID: 605B69551C56DB62
8 changed files with 15 additions and 3 deletions

12
README.md Normal file
View File

@ -0,0 +1,12 @@
# A tiny compiler bench
For build Go binary, you have 3 famous compiler. Official go compiler, GCC-GO from GNU project and TinyGo based on LLVM (and intended for use in "small places")
This bench try to show 3 point:
- Faster to build
- Smallest binary
- Binary performaces
Lets **Go** ...
![Gopher image](doc/media/fiveyears.jpg)
*Gopher image by [Renee French][rf], licensed under [Creative Commons 3.0 Attributions license][cc3-by].*

View File

@ -1,12 +1,12 @@
#!/bin/bash
echo "=============== OFFICIAL GO ===============" > bench_run.txt
perf stat ./bench_go 1>>bench_run.txt 2>>bench_run.txt
perf stat ./bin/bench_go 1>>bench_run.txt 2>>bench_run.txt
echo "" >> bench_run.txt
echo "=============== GCC GO ===============" >> bench_run.txt
perf stat ./bench_gccgo 1>>bench_run.txt 2>>bench_run.txt
perf stat ./bin/bench_gccgo 1>>bench_run.txt 2>>bench_run.txt
echo "" >> bench_run.txt
echo "=============== TINY GO ===============" >> bench_run.txt
perf stat ./bench_tinygo 1>>bench_run.txt 2>>bench_run.txt
perf stat ./bin/bench_tinygo 1>>bench_run.txt 2>>bench_run.txt
echo "" >> bench_run.txt

BIN
doc/media/fiveyears.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB