Skip to content

chore: upgrade Go toolchain 1.25.4 → 1.27.0 - #165

Merged
kolkov merged 3 commits into
mainfrom
feature/go1.27-upgrade
Sep 6, 2026
Merged

chore: upgrade Go toolchain 1.25.4 → 1.27.0#165
kolkov merged 3 commits into
mainfrom
feature/go1.27-upgrade

Conversation

@kolkov

@kolkov kolkov commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Upgrade Go toolchain from 1.25.4 to 1.27.0 to benefit from three compiler optimizations:

  • Known-bits dataflow pass — tracks provable 0/1 bits, folds redundant ops. May eliminate DFA bounds checks on ft[offset]
  • Loop-invariant code motion (LICM) — hoists invariants out of loops. 10.17% improvement on regexp/syntax benchmarks (same loop type as our DFA/NFA)
  • Switch-to-lookup table — dense switch→table compilation. Benefits our 13-way strategy dispatch

Also: size-specialized malloc for <80 byte objects, Green Tea GC (old GC removed).

Zero breaking changes. All tests pass. Assembly files fully compatible.

Test plan

  • go build ./... — clean
  • go test ./... — all 11 packages pass
  • go vet ./... — clean
  • CI: tests on 3 OS (ubuntu, macos, windows)
  • CI: benchmark comparison vs main (Go 1.25.4)
  • regex-bench: full comparison on AMD EPYC (Go+Rust)

@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

github-actions Bot commented Aug 21, 2026

Copy link
Copy Markdown

Benchmark Comparison

Comparing main → PR #165

Summary: geomean 76.07n 76.19n +0.16%

⚠️ Potential regressions detected:

geomean                    76.07n         76.19n        +0.16%
geomean                               ³                +0.00%               ³
geomean                               ³                +0.00%               ³
geomean              32.32n         32.33n        +0.02%
geomean                         ³                +0.00%               ³
geomean                         ³                +0.00%               ³
AhoCorasickVsStdlib/stdlib_Find-4                       196.3µ ± ∞ ¹      197.8µ ± ∞ ¹      +0.78% (p=0.016 n=5)
DNA_SizeScaling/64KB-4                                  322.5µ ± ∞ ¹      324.0µ ± ∞ ¹      +0.49% (p=0.008 n=5)
LangArenaLogParser/post_requests-4                      860.1µ ± ∞ ¹      860.9µ ± ∞ ¹      +0.09% (p=0.032 n=5)
LangArenaLogParserStdlib/errors-4                       9.900m ± ∞ ¹     10.048m ± ∞ ¹      +1.50% (p=0.008 n=5)

Full results available in workflow artifacts. CI runners have ~10-20% variance.
For accurate benchmarks, run locally: ./scripts/bench.sh --compare

Go 1.27 compiler improvements: known-bits dataflow, LICM (10% on
regexp/syntax loops), switch-to-lookup-table. All tests pass,
assembly fully compatible, zero breaking changes.
Go 1.27.1 (Sep 1, 2026) includes fixes for simd/archsimd packages.
Compiler improvements: known-bits dataflow, LICM, switch-to-lookup-table.
All tests pass, assembly fully compatible, zero breaking changes.
@kolkov
kolkov force-pushed the feature/go1.27-upgrade branch from e15563a to 1ab562d Compare September 6, 2026 09:58
@kolkov
kolkov merged commit 351b7de into main Sep 6, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant