• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dunglas / go-urlpattern
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: claude/ci-main-fix-e25ogb
DEFAULT BRANCH: main
Repo Added 15 Sep 2024 08:23PM UTC
Token yGjZrxkSLEYRXjo0G6xsg1Sx0WLJ4o8bQ regen
Build 60 Last
Files 6
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH perf/share-common-component-regexps
branch: perf/share-common-component-regexps
CHANGE BRANCH
x
Reset
Sync Branches
  • perf/share-common-component-regexps
  • chore/bump-deps
  • chore/lint-fixes
  • chore/upstream-whatwg-url
  • claude/ci-main-fix-e25ogb
  • fix/canonicalize-hash-error
  • fix/process-hash-strip-prefix
  • fix/string-delimiters
  • fix/tokenizer-error-swallow
  • main
  • perf/duplicate-name-map
  • perf/scheme-lookups
  • spec/conformance
  • test/benchmarks

15 Jul 2026 11:29PM UTC coverage: 91.899% (+0.02%) from 91.878%
29458672132

Pull #12

github

dunglas
perf: share precompiled regexps for common component patterns

Compiling a URLPattern compiles one regexp per URL component. In typical
patterns most components are the full wildcard (the default for username,
password, search and hash) or empty (a common port), whose generated
expressions are a small fixed set of constant strings. Reuse a shared
precompiled *regexp.Regexp for those (safe for concurrent use) instead of
calling regexp.Compile per component.

New geomean: -21% time, -25% B/op, -22% allocs (BenchmarkNew).
Pull Request #12: perf: share precompiled regexps for common component patterns

8 of 8 new or added lines in 1 file covered. (100.0%)

1486 of 1617 relevant lines covered (91.9%)

1130.98 hits per line

Relevant lines Covered
Build:
Build:
1617 RELEVANT LINES 1486 COVERED LINES
1130.98 HITS PER LINE
Source Files on perf/share-common-component-regexps
  • Tree
  • List 6
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
29458672132 perf/share-common-component-regexps perf: share precompiled regexps for common component patterns Compiling a URLPattern compiles one regexp per URL component. In typical patterns most components are the full wildcard (the default for username, password, search and hash) or empty (... Pull #12 15 Jul 2026 11:29PM UTC dunglas github
91.9
29458502182 perf/share-common-component-regexps perf: share precompiled regexps for common component patterns Compiling a URLPattern compiles one regexp per URL component. In typical patterns most components are the full wildcard (the default for username, password, search and hash) or empty (... Pull #12 15 Jul 2026 11:26PM UTC dunglas github
91.91
See All Builds (49)

Badge your Repo: go-urlpattern

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc