https://github.com/cedws/go-config-binsize
https://github.com/cedws/go-config-binsize
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/cedws/go-config-binsize
- Owner: cedws
- Created: 2023-10-17T16:28:23.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-24T13:04:27.000Z (over 2 years ago)
- Last Synced: 2026-02-02T16:51:14.587Z (5 months ago)
- Language: Go
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-config-binsize
Quick comparison of binary sizes with different config language dependencies. Includes HCL, JSON, TOML, YAML, Jsonnet.
Build environment:
* `CGO_ENABLED = 0`
* `GOFLAGS = -trimpath -ldflags="-s -w"`
## GOOS=darwin
```
$ du -h **/*-darwin
4.0M hcl/bin/hcl-darwin
1.7M json/bin/json-darwin
5.4M jsonnet/bin/jsonnet-darwin
1.7M toml/bin/toml-darwin
2.0M yaml/bin/yaml-darwin
```
## GOOS=linux
```
$ du -h **/*-linux
3.8M hcl/bin/hcl-linux
1.6M json/bin/json-linux
4.7M jsonnet/bin/jsonnet-linux
1.6M toml/bin/toml-linux
1.9M yaml/bin/yaml-linux
```
## GOOS=windows
```
$ du -h **/*-windows
3.7M hcl/bin/hcl-windows
1.6M json/bin/json-windows
4.9M jsonnet/bin/jsonnet-windows
1.6M toml/bin/toml-windows
1.9M yaml/bin/yaml-windows
```