Browse Source

Move to directory and add basic readme

Signed-off-by: Adrien Kara <adrien@iglou.eu>
master
Adrien Kara 2 years ago
parent
commit
33fff4092e
Signed by: adrien GPG Key ID: 605B69551C56DB62
  1. 12
      README.md
  2. 6
      bench.sh
  3. 0
      bin/bench_gccgo
  4. 0
      bin/bench_go
  5. 0
      bin/bench_tinygo
  6. BIN
      doc/media/fiveyears.jpg
  7. 0
      doc/result/bench_build.txt
  8. 0
      doc/result/bench_run.txt

12
README.md

@ -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].*

6
bench.sh

@ -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

0
bench_gccgo → bin/bench_gccgo

0
bench_go → bin/bench_go

0
bench_tinygo → bin/bench_tinygo

BIN
doc/media/fiveyears.jpg

Binary file not shown.

After

Width: 1262  |  Height: 733  |  Size: 215 KiB

0
bench_build.txt → doc/result/bench_build.txt

0
bench_run.txt → doc/result/bench_run.txt

Loading…
Cancel
Save