Skip to content

Commit a3eec0d

Browse files
authored
bench: refactor to use string interpolation in math/base/special/atanhf
PR-URL: #9861 Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com> Signed-off-by: Harsh <149176984+hrshya@users.noreply.github.com>
1 parent cccf137 commit a3eec0d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// MODULES //
2222

2323
var bench = require( '@stdlib/bench' );
24+
var format = require( '@stdlib/string/format' );
2425
var uniform = require( '@stdlib/random/array/uniform' );
2526
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2627
var f32 = require( '@stdlib/number/float64/base/to-float32' );
@@ -63,7 +64,7 @@ bench( pkg, function benchmark( b ) {
6364
b.end();
6465
});
6566

66-
bench( pkg+'::built-in', opts, function benchmark( b ) {
67+
bench( format( '%s::built-in', pkg ), opts, function benchmark( b ) {
6768
var opts;
6869
var x;
6970
var y;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
var resolve = require( 'path' ).resolve;
2424
var bench = require( '@stdlib/bench' );
25+
var format = require( '@stdlib/string/format' );
2526
var uniform = require( '@stdlib/random/array/uniform' );
2627
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2728
var tryRequire = require( '@stdlib/utils/try-require' );
@@ -38,7 +39,7 @@ var opts = {
3839

3940
// MAIN //
4041

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

0 commit comments

Comments
 (0)