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

Kikobeats / superlock / 39996650921
100%

Build:
DEFAULT BRANCH: master
Ran 23 Oct 2026 05:38PM 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

23 Oct 2026 05:37PM UTC coverage: 100.0%. Remained the same
39996650921

push

github

web-flow
perf(createLock): reuse one resolved promise on a free acquire (#37)

* test: fail when src coverage drops below 100%

c8 already reported full coverage for src. npm test did not fail when a line went untested. An unused function now makes the suite exit 1.

Co-authored-by: Jose Francisco 'Kiko' Verdú Gambín <josefrancisco.verdu@gmail.com>

* perf(createLock): reuse one resolved promise when a slot is free

A free slot allocated a promise on every acquire. It now returns one promise created with the lock.

Median of 7 runs and 1e6 acquires, 0 errors: 135.09 ms before, 96.16 ms after. The 1000-waiter drain stayed within noise, 56.37 ms before and 56.73 ms after.

Co-authored-by: Jose Francisco 'Kiko' Verdú Gambín <josefrancisco.verdu@gmail.com>

* bench: time acquire and release, and count errors

The old mutex script timed fibonacci in worker threads, each with its own lock. The fair script printed one ratio and a budget it never checked.

node benchmark/index.js now times a free acquire, an async withLock, and a queue drain. It prints the median, the range, the work count, and the error count.

Co-authored-by: Jose Francisco 'Kiko' Verdú Gambín <josefrancisco.verdu@gmail.com>

* docs: record the clean timing and the open double-release

The earlier log row timed a loop that caught errors on every acquire. The comparison to keep is the loop without that catch.

Co-authored-by: Jose Francisco 'Kiko' Verdú Gambín <josefrancisco.verdu@gmail.com>

---------

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

117 of 117 branches covered (100.0%)

Branch coverage included in aggregate %.

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

310 of 310 relevant lines covered (100.0%)

3437.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 39996650921.1 23 Oct 2026 05:38PM UTC 4
100.0
GitHub Action Run
Source Files on build 39996650921
  • 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 #39996650921
  • fefe1dc7 on github
  • Prev Build on master (#39988914842)
  • Next Build on master (#40005201464)
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