Repository navigation
bench: add benchmarks to stats/kde2d - #16127
Draft
Planeshifter wants to merge 1 commit into
Draft
Planeshifter wants to merge 1 commit into
Planeshifter wants to merge 1 commit into
Conversation
Added missing `benchmark/benchmark.js` (present in 56 of 57 `stats/*` sibling packages, 98%) and the corresponding `directories.benchmark` entry in `package.json` (98% of siblings). Benchmarks cover the default call and the `n`, `kernel`, and `h` options. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012wvaXWDrnZ4nfKTjK5LcpV
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
This branch has not been deployed
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/stats/kde2d, the only non-namespace package instats/*that has none.@stdlib/stats/kde2dAdds
benchmark/benchmark.js, present in 56 of 57 sibling packages (98%), and the matchingdirectories.benchmarkentry inpackage.json(98%). The benchmarks cover the default call and then,kernel, andhoptions, and follow the layout ofstats/lowess/benchmark/benchmark.js.Related Issues
No.
Questions
No.
Other
Namespace summary.
statshas 62 direct packages. Of these, 57 are non-namespace members;array,base,incr,iter, andstridedare namespace aggregators and were excluded. A feature has a clear majority when at least 43 of the 57 packages (75%) agree.package.jsonkeys, README## Usage/## Examplessections,returnKind, JSDoc@returns/@throws/@examplepresence.format, 7 mixed),scripts/stdlibkey sets, dependencies.Validation. Structural features were extracted from the filesystem. Semantic features were extracted by agents that read each package's
lib/sources. The candidate correction was then reviewed for structural fit and for cross-references. Across stdlib, 92.4% of packages with alib/main.jsship a benchmark, which clears the 90% presence gate. Nothing depends on the benchmark being absent.Candidates dropped as intentional deviations:
stats/lowesshas no@exampleinlib/main.js. The function there is namedmain, and none of the 143 stdlib packages that export a function namedmaincarry an@examplein it; the example lives inlib/index.js.anova1,chi2gof,lowess,pcorrtest,ttest,wilcoxon, …) follow the stdlib-wide convention: 2,207 plain-string uses, and noformat()calls without interpolation.The benchmark was smoke-tested by running its bodies under a stub harness. The full
@stdlib/benchharness could not be run because the build environment has no installed npm dependencies.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was written primarily by Claude Code as part of an automated cross-package API drift detection run.
🤖 Generated with Claude Code
https://claude.ai/code/session_012wvaXWDrnZ4nfKTjK5LcpV
Generated by Claude Code