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

fredbi / uri / 6245655794
89%

Build:
DEFAULT BRANCH: master
Ran 20 Sep 2023 07:59AM UTC
Jobs 2
Files 3
Run time 2s
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

20 Sep 2023 07:58AM UTC coverage: 98.324% (-0.08%) from 98.403%
6245655794

push

github

web-flow
perf: implemented profile-driven optimizations (#33)

* Added a test to capture profile (there is a build tag guard to avoid pulling dependencies)
* Enriched benchmarks to capture various payloads and compare with
`net/url.Parse()`
* Reduced memory allocations during parsing and validations (see below)

With these optimizations, `uri.Parse()` is only about 30% slower than `net/url.Parse()` (with go1.20).

* [x] reduced extraneous allocations spotted [in this WIP PR](https://github.com/fredbi/uri/pull/33)
* [x] gave up the convenience of using `strings.Split()` to get a zero-allocation iterator over segments
* [x] reduced the need to systematically call `url.PathUnescape()`: call
only when a % is detected
* [x] moved the internal pointer to `authorityInfo` to a plain struct: removes 1 extraneous allocation, simpler code

Signed-off-by: Frédéric BIDON <fredbi@yahoo.com>

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

704 of 716 relevant lines covered (98.32%)

791.57 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6245655794.1 20 Sep 2023 07:59AM UTC 0
98.32
GitHub Action Run
2 6245655794.2 20 Sep 2023 07:59AM UTC 0
98.32
GitHub Action Run
Source Files on build 6245655794
Detailed source file information is not available for this build.
  • Back to Repo
  • afdc5c06 on github
  • Prev Build on master (#6245427699)
  • Next Build on master (#6246585469)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc