Skip to content

Commit 7447ad4

Browse files
bench: refactor to use string interpolation in array/base/arraylike2object
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent e964c37 commit 7447ad4

File tree

1 file changed

+4
-3
lines changed
  • lib/node_modules/@stdlib/array/base/arraylike2object/benchmark

1 file changed

+4
-3
lines changed

lib/node_modules/@stdlib/array/base/arraylike2object/benchmark/benchmark.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ var bench = require( '@stdlib/bench' );
2424
var Float64Array = require( '@stdlib/array/float64' );
2525
var zeros = require( '@stdlib/array/base/zeros' );
2626
var isCollection = require( '@stdlib/assert/is-collection' );
27+
var format = require( '@stdlib/string/format' );
2728
var pkg = require( './../package.json' ).name;
2829
var arraylike2object = require( './../lib' );
2930

3031

3132
// MAIN //
3233

33-
bench( pkg+'::array', function benchmark( b ) {
34+
bench( format( '%s::array', pkg ), function benchmark( b ) {
3435
var values;
3536
var out;
3637
var i;
@@ -56,7 +57,7 @@ bench( pkg+'::array', function benchmark( b ) {
5657
b.end();
5758
});
5859

59-
bench( pkg+'::typed_array', function benchmark( b ) {
60+
bench( format( '%s::typed_array', pkg ), function benchmark( b ) {
6061
var values;
6162
var out;
6263
var i;
@@ -82,7 +83,7 @@ bench( pkg+'::typed_array', function benchmark( b ) {
8283
b.end();
8384
});
8485

85-
bench( pkg+'::array_like', function benchmark( b ) {
86+
bench( format( '%s::array_like', pkg ), function benchmark( b ) {
8687
var arr;
8788
var out;
8889
var i;

0 commit comments

Comments
 (0)