Skip to content

Commit 7ec7744

Browse files
committed
bench: add opts for halfnormal-stdev
--- 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent fabac99 commit 7ec7744

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

lib/node_modules/@stdlib/stats/base/dists/halfnormal/stdev/benchmark/benchmark.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ var stdev = require( './../lib' );
3232

3333
bench( pkg, function benchmark( b ) {
3434
var sigma;
35+
var opts;
3536
var y;
3637
var i;
3738

38-
sigma = uniform( 100, EPS, 20.0, {
39+
opts = {
3940
'dtype': 'float64'
40-
});
41+
};
42+
sigma = uniform( 100, EPS, 20.0, opts );
4143

4244
b.tic();
4345
for ( i = 0; i < b.iterations; i++ ) {

lib/node_modules/@stdlib/stats/base/dists/halfnormal/stdev/benchmark/benchmark.native.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,14 @@ var opts = {
4242

4343
bench( format( '%s::native', pkg ), opts, function benchmark( b ) {
4444
var sigma;
45+
var opts;
4546
var y;
4647
var i;
4748

48-
sigma = uniform( 100, EPS, 20.0, {
49+
opts = {
4950
'dtype': 'float64'
50-
});
51+
};
52+
sigma = uniform( 100, EPS, 20.0, opts );
5153

5254
b.tic();
5355
for ( i = 0; i < b.iterations; i++ ) {

0 commit comments

Comments
 (0)