Skip to content

Commit bdba9bb

Browse files
committed
bench: use string interpolation for benchmark names in is-complex-typed-array
--- 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 a0191a5 commit bdba9bb

File tree

1 file changed

+5
-4
lines changed
  • lib/node_modules/@stdlib/array/base/assert/is-complex-typed-array/benchmark

1 file changed

+5
-4
lines changed

lib/node_modules/@stdlib/array/base/assert/is-complex-typed-array/benchmark/benchmark.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ var Complex64Array = require( '@stdlib/array/complex64' );
2727
var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive;
2828
var pkg = require( './../package.json' ).name;
2929
var isComplexTypedArray = require( './../lib' );
30+
var format = require( '@stdlib/string/format' );
3031

3132

3233
// MAIN //
3334

34-
bench( pkg+'::array', function benchmark( b ) {
35+
bench( format( '%s::array', pkg ), function benchmark( b ) {
3536
var bool;
3637
var obj;
3738
var i;
@@ -52,7 +53,7 @@ bench( pkg+'::array', function benchmark( b ) {
5253
b.end();
5354
});
5455

55-
bench( pkg+'::real_typed_array', function benchmark( b ) {
56+
bench( format( '%s::real_typed_array', pkg ), function benchmark( b ) {
5657
var values;
5758
var bool;
5859
var obj;
@@ -81,7 +82,7 @@ bench( pkg+'::real_typed_array', function benchmark( b ) {
8182
b.end();
8283
});
8384

84-
bench( pkg+'::complex_typed_array', function benchmark( b ) {
85+
bench( format( '%s::complex_typed_array', pkg ), function benchmark( b ) {
8586
var values;
8687
var bool;
8788
var obj;
@@ -110,7 +111,7 @@ bench( pkg+'::complex_typed_array', function benchmark( b ) {
110111
b.end();
111112
});
112113

113-
bench( pkg+'::array_like_object', function benchmark( b ) {
114+
bench( format( '%s::array_like_object', pkg ), function benchmark( b ) {
114115
var bool;
115116
var obj;
116117
var i;

0 commit comments

Comments
 (0)