Skip to content

Commit 905e2cd

Browse files
committed
docs: update benchmark files for consistency and clarity
--- 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 f313044 commit 905e2cd

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ var options = {
4646
* @returns {Function} benchmark function
4747
*/
4848
function createBenchmark( len ) {
49-
var mask = bernoulli( len, 0.2, options );
50-
var x = uniform( len, -10.0, 10.0, options );
49+
var mask;
50+
var x;
51+
52+
mask = bernoulli( len, 0.2, options );
53+
x = uniform( len, -10.0, 10.0, options );
5154
return benchmark;
5255

5356
function benchmark( b ) {

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ var options = {
4646
* @returns {Function} benchmark function
4747
*/
4848
function createBenchmark( len ) {
49-
var mask = bernoulli( len, 0.2, options );
50-
var x = uniform( len, -10.0, 10.0, options );
49+
var mask;
50+
var x;
51+
52+
mask = bernoulli( len, 0.2, options );
53+
x = uniform( len, -10.0, 10.0, options );
5154
return benchmark;
5255

5356
function benchmark( b ) {

0 commit comments

Comments
 (0)