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

romshark / datapages / 37689647710
46%

Build:
DEFAULT BRANCH: main
Ran 07 Oct 2026 09:29PM UTC
Jobs 11
Files 190
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

07 Oct 2026 08:57PM UTC coverage: 44.209% (+0.05%) from 44.163%
37689647710

push

github

romshark
perf: Stop copying strings written to responses

The writers that wrap a response have no WriteString,
which makes io.WriteString copy every string into a new slice.
offline.Middleware also hides ReadFrom,
which http.FileServer uses for sendfile.

Allocations per request:

    example/counter GET /                            27 -> 19
    offline.Middleware, page of 22 WriteString       35 -> 14
    offline.Middleware, 30 KB script via FileServer  18 -> 17

ReadFrom forwards only a response that passes through.
A page still copies through Write, which decides on its first bytes
and commits no status before the source produces a byte.

36 of 36 new or added lines in 3 files covered. (100.0%)

1 existing line in 1 file now uncovered.

16290 of 36848 relevant lines covered (44.21%)

583.45 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
88.3
-0.19% runtime/httpserve/core.go
Jobs
ID Job ID Ran Files Coverage
1 sqlitesessions - 37689647710.1 07 Oct 2026 09:30PM UTC 9
10.91
GitHub Action Run
2 tailwindcss - 37689647710.2 07 Oct 2026 09:29PM UTC 6
0.0
GitHub Action Run
3 webcomponents - 37689647710.3 07 Oct 2026 09:29PM UTC 6
0.0
GitHub Action Run
4 todolist - 37689647710.4 07 Oct 2026 09:29PM UTC 11
0.0
GitHub Action Run
5 classifieds - 37689647710.5 07 Oct 2026 09:29PM UTC 18
3.17
GitHub Action Run
6 calculator - 37689647710.6 07 Oct 2026 09:33PM UTC 10
38.03
GitHub Action Run
7 root - 37689647710.7 07 Oct 2026 09:42PM UTC 77
78.26
GitHub Action Run
8 file-upload - 37689647710.8 07 Oct 2026 09:30PM UTC 18
47.16
GitHub Action Run
9 counter - 37689647710.9 07 Oct 2026 09:32PM UTC 12
0.0
GitHub Action Run
10 fast-shim - 37689647710.10 07 Oct 2026 09:29PM UTC 4
0.0
GitHub Action Run
11 offline-cache - 37689647710.11 07 Oct 2026 09:29PM UTC 19
18.75
GitHub Action Run
Source Files on build 37689647710
  • Tree
  • List 190
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #37689647710
  • ababd307 on github
  • Prev Build on main (#37681311124)
  • Next Build on main (#37693447123)
  • 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