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

comunica / big-collections / 47352160076
100%

Build:
DEFAULT BRANCH: main
Ran 04 Dec 2026 02:17PM UTC
Jobs 3
Files 6
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

04 Dec 2026 02:16PM UTC coverage: 100.0%. Remained the same
47352160076

push

github

web-flow
Benchmark iteration alone (#13)

* Benchmark iteration alone, and show the slowest run in comparisons

The "iterated and deleted" benchmarks time inserts and deletions too, so a 4x slower iteration showed as 14-30%.
test/iteration.bench.ts iterates over prebuilt collections with for...of, destructured for...of and forEach,
and over a small collection many times, each against its native counterpart.

Each benchmark builds its collection per phase and releases it after, as Vitest keeps registered functions alive:
otherwise the collections of earlier tests made each forced garbage collection several times slower.

CI runs the iteration benchmarks in four processes per side, as iteration can run in a slow mode in some processes
only, and the comparison shows the slowest run next to the fastest so such a mode becomes visible.

* Simplify the shared benchmark code

- Warm up all collection types when the shared module loads, so no bench file can forget it.
- Pass factories instead of a workload key, and default rounds in one place.
- Put getSlowest next to getFastest, and compute the fastest run once per row.
- Register benchmarks as synchronous, as tinybench otherwise calls the function once to find out.

* Address review: report order, new bench files, history samples

- Read reports in numeric order, so run 10 no longer comes before run 2 and the rows keep the order of the runs.
- Run all bench files in CI, then the iteration ones once more, so a new bench file is compared too.
- Run the iteration benchmarks twice as often in the history, as in the comparison.
- Throw when a benchmark runs outside a phase instead of timing nothing.
- Round the four-chunk size up, and allow iteration comparisons two minutes.

* Drop the slowest run and the extra iteration runs

With two runs per side, the slowest run mostly showed runner drift, and even four runs caught a slow mode that hits
one process in five only 59% of the time. The comparison stays on the fastest run... (continued)

130 of 130 branches covered (100.0%)

Branch coverage included in aggregate %.

291 of 291 relevant lines covered (100.0%)

3110214.2 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-24.x - 47352160076.1 04 Dec 2026 02:17PM UTC 6
100.0
GitHub Action Run
2 run-22.x - 47352160076.2 04 Dec 2026 02:17PM UTC 6
100.0
GitHub Action Run
3 run-26.x - 47352160076.3 04 Dec 2026 02:17PM UTC 6
100.0
GitHub Action Run
Source Files on build 47352160076
  • Tree
  • List 6
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #47352160076
  • c6c73f6e on github
  • Prev Build on main (#47129972137)
  • 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