Skip to content

Commit 5e5dcd6

Browse files
bench: refactor to use string interpolation in math/base/special/digammaf
--- 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 ce19383 commit 5e5dcd6

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

lib/node_modules/@stdlib/math/base/special/digammaf/benchmark/benchmark.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ var bench = require( '@stdlib/bench' );
2424
var randu = require( '@stdlib/random/base/randu' );
2525
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2626
var EPS = require( '@stdlib/constants/float32/eps' );
27+
var format = require( '@stdlib/string/format' );
2728
var pkg = require( './../package.json' ).name;
2829
var digammaf = require( './../lib' );
2930

3031

3132
// MAIN //
3233

33-
bench( pkg, function benchmark( b ) {
34+
bench( format( '%s', pkg ), function benchmark( b ) {
3435
var x;
3536
var y;
3637
var i;

lib/node_modules/@stdlib/math/base/special/digammaf/benchmark/benchmark.native.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var randu = require( '@stdlib/random/base/randu' );
2626
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2727
var EPS = require( '@stdlib/constants/float32/eps' );
2828
var tryRequire = require( '@stdlib/utils/try-require' );
29+
var format = require( '@stdlib/string/format' );
2930
var pkg = require( './../package.json' ).name;
3031

3132

@@ -39,7 +40,7 @@ var opts = {
3940

4041
// MAIN //
4142

42-
bench( pkg + '::native', opts, function benchmark( b ) {
43+
bench( format( '%s::native', pkg ), opts, function benchmark( b ) {
4344
var x;
4445
var y;
4546
var i;

0 commit comments

Comments
 (0)