Skip to content

Commit 1ef0ea4

Browse files
committed
bench: update benchmarks
--- 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 03ec98a commit 1ef0ea4

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

lib/node_modules/@stdlib/stats/base/nanminabs/benchmark/benchmark.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2025 The Stdlib Authors.
4+
* Copyright (c) 2020 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -27,16 +27,16 @@ var filledarrayBy = require( '@stdlib/array/filled-by' );
2727
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2828
var pow = require( '@stdlib/math/base/special/pow' );
2929
var pkg = require( './../package.json' ).name;
30-
var nanminabs = require( './../lib/nanminabs.js' );
30+
var nanminabs = require( './../lib/main.js' );
3131

3232

3333
// FUNCTIONS //
3434

3535
/**
36-
* Returns a random value or `NaN`.
36+
* Returns a random value.
3737
*
3838
* @private
39-
* @returns {number} random number or `NaN`
39+
* @returns {number} random number
4040
*/
4141
function rand() {
4242
if ( bernoulli( 0.8 ) < 1 ) {
@@ -53,7 +53,7 @@ function rand() {
5353
* @returns {Function} benchmark function
5454
*/
5555
function createBenchmark( len ) {
56-
var x = filledarrayBy( len, 'float64', rand );
56+
var x = filledarrayBy( len, 'generic', rand );
5757
return benchmark;
5858

5959
function benchmark( b ) {

lib/node_modules/@stdlib/stats/base/nanminabs/benchmark/benchmark.ndarray.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2025 The Stdlib Authors.
4+
* Copyright (c) 2020 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -33,10 +33,10 @@ var nanminabs = require( './../lib/ndarray.js' );
3333
// FUNCTIONS //
3434

3535
/**
36-
* Returns a random value or `NaN`.
36+
* Returns a random value.
3737
*
3838
* @private
39-
* @returns {number} random number or `NaN`
39+
* @returns {number} random number
4040
*/
4141
function rand() {
4242
if ( bernoulli( 0.8 ) < 1 ) {
@@ -53,7 +53,7 @@ function rand() {
5353
* @returns {Function} benchmark function
5454
*/
5555
function createBenchmark( len ) {
56-
var x = filledarrayBy( len, 'float64', rand );
56+
var x = filledarrayBy( len, 'generic', rand );
5757
return benchmark;
5858

5959
function benchmark( b ) {

0 commit comments

Comments
 (0)