Skip to content

exex: performance optimizations #69

exex: performance optimizations

exex: performance optimizations #69

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
test:
name: vet + test (linux/amd64)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
cache: true
- name: go vet
run: go vet ./...
- name: go test
run: go test ./...
- name: go build (smoke)
run: go build ./...
- name: build binaries + report sizes
run: |
make build && mv exex exex-full
make lite && mv exex exex-lite
{
echo "### Binary sizes (uncompressed, stripped)"
echo ""
echo "| variant | bytes | size (MB) |"
echo "| --- | ---: | ---: |"
for v in full lite; do
bytes=$(stat -c%s "exex-$v")
mb=$(awk "BEGIN{printf \"%.2f\", $bytes/1048576}")
printf '| %s | %s | %s |\n' "$v" "$bytes" "$mb"
done
} | tee -a "$GITHUB_STEP_SUMMARY"
- name: performance report (all views, startup, memory)
run: go run ./tools/perfreport exex-full
- name: install mandoc
run: sudo apt-get update && sudo apt-get install -y mandoc
- name: lint docs (man page)
run: make lint-docs