Skip to content

Commit 776622d

Browse files
committed
Auto-generated commit
1 parent 5ecf714 commit 776622d

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,7 @@ A total of 44 issues were closed in this release:
794794

795795
<details>
796796

797+
- [`3ea6462`](https://github.com/stdlib-js/stdlib/commit/3ea64620014043e0a7404296510739c3a4a3a08d) - **bench:** refactor to use string interpolation in `ndarray/includes` [(#11077)](https://github.com/stdlib-js/stdlib/pull/11077) _(by Partha Das)_
797798
- [`826071a`](https://github.com/stdlib-js/stdlib/commit/826071af85401abe59ef8c6eb687224b4e374ce8) - **bench:** fix missing arguments _(by Athan Reines)_
798799
- [`b1b1a64`](https://github.com/stdlib-js/stdlib/commit/b1b1a64876a554c2d77c9f4fbc96daa5e0d3f90e) - **docs:** update example _(by Athan Reines)_
799800
- [`0f753ef`](https://github.com/stdlib-js/stdlib/commit/0f753ef8b2aeb203c314accd37af63c551dfdfad) - **refactor:** use string interpolation _(by Athan Reines)_

includes/benchmark/benchmark.1d.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var pow = require( '@stdlib/math/base/special/pow' );
2626
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
2727
var shape2strides = require( './../../base/shape2strides' );
2828
var ndarray = require( './../../ctor' );
29+
var format = require( '@stdlib/string/format' );
2930
var pkg = require( './../package.json' ).name;
3031
var includes = require( './../lib' );
3132

@@ -127,7 +128,7 @@ function main() {
127128

128129
sh = [ len ];
129130
f = createBenchmark( len, sh, t1, ord, dims );
130-
bench( pkg+':ndims='+sh.length+',len='+len+',shape=['+sh.join(',')+'],xorder='+ord+',xtype='+t1+',dims=['+dims.join(',')+']', f );
131+
bench( format( '%s:ndims=%d,len=%d,shape=[%s],xorder=%s,xtype=%s,dims=[%s]', pkg, sh.length, len, sh.join(','), ord, t1, dims.join(',') ), f );
131132
}
132133
}
133134
}

includes/benchmark/benchmark.2d.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' );
2828
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
2929
var shape2strides = require( './../../base/shape2strides' );
3030
var ndarray = require( './../../ctor' );
31+
var format = require( '@stdlib/string/format' );
3132
var pkg = require( './../package.json' ).name;
3233
var includes = require( './../lib' );
3334

@@ -131,17 +132,16 @@ function main() {
131132

132133
sh = [ len/2, 2 ];
133134
f = createBenchmark( len, sh, t1, ord, dims );
134-
bench( pkg+':ndims='+sh.length+',len='+len+',shape=['+sh.join(',')+'],xorder='+ord+',xtype='+t1+',dims=['+dims.join(',')+']', f );
135+
bench( format( '%s:ndims=%d,len=%d,shape=[%s],xorder=%s,xtype=%s,dims=[%s]', pkg, sh.length, len, sh.join(','), ord, t1, dims.join(',') ), f );
135136

136137
sh = [ 2, len/2 ];
137138
f = createBenchmark( len, sh, t1, ord, dims );
138-
bench( pkg+':ndims='+sh.length+',len='+len+',shape=['+sh.join(',')+'],xorder='+ord+',xtype='+t1+',dims=['+dims.join(',')+']', f );
139-
139+
bench( format( '%s:ndims=%d,len=%d,shape=[%s],xorder=%s,xtype=%s,dims=[%s]', pkg, sh.length, len, sh.join(','), ord, t1, dims.join(',') ), f );
140140
len = floor( sqrt( len ) );
141141
sh = [ len, len ];
142142
len *= len;
143143
f = createBenchmark( len, sh, t1, ord, dims );
144-
bench( pkg+':ndims='+sh.length+',len='+len+',shape=['+sh.join(',')+'],xorder='+ord+',xtype='+t1+',dims=['+dims.join(',')+']', f );
144+
bench( format( '%s:ndims=%d,len=%d,shape=[%s],xorder=%s,xtype=%s,dims=[%s]', pkg, sh.length, len, sh.join(','), ord, t1, dims.join(',') ), f );
145145
}
146146
}
147147
}

0 commit comments

Comments
 (0)