Skip to content

Commit c4e8240

Browse files
committed
Auto-generated commit
1 parent a8fe30a commit c4e8240

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-11-26)
7+
## Unreleased (2025-12-02)
88

99
<section class="features">
1010

@@ -140,6 +140,7 @@ A total of 25 issues were closed in this release:
140140

141141
<details>
142142

143+
- [`2662635`](https://github.com/stdlib-js/stdlib/commit/266263512efb9fdc594bcd1aca66b9d78c21443c) - **bench:** refactor to use string interpolation in `assert/contains` [(#8683)](https://github.com/stdlib-js/stdlib/pull/8683) _(by Aman Singh, Athan Reines)_
143144
- [`f5f8c09`](https://github.com/stdlib-js/stdlib/commit/f5f8c0909696ae0d81abb67a5839f4317490ef2f) - **chore:** fix JavaScript lint errors [(#8561)](https://github.com/stdlib-js/stdlib/pull/8561) _(by kaushal-kumar-it, Athan Reines)_
144145
- [`a8f91a0`](https://github.com/stdlib-js/stdlib/commit/a8f91a0b6ea2aff9ca80a61c764b246d1789889b) - **docs:** fix return annotations in TSDoc examples _(by Philipp Burckhardt)_
145146
- [`8518e62`](https://github.com/stdlib-js/stdlib/commit/8518e622078185594b71f2ecf0ae34701e763733) - **fix:** make CLI scripts executable [(#8542)](https://github.com/stdlib-js/stdlib/pull/8542) _(by stdlib-bot)_
@@ -313,8 +314,9 @@ A total of 25 issues were closed in this release:
313314

314315
### Contributors
315316

316-
A total of 23 people contributed to this release. Thank you to the following contributors:
317+
A total of 24 people contributed to this release. Thank you to the following contributors:
317318

319+
- Aman Singh
318320
- Anshu Kumar
319321
- Athan Reines
320322
- Deepak Singh

contains/benchmark/benchmark.length.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
var bench = require( '@stdlib/bench' );
2424
var isBoolean = require( './../../is-boolean' ).isPrimitive;
2525
var pow = require( '@stdlib/math/base/special/pow' );
26-
var randu = require( '@stdlib/random/base/randu' );
26+
var format = require( '@stdlib/string/format' );
2727
var pkg = require( './../package.json' ).name;
2828
var contains = require( './../lib' );
2929

@@ -61,7 +61,7 @@ function createBenchmark( fcn, len ) {
6161
b.tic();
6262
for ( i = 0; i < b.iterations; i++ ) {
6363
// Note: we are testing the worst case scenario where a function must scan the entire array before finding a value.
64-
x[ len-2 ] = randu();
64+
x[ len-2 ] -= 1;
6565
bool = fcn( x, len-1 );
6666
if ( typeof bool !== 'boolean' ) {
6767
b.fail( 'should return a boolean' );
@@ -98,7 +98,7 @@ function main() {
9898
len = pow( 10, i );
9999

100100
f = createBenchmark( contains, len );
101-
bench( pkg+':len='+len, f );
101+
bench( format( '%s:len=%d', pkg, len ), f );
102102
}
103103
}
104104

0 commit comments

Comments
 (0)