Skip to content

Commit f2c1714

Browse files
chore: changes in benchmark
--- 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 ca56f54 commit f2c1714

File tree

1 file changed

+2
-1
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/triangular/logpdf/benchmark

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/stats/base/dists/triangular/logpdf/benchmark/benchmark.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ bench( pkg+':factory', function benchmark( b ) {
7777
var y;
7878
var i;
7979

80+
len = 100;
8081
min = -1.5;
8182
max = 1.5;
8283
mode = 0.5;
@@ -88,7 +89,7 @@ bench( pkg+':factory', function benchmark( b ) {
8889

8990
b.tic();
9091
for ( i = 0; i < b.iterations; i++ ) {
91-
y = mylogpdf( x[ x%x.length ] );
92+
y = mylogpdf( x[ i%x.length ] );
9293
if ( isnan( y ) ) {
9394
b.fail( 'should not return NaN' );
9495
}

0 commit comments

Comments
 (0)