Skip to content

Commit 1d2b031

Browse files
committed
fix: benchmark.js
--- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: passed - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent 514e3a9 commit 1d2b031

File tree

1 file changed

+13
-7
lines changed
  • lib/node_modules/@stdlib/blas/base/dgbmv/benchmark

1 file changed

+13
-7
lines changed

lib/node_modules/@stdlib/blas/base/dgbmv/benchmark/benchmark.js

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
var bench = require( '@stdlib/bench' );
2424
var uniform = require( '@stdlib/random/array/uniform' );
25-
var isnan = require( '@stdlib/math/base/assert/is-nanf' );
25+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2626
var pow = require( '@stdlib/math/base/special/pow' );
2727
var floor = require( '@stdlib/math/base/special/floor' );
2828
var pkg = require( './../package.json' ).name;
@@ -49,9 +49,15 @@ function createBenchmark( N ) {
4949
var x = uniform( N, -10.0, 10.0, options );
5050
var y = uniform( N, -10.0, 10.0, options );
5151

52-
var A = [ 0, 9, 10,
53-
11, 12, 5,
54-
1, 2, 0 ];
52+
var A = [ 0,
53+
9,
54+
10,
55+
11,
56+
12,
57+
5,
58+
1,
59+
2,
60+
0 ];
5561
return benchmark;
5662

5763
/**
@@ -67,12 +73,12 @@ function createBenchmark( N ) {
6773
b.tic();
6874
for ( i = 0; i < b.iterations; i++ ) {
6975
z = dgbmv( 'row-major', 'no-transpose', N, N, 1, 1, 1.0, A, N, x, 1, 1.0, y, 1 );
70-
if ( isnan( z[ i%z.length ] ) ) {
76+
if ( isnanf( z[ i%z.length ] ) ) {
7177
b.fail( 'should not return NaN' );
7278
}
7379
}
7480
b.toc();
75-
if ( isnan( z[ i%z.length ] ) ) {
81+
if ( isnanf( z[ i%z.length ] ) ) {
7682
b.fail( 'should not return NaN' );
7783
}
7884
b.pass( 'benchmark finished' );
@@ -94,7 +100,7 @@ function main() {
94100

95101
len = floor( pow( pow( 10, 1 ), 1.0/2.0 ) );
96102
f = createBenchmark( len );
97-
bench( pkg+':ndarray:size='+(len*len), f );
103+
bench( pkg+':size='+(len*len), f );
98104
}
99105

100106
main();

0 commit comments

Comments
 (0)