Skip to content

Commit

Permalink
feat: reduce build size (#63)
Browse files Browse the repository at this point in the history
* feat: reduce build size

* update comparision with new binary size
  • Loading branch information
littledivy committed Oct 3, 2020
1 parent 7a53d27 commit 8136754
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Build
working-directory: ./src/github.com/elsaland/elsa
run: go build -o elsa-${{ matrix.os }} .
run: go build --ldflags "-s -w" -o elsa-${{ matrix.os }} .

- name: Test
working-directory: ./src/github.com/elsaland/elsa
Expand Down
2 changes: 1 addition & 1 deletion COMPARISON.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Benchmarks are available at `/benchmarks/`
| Compiling to executable | **Yes** | No | No (third party) |
| Explicit imports | Yes | Yes | No |
| Secure by default | Yes | Yes | No |
| Binary size | **~20mb** \* | ~44mb \* | ~68mb |
| Binary size | **~12mb** \* | ~44mb \* | ~68mb |

\* Lacks data for `Intl` and `toLocaleString`

Expand Down

0 comments on commit 8136754

Please sign in to comment.