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

Kikobeats / https-tls / 40591246739
99%

Build:
DEFAULT BRANCH: master
Ran 27 Oct 2026 09:59PM UTC
Jobs 1
Files 4
Run time 1min
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

27 Oct 2026 09:59PM UTC coverage: 98.507% (+0.3%) from 98.175%
40591246739

push

github

web-flow
perf(headers): precompute per-browser header order sets (#25)

* perf(headers): precompute per-browser header order sets

sortHeaders built `new Set(order)` from the browser's header order on
every call, and getHeader allocated an `[key, value]` pair per header
through Object.entries. The order Sets now get built once when the module
loads, and getHeader walks Object.keys and returns on the first match.

Output is unchanged: same key order and values as master on 80,024
checks (bench fixtures, 20k random header sets with mixed-case and
numeric keys, missing or empty user agents, null-prototype and
inherited-property objects, null and undefined input).

Local A/B, node v24.16.0 arm64, 6 alternating runs per side, median of medians:

| case                    | base   | change | delta  |
| ----------------------- | ------ | ------ | ------ |
| sortHeaders chrome      | 90.3ms | 50.4ms | -44.2% |
| sortHeaders firefox     | 79.9ms | 42.9ms | -46.3% |
| sortHeaders safari      | 66.1ms | 40.6ms | -38.6% |
| getBrowser (unchanged)  | 155.5ms | 156.4ms | +0.6% |
| tls options (unchanged) | 103.9ms | 104.8ms | +0.9% |

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(headers): lock order and the lookup branches

ava's deepEqual ignores key order, so the sort tests stayed green when
sorting was replaced with a copy. Assert key order, and cover the
no-browser fallback, inherited keys, and the hook's header lookup.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

30 of 32 branches covered (93.75%)

Branch coverage included in aggregate %.

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

234 of 236 relevant lines covered (99.15%)

9.08 hits per line

Jobs
ID Job ID Ran Files Coverage
1 40591246739.1 27 Oct 2026 09:59PM UTC 4
98.51
GitHub Action Run
Source Files on build 40591246739
  • Tree
  • List 4
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #40591246739
  • 2b55a5e8 on github
  • Prev Build on master (#40588722552)
  • Delete
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