[RFC]: Add missing native benchmarks to blas/ext/base sorting packages (tracking issue)
Description
This RFC proposes adding missing native benchmarks (benchmark.native.js and benchmark.c) to the sorting algorithms within the @stdlib/blas/ext/base namespace.
While these packages currently feature native C implementations and binding.gyp files, they lack the corresponding native benchmark files required to track C API performance in isolation alongside their pure JavaScript implementations. This issue will serve as a tracking issue for adding these missing benchmarks.
Packages:
- [ ]
@stdlib/blas/ext/base/dsort - [ ]
@stdlib/blas/ext/base/dsort2hp - [ ]
@stdlib/blas/ext/base/dsort2ins - [ ]
@stdlib/blas/ext/base/dsort2sh - [ ]
@stdlib/blas/ext/base/dsorthp - [ ]
@stdlib/blas/ext/base/dsortins - [ ]
@stdlib/blas/ext/base/dsortsh - [ ]
@stdlib/blas/ext/base/ssort - [ ]
@stdlib/blas/ext/base/ssort2hp - [ ]
@stdlib/blas/ext/base/ssort2ins - [ ]
@stdlib/blas/ext/base/ssort2sh - [ ]
@stdlib/blas/ext/base/ssorthp - [ ]
@stdlib/blas/ext/base/ssortins - [ ]
@stdlib/blas/ext/base/ssortsh
If this proposal is accepted, I am happy to begin opening PRs to add these files.
Related Issues
None.
Questions
No.
Other
No.
Checklist
- [x] I have read and understood the Code of Conduct.
- [x] Searched for existing issues and pull requests.
- [x] The issue name begins with
RFC:.
:wave: Hi there! :wave:
And thank you for opening your first issue! We will get back to you shortly. :runner: :dash:
If you have any further questions while waiting for a response, please join our Zulip community to chat with project maintainers and other community members.
@AryanSharma48 You may need to be more specific. What benchmarks are missing exactly? E.g., looking at https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/dsorthp/benchmark, I am not seeing any missing benchmarks.
Hi @kgryte, thanks for taking a look at this.
Ah, I see my mistake! I was working heavily in the stats/base namespace recently and wrote a bash script to flag native packages (ones with a binding.gyp) that were missing a specifically named benchmark.native.js file, since that file split is strictly used over in stats.
Looking closer at the dsorthp/benchmark directory you linked, I see that the C implementations are indeed already being benchmarked (e.g., via benchmark.c) and blas/ext just doesn't use the explicit .native.js file routing convention I was anchoring on.
My apologies for the noise, this was a false positive from my script assuming a uniform file structure across different namespaces. I will go ahead and close this RFC. Thanks for the clarification!