Skip to content

Commit b5e65f7

Browse files
authored
bench: add opts and use string interpolation
PR-URL: #9889 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 4f42b6a commit b5e65f7

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ bench( pkg, function benchmark( b ) {
3434
var y;
3535
var i;
3636

37-
x = uniform( 100, 1.1, 100.0 );
37+
x = uniform( 100, 1.1, 100.0, {
38+
'dtype': 'float64'
39+
});
3840

3941
b.tic();
4042
for ( i = 0; i < b.iterations; i++ ) {

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

Lines changed: 5 additions & 2 deletions
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 isnan = require( '@stdlib/math/base/assert/is-nan' );
2728
var tryRequire = require( '@stdlib/utils/try-require' );
@@ -38,12 +39,14 @@ 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 x;
4344
var y;
4445
var i;
4546

46-
x = uniform( 100, 1.1, 100.0 );
47+
x = uniform( 100, 1.1, 100.0, {
48+
'dtype': 'float64'
49+
});
4750

4851
b.tic();
4952
for ( i = 0; i < b.iterations; i++ ) {

0 commit comments

Comments
 (0)