bench: add missing benchmark to dstructs/compact-adjacency-matrix#11810
Draft
Planeshifter wants to merge 1 commit intodevelopfrom
Draft
bench: add missing benchmark to dstructs/compact-adjacency-matrix#11810Planeshifter wants to merge 1 commit intodevelopfrom
dstructs/compact-adjacency-matrix#11810Planeshifter wants to merge 1 commit intodevelopfrom
Conversation
…ntions Added missing `benchmark/benchmark.js` (present in 87.5% of `dstructs` siblings) with an instantiation-only scaffold matching the boilerplate used by sibling benchmarks (Apache header, `format()`-based bench label, `b.tic`/`b.toc`/`b.pass`/`b.end`); added `directories.benchmark` entry to `package.json` (present in 87.5% of siblings). https://claude.ai/code/session_01Y3Xf8psrX9CDj1KvW8f9xC
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
dstructs/compact-adjacency-matrix with namespace conventionsdstructs/compact-adjacency-matrix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request:
@stdlib/dstructsnamespace with namespace majority patterns (random namespace pick, seeddrift-routine-2026-04-27).Namespace summary
@stdlib/dstructscircular-buffer,compact-adjacency-matrix,doubly-linked-list,fifo,linked-list,named-typed-tuple,stack,struct); zero autogenerated, zero excluded.package.jsonshape (top keys,directories,scripts,keywords), README section list and order, manifest shape, test/benchmark/example file naming, public signature, return kind, validation prologue, error construction, JSDoc shape,@stdlib/*dependency set.lib/,test/,examples/,README.md,package.json,benchmark/(87.5%),docs/(87.5%); identical top-levelpackage.jsonkeys across all 8;directories.benchmark(87.5%) anddirectories.doc(87.5%);returnKind: value(100%);jsdocShape.hasExample: true(100%); README sectionsUsage(100%) andExamples(100%); deps@stdlib/utils/define-nonenumerable-read-only-propertyand@stdlib/utils/define-nonenumerable-read-only-accessor(100%).Notes(62.5%) andSee Also(62.5%); README section ordering (no contiguous subsequence ≥75% beyondUsage→Examples); public-signature arity (0 args 50%, 1 arg 37.5%, 2 args 12.5%); validation prologue (no shared subsequence ≥75%);errorConstruction(format62.5%, others split). All dropped from drift detection.compact-adjacency-matrixAdds a missing
benchmark/directory anddirectories.benchmarkentry to@stdlib/dstructs/compact-adjacency-matrix, bringing it into line with 7 of 8 siblings (87.5%) in thedstructsnamespace. The benchmark covers bothnewand no-newinstantiation paths using the standard boilerplate shared across the namespace. Without this, the package was the sole outlier in an otherwise consistent drift run.Validation
Three independent agents reviewed the candidate corrections:
linked-list/doubly-linked-listuse static messages without interpolation (not concatenation drift);fifo/stackcontain no throws at all; signature variation is genuine API difference, not stylistic drift.compact-adjacency-matrix's test suite has no benchmark-file dependency, no upstream README in the namespace references the missing path, and the change is purely additive.compact-adjacency-matrixbenchmark drift; flaggedstruct's missingdocs/asneeds-human(real REPL/types content cannot be safely auto-stubbed) and dropped from this run.Excluded from this run
structis missing thedocs/directory (docs/repl.txt,docs/types/index.d.ts) at 87.5% sibling conformance, but the fix requires authoring real package-specific REPL examples and TypeScript declarations — out of scope for mechanical drift correction. Logged for human authorship.Related Issues
No.
Questions
No.
Other
This PR is the output of an automated cross-package API drift detection routine over the
@stdlib/dstructsnamespace. Namespace was picked uniformly at random from eligible (≥8 non-autogenerated members, ≤50% autogenerated) namespaces using seeddrift-routine-2026-04-27. Detailed per-feature majority pattern, conformance percentages, outlier list, and validation-agent verdicts are in the local drift report (not committed to the repo). PR is intentionally left in draft state pending maintainer audit.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was authored end-to-end by Claude Code running an automated cross-package drift-detection routine: namespace selection, structural feature extraction, semantic feature extraction (per-package sonnet agents), three-agent drift validation (opus + sonnet), and patch application. The generated
benchmark/benchmark.jsscaffold mirrors the boilerplate of sibling benchmarks in the namespace; thepackage.jsondirectories.benchmarkentry is a one-line additive change. PR is left in draft for human audit before promotion.@stdlib-js/reviewers
Generated by Claude Code