Move to directory and add basic readme
Signed-off-by: Adrien Kara <adrien@iglou.eu>
This commit is contained in:
parent
9111df2bd1
commit
33fff4092e
|
@ -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
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
|
Binary file not shown.
After Width: | Height: | Size: 215 KiB |
Loading…
Reference in New Issue