Skip to content

Commit 2b0a902

Browse files
committed
Auto-generated commit
1 parent e24c53d commit 2b0a902

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1195,6 +1195,7 @@ A total of 13 people contributed to this release. Thank you to the following con
11951195

11961196
<details>
11971197

1198+
- [`8e00e52`](https://github.com/stdlib-js/stdlib/commit/8e00e52bed8c7b4fec42c468bd021815a417b988) - **bench:** parameterize `k` _(by Athan Reines)_
11981199
- [`41a2534`](https://github.com/stdlib-js/stdlib/commit/41a2534c6dd345a0dc73365826919ccbf1e9eca7) - **feat:** add `array/base/symmetric-banded/filled2d-by` _(by Athan Reines)_
11991200
- [`052b810`](https://github.com/stdlib-js/stdlib/commit/052b81032b766464a079bc88cc676e38dac0c35a) - **feat:** add `array/base/symmetric/filled2d-by` _(by Athan Reines)_
12001201
- [`c31eccd`](https://github.com/stdlib-js/stdlib/commit/c31eccd4e752a5647b718df9f3b70739c8a4b45b) - **chore(array):** fix incorrect JSDoc type [(#5844)](https://github.com/stdlib-js/stdlib/pull/5844) _(by Anshu Kumar)_

base/symmetric-banded/filled2d-by/benchmark/benchmark.size.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ var filled2dBy = require( './../lib' );
3737
*
3838
* @private
3939
* @param {PositiveInteger} N - array lengths
40+
* @param {NonNegativeInteger} k - number of super-/sub-diagonals
4041
* @returns {Function} benchmark function
4142
*/
42-
function createBenchmark( N ) {
43+
function createBenchmark( N, k ) {
4344
return benchmark;
4445

4546
/**
@@ -57,7 +58,7 @@ function createBenchmark( N ) {
5758

5859
b.tic();
5960
for ( i = 0; i < b.iterations; i++ ) {
60-
out = filled2dBy( N, 2, 0, f );
61+
out = filled2dBy( N, k, 0, f );
6162
if ( typeof out !== 'object' ) {
6263
b.fail( 'should return an array of arrays' );
6364
}
@@ -85,15 +86,17 @@ function main() {
8586
var N;
8687
var f;
8788
var i;
89+
var k;
8890

8991
min = 1; // 10^min
9092
max = 6; // 10^max
9193

94+
k = 2;
9295
for ( i = min; i <= max; i++ ) {
9396
N = floor( sqrt( pow( 10, i ) ) );
9497

95-
f = createBenchmark( N );
96-
bench( pkg+':k=2,size='+(N*N), f );
98+
f = createBenchmark( N, k );
99+
bench( pkg+':k='+k+',size='+(N*N), f );
97100
}
98101
}
99102

0 commit comments

Comments
 (0)