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

Kikobeats / http-compression
94%

Build:
DEFAULT BRANCH: master
Repo Added 18 Jan 2023 07:51PM UTC
Files 1
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 master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • Kikobeats/brotli-default-3
  • Kikobeats/ci-release-badges
  • dependabot/github_actions/actions/checkout-5
  • dependabot/github_actions/pnpm/action-setup-6

14 Nov 2026 07:24PM UTC coverage: 93.789% (-0.08%) from 93.865%
43631937944

push

github

web-flow
feat: compress at brotli 2 and gzip 2 by default (#25)

* feat: compress at brotli 2 and gzip 2 by default

The defaults were brotli 0 and gzip 1, picked by a benchmark score that
weighted 1/time and so always favoured the fastest level.

The benchmark now serves each payload through the middleware over HTTP,
adds the time to send the compressed body at a given bandwidth (100 Mbps
by default), and reports the highest level within 3% of the fastest on
every payload. Over HTML, Markdown, JavaScript, a 4.2MB JSON response
and a 2kB JSON response it picked brotli 2 and gzip 2 in 6 of 7 runs.
Brotli 2 compresses the 4.2MB JSON 17.09x against 7.26x at brotli 0 and
serves it in about half the time.

`level` now falls back to the default per key. A partial object such as
`{ gzip: 9 }` used to leave brotli without a quality, and every brotli
response then threw. `null` and `undefined` keys fall back too, and 0 is
kept.

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

* test: lock a null per-key level to its default

A null brotli or gzip level is unset, same as a missing one. The suite only passed null as the whole level object, so replacing ?? with an undefined check stayed green.

* test: load ava's callable export under require()

AVA 8's require() returns the module namespace, so the suite threw "test is not a function" before any assertion ran. Use the default export, which is the test function on both the current and the previous major.

---------

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

39 of 47 branches covered (82.98%)

Branch coverage included in aggregate %.

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

112 of 114 relevant lines covered (98.25%)

53.0 hits per line

Relevant lines Covered
Build:
Build:
114 RELEVANT LINES 112 COVERED LINES
53.0 HITS PER LINE
Source Files on master
  • Tree
  • List 1
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
43631937944 master feat: compress at brotli 2 and gzip 2 by default (#25) * feat: compress at brotli 2 and gzip 2 by default The defaults were brotli 0 and gzip 1, picked by a benchmark score that weighted 1/time and so always favoured the fastest level. The benc... push 14 Nov 2026 07:25PM UTC web-flow github
93.79
24384676432 master build(deps): bump pnpm/action-setup from 5 to 6 (#21) * build(deps): bump pnpm/action-setup from 5 to 6 Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 5 to 6. - [Release notes](https://github.com/pnpm/action-setup/releases)... push 14 Apr 2026 06:35AM UTC web-flow github
93.87
16901804961 master build(deps): bump actions/checkout from 4 to 5 (#16) Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob... push 12 Aug 2025 07:16AM UTC web-flow github
93.87
11219386802 master chore: remove old node versions push 07 Oct 2024 04:00PM UTC Kikobeats github
93.87
11219357218 master feat: compression level is an object (#15) * fix: compression level is an object * test: update case * perf: improve benchmark * chore: adjust defaults * ci: add node22 * ci: remove old node builds * test: update cases push 07 Oct 2024 03:58PM UTC web-flow github
93.87
11217350378 master build: tweaks push 07 Oct 2024 02:10PM UTC Kikobeats github
93.33
8990778924 master build(deps): bump pnpm/action-setup from 3 to 4 (#12) Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 3 to 4. - [Release notes](https://github.com/pnpm/action-setup/releases) - [Commits](https://github.com/pnpm/action-setup... push 07 May 2024 06:54PM UTC web-flow github
93.33
7837119230 master build(deps): bump pnpm/action-setup from 2 to 3 (#11) Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 2 to 3. - [Release notes](https://github.com/pnpm/action-setup/releases) - [Commits](https://github.com/pnpm/action-setup... push 08 Feb 2024 11:06PM UTC web-flow github pending completion  
7830514487 master test: fix close server push 08 Feb 2024 01:41PM UTC Kikobeats github pending completion  
6617502649 master build(deps): bump actions/setup-node from 3 to 4 (#10) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> push 23 Oct 2023 06:33PM UTC web-flow github
93.33
See All Builds (73)
  • 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