Skip to content

Commit 07c28da

Browse files
committed
Auto-generated commit
1 parent 4df23a0 commit 07c28da

File tree

2 files changed

+82
-80
lines changed

2 files changed

+82
-80
lines changed

CHANGELOG.md

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

759759
<details>
760760

761+
- [`8e51991`](https://github.com/stdlib-js/stdlib/commit/8e519911fa82286c82b696e058c5da2fba071c3e) - **style:** revert style changes _(by Athan Reines)_
761762
- [`965c4b9`](https://github.com/stdlib-js/stdlib/commit/965c4b9341f4a3b721a06bfd5c48e1393b5ab59d) - **chore:** fix JavaScript lint errors [(#10380)](https://github.com/stdlib-js/stdlib/pull/10380) _(by Bhargav Dabhade)_
762763
- [`7eb18f2`](https://github.com/stdlib-js/stdlib/commit/7eb18f24166f78119540ec88e652e5643a5d2518) - **chore:** minor clean-up _(by Philipp Burckhardt)_
763764
- [`9221bdb`](https://github.com/stdlib-js/stdlib/commit/9221bdb56bac8544a387c8b8f74ae69ae5ec2961) - **feat:** add `toTransposed` to namespace _(by Athan Reines)_

base/slice-dimension-to/benchmark/benchmark.js

Lines changed: 81 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ var bench = require( '@stdlib/bench' );
2424
var isndarrayLike = require( '@stdlib/assert/is-ndarray-like' );
2525
var baseEmpty = require( './../../../base/empty' );
2626
var empty = require( './../../../empty' );
27+
var format = require( '@stdlib/string/format' );
2728
var pkg = require( './../package.json' ).name;
2829
var sliceDimensionTo = require( './../lib' );
2930

3031

3132
// MAIN //
3233

33-
bench( pkg+'::1d,base', function benchmark( b ) {
34+
bench( format( '%s::1d,base', pkg ), function benchmark( b ) {
3435
var values;
3536
var v;
3637
var s;
@@ -60,20 +61,20 @@ bench( pkg+'::1d,base', function benchmark( b ) {
6061
b.end();
6162
});
6263

63-
bench( pkg+'::1d,non-base', function benchmark( b ) {
64+
bench( format( '%s::1d,non-base', pkg ), function benchmark( b ) {
6465
var values;
6566
var v;
6667
var s;
6768
var i;
6869

69-
/* eslint-disable object-curly-newline */
70+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
7071

7172
values = [
72-
empty( [ 2 ], { 'dtype': 'float64' }),
73-
empty( [ 2 ], { 'dtype': 'float32' }),
74-
empty( [ 2 ], { 'dtype': 'int32' }),
75-
empty( [ 2 ], { 'dtype': 'complex128' }),
76-
empty( [ 2 ], { 'dtype': 'generic' })
73+
empty( [ 2 ], { 'dtype': 'float64' } ),
74+
empty( [ 2 ], { 'dtype': 'float32' } ),
75+
empty( [ 2 ], { 'dtype': 'int32' } ),
76+
empty( [ 2 ], { 'dtype': 'complex128' } ),
77+
empty( [ 2 ], { 'dtype': 'generic' } )
7778
];
7879

7980
/* eslint-enable object-curly-newline */
@@ -95,7 +96,7 @@ bench( pkg+'::1d,non-base', function benchmark( b ) {
9596
b.end();
9697
});
9798

98-
bench( pkg+'::1d,base,out-of-bounds', function benchmark( b ) {
99+
bench( format( '%s::1d,base,out-of-bounds', pkg ), function benchmark( b ) {
99100
var values;
100101
var v;
101102
var s;
@@ -125,20 +126,20 @@ bench( pkg+'::1d,base,out-of-bounds', function benchmark( b ) {
125126
b.end();
126127
});
127128

128-
bench( pkg+'::1d,non-base,out-of-bounds', function benchmark( b ) {
129+
bench( format( '%s::1d,non-base,out-of-bounds', pkg ), function benchmark( b ) {
129130
var values;
130131
var v;
131132
var s;
132133
var i;
133134

134-
/* eslint-disable object-curly-newline */
135+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
135136

136137
values = [
137-
empty( [ 2 ], { 'dtype': 'float64' }),
138-
empty( [ 2 ], { 'dtype': 'float32' }),
139-
empty( [ 2 ], { 'dtype': 'int32' }),
140-
empty( [ 2 ], { 'dtype': 'complex128' }),
141-
empty( [ 2 ], { 'dtype': 'generic' })
138+
empty( [ 2 ], { 'dtype': 'float64' } ),
139+
empty( [ 2 ], { 'dtype': 'float32' } ),
140+
empty( [ 2 ], { 'dtype': 'int32' } ),
141+
empty( [ 2 ], { 'dtype': 'complex128' } ),
142+
empty( [ 2 ], { 'dtype': 'generic' } )
142143
];
143144

144145
/* eslint-enable object-curly-newline */
@@ -160,7 +161,7 @@ bench( pkg+'::1d,non-base,out-of-bounds', function benchmark( b ) {
160161
b.end();
161162
});
162163

163-
bench( pkg+'::2d,base', function benchmark( b ) {
164+
bench( format( '%s::2d,base', pkg ), function benchmark( b ) {
164165
var values;
165166
var v;
166167
var s;
@@ -190,20 +191,20 @@ bench( pkg+'::2d,base', function benchmark( b ) {
190191
b.end();
191192
});
192193

193-
bench( pkg+'::2d,non-base', function benchmark( b ) {
194+
bench( format( '%s::2d,non-base', pkg ), function benchmark( b ) {
194195
var values;
195196
var v;
196197
var s;
197198
var i;
198199

199-
/* eslint-disable object-curly-newline */
200+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
200201

201202
values = [
202-
empty( [ 2, 2 ], { 'dtype': 'float64' }),
203-
empty( [ 2, 2 ], { 'dtype': 'float32' }),
204-
empty( [ 2, 2 ], { 'dtype': 'int32' }),
205-
empty( [ 2, 2 ], { 'dtype': 'complex128' }),
206-
empty( [ 2, 2 ], { 'dtype': 'generic' })
203+
empty( [ 2, 2 ], { 'dtype': 'float64' } ),
204+
empty( [ 2, 2 ], { 'dtype': 'float32' } ),
205+
empty( [ 2, 2 ], { 'dtype': 'int32' } ),
206+
empty( [ 2, 2 ], { 'dtype': 'complex128' } ),
207+
empty( [ 2, 2 ], { 'dtype': 'generic' } )
207208
];
208209

209210
/* eslint-enable object-curly-newline */
@@ -225,7 +226,7 @@ bench( pkg+'::2d,non-base', function benchmark( b ) {
225226
b.end();
226227
});
227228

228-
bench( pkg+'::2d,base,out-of-bounds', function benchmark( b ) {
229+
bench( format( '%s::2d,base,out-of-bounds', pkg ), function benchmark( b ) {
229230
var values;
230231
var v;
231232
var s;
@@ -255,20 +256,20 @@ bench( pkg+'::2d,base,out-of-bounds', function benchmark( b ) {
255256
b.end();
256257
});
257258

258-
bench( pkg+'::2d,non-base,out-of-bounds', function benchmark( b ) {
259+
bench( format( '%s::2d,non-base,out-of-bounds', pkg ), function benchmark( b ) {
259260
var values;
260261
var v;
261262
var s;
262263
var i;
263264

264-
/* eslint-disable object-curly-newline */
265+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
265266

266267
values = [
267-
empty( [ 2, 2 ], { 'dtype': 'float64' }),
268-
empty( [ 2, 2 ], { 'dtype': 'float32' }),
269-
empty( [ 2, 2 ], { 'dtype': 'int32' }),
270-
empty( [ 2, 2 ], { 'dtype': 'complex128' }),
271-
empty( [ 2, 2 ], { 'dtype': 'generic' })
268+
empty( [ 2, 2 ], { 'dtype': 'float64' } ),
269+
empty( [ 2, 2 ], { 'dtype': 'float32' } ),
270+
empty( [ 2, 2 ], { 'dtype': 'int32' } ),
271+
empty( [ 2, 2 ], { 'dtype': 'complex128' } ),
272+
empty( [ 2, 2 ], { 'dtype': 'generic' } )
272273
];
273274

274275
/* eslint-enable object-curly-newline */
@@ -290,7 +291,7 @@ bench( pkg+'::2d,non-base,out-of-bounds', function benchmark( b ) {
290291
b.end();
291292
});
292293

293-
bench( pkg+'::3d,base', function benchmark( b ) {
294+
bench( format( '%s::3d,base', pkg ), function benchmark( b ) {
294295
var values;
295296
var v;
296297
var s;
@@ -320,20 +321,20 @@ bench( pkg+'::3d,base', function benchmark( b ) {
320321
b.end();
321322
});
322323

323-
bench( pkg+'::3d,non-base', function benchmark( b ) {
324+
bench( format( '%s::3d,non-base', pkg ), function benchmark( b ) {
324325
var values;
325326
var v;
326327
var s;
327328
var i;
328329

329-
/* eslint-disable object-curly-newline */
330+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
330331

331332
values = [
332-
empty( [ 2, 2, 2 ], { 'dtype': 'float64' }),
333-
empty( [ 2, 2, 2 ], { 'dtype': 'float32' }),
334-
empty( [ 2, 2, 2 ], { 'dtype': 'int32' }),
335-
empty( [ 2, 2, 2 ], { 'dtype': 'complex128' }),
336-
empty( [ 2, 2, 2 ], { 'dtype': 'generic' })
333+
empty( [ 2, 2, 2 ], { 'dtype': 'float64' } ),
334+
empty( [ 2, 2, 2 ], { 'dtype': 'float32' } ),
335+
empty( [ 2, 2, 2 ], { 'dtype': 'int32' } ),
336+
empty( [ 2, 2, 2 ], { 'dtype': 'complex128' } ),
337+
empty( [ 2, 2, 2 ], { 'dtype': 'generic' } )
337338
];
338339

339340
/* eslint-enable object-curly-newline */
@@ -355,7 +356,7 @@ bench( pkg+'::3d,non-base', function benchmark( b ) {
355356
b.end();
356357
});
357358

358-
bench( pkg+'::3d,base,out-of-bounds', function benchmark( b ) {
359+
bench( format( '%s::3d,base,out-of-bounds', pkg ), function benchmark( b ) {
359360
var values;
360361
var v;
361362
var s;
@@ -385,20 +386,20 @@ bench( pkg+'::3d,base,out-of-bounds', function benchmark( b ) {
385386
b.end();
386387
});
387388

388-
bench( pkg+'::3d,non-base,out-of-bounds', function benchmark( b ) {
389+
bench( format( '%s::3d,non-base,out-of-bounds', pkg ), function benchmark( b ) {
389390
var values;
390391
var v;
391392
var s;
392393
var i;
393394

394-
/* eslint-disable object-curly-newline */
395+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
395396

396397
values = [
397-
empty( [ 2, 2, 2 ], { 'dtype': 'float64' }),
398-
empty( [ 2, 2, 2 ], { 'dtype': 'float32' }),
399-
empty( [ 2, 2, 2 ], { 'dtype': 'int32' }),
400-
empty( [ 2, 2, 2 ], { 'dtype': 'complex128' }),
401-
empty( [ 2, 2, 2 ], { 'dtype': 'generic' })
398+
empty( [ 2, 2, 2 ], { 'dtype': 'float64' } ),
399+
empty( [ 2, 2, 2 ], { 'dtype': 'float32' } ),
400+
empty( [ 2, 2, 2 ], { 'dtype': 'int32' } ),
401+
empty( [ 2, 2, 2 ], { 'dtype': 'complex128' } ),
402+
empty( [ 2, 2, 2 ], { 'dtype': 'generic' } )
402403
];
403404

404405
/* eslint-enable object-curly-newline */
@@ -420,7 +421,7 @@ bench( pkg+'::3d,non-base,out-of-bounds', function benchmark( b ) {
420421
b.end();
421422
});
422423

423-
bench( pkg+'::4d,base', function benchmark( b ) {
424+
bench( format( '%s::4d,base', pkg ), function benchmark( b ) {
424425
var values;
425426
var v;
426427
var s;
@@ -450,20 +451,20 @@ bench( pkg+'::4d,base', function benchmark( b ) {
450451
b.end();
451452
});
452453

453-
bench( pkg+'::4d,non-base', function benchmark( b ) {
454+
bench( format( '%s::4d,non-base', pkg ), function benchmark( b ) {
454455
var values;
455456
var v;
456457
var s;
457458
var i;
458459

459-
/* eslint-disable object-curly-newline */
460+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
460461

461462
values = [
462-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' }),
463-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' }),
464-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' }),
465-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' }),
466-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' })
463+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
464+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' } ),
465+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' } ),
466+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' } ),
467+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' } )
467468
];
468469

469470
/* eslint-enable object-curly-newline */
@@ -485,7 +486,7 @@ bench( pkg+'::4d,non-base', function benchmark( b ) {
485486
b.end();
486487
});
487488

488-
bench( pkg+'::4d,base,out-of-bounds', function benchmark( b ) {
489+
bench( format( '%s::4d,base,out-of-bounds', pkg ), function benchmark( b ) {
489490
var values;
490491
var v;
491492
var s;
@@ -515,20 +516,20 @@ bench( pkg+'::4d,base,out-of-bounds', function benchmark( b ) {
515516
b.end();
516517
});
517518

518-
bench( pkg+'::4d,non-base,out-of-bounds', function benchmark( b ) {
519+
bench( format( '%s::4d,non-base,out-of-bounds', pkg ), function benchmark( b ) {
519520
var values;
520521
var v;
521522
var s;
522523
var i;
523524

524-
/* eslint-disable object-curly-newline */
525+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
525526

526527
values = [
527-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' }),
528-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' }),
529-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' }),
530-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' }),
531-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' })
528+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
529+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' } ),
530+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' } ),
531+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' } ),
532+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' } )
532533
];
533534

534535
/* eslint-enable object-curly-newline */
@@ -550,7 +551,7 @@ bench( pkg+'::4d,non-base,out-of-bounds', function benchmark( b ) {
550551
b.end();
551552
});
552553

553-
bench( pkg+'::5d,base', function benchmark( b ) {
554+
bench( format( '%s::5d,base', pkg ), function benchmark( b ) {
554555
var values;
555556
var v;
556557
var s;
@@ -580,20 +581,20 @@ bench( pkg+'::5d,base', function benchmark( b ) {
580581
b.end();
581582
});
582583

583-
bench( pkg+'::5d,non-base', function benchmark( b ) {
584+
bench( format( '%s::5d,non-base', pkg ), function benchmark( b ) {
584585
var values;
585586
var v;
586587
var s;
587588
var i;
588589

589-
/* eslint-disable object-curly-newline */
590+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
590591

591592
values = [
592-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' }),
593-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' }),
594-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' }),
595-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' }),
596-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' })
593+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
594+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' } ),
595+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' } ),
596+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' } ),
597+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' } )
597598
];
598599

599600
/* eslint-enable object-curly-newline */
@@ -615,7 +616,7 @@ bench( pkg+'::5d,non-base', function benchmark( b ) {
615616
b.end();
616617
});
617618

618-
bench( pkg+'::5d,base,out-of-bounds', function benchmark( b ) {
619+
bench( format( '%s::5d,base,out-of-bounds', pkg ), function benchmark( b ) {
619620
var values;
620621
var v;
621622
var s;
@@ -645,20 +646,20 @@ bench( pkg+'::5d,base,out-of-bounds', function benchmark( b ) {
645646
b.end();
646647
});
647648

648-
bench( pkg+'::5d,non-base,out-of-bounds', function benchmark( b ) {
649+
bench( format( '%s::5d,non-base,out-of-bounds', pkg ), function benchmark( b ) {
649650
var values;
650651
var v;
651652
var s;
652653
var i;
653654

654-
/* eslint-disable object-curly-newline */
655+
/* eslint-disable object-curly-newline, stdlib/line-closing-bracket-spacing */
655656

656657
values = [
657-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' }),
658-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' }),
659-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' }),
660-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' }),
661-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' })
658+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
659+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' } ),
660+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' } ),
661+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' } ),
662+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' } )
662663
];
663664

664665
/* eslint-enable object-curly-newline */

0 commit comments

Comments
 (0)