Skip to content

Commit 8174a0c

Browse files
committed
refactor: c 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: na - 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: missing_dependencies - 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 9248df2 commit 8174a0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/blas/ext/base/sindex-of/benchmark/c/benchmark.length.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static double benchmark1( int iterations, int len ) {
107107
idx = -1;
108108
t = tic();
109109
for ( i = 0; i < iterations; i++ ) {
110-
idx = stdlib_strided_sindexOf( len, 1000.0f, x, 1 );
110+
idx = stdlib_strided_sindexOf( len, 20000.0f, x, 1 );
111111
if ( idx < -2 ) {
112112
printf( "unexpected result\n" );
113113
break;
@@ -140,7 +140,7 @@ static double benchmark2( int iterations, int len ) {
140140
idx = -1;
141141
t = tic();
142142
for ( i = 0; i < iterations; i++ ) {
143-
idx = stdlib_strided_sindexOf_ndarray( len, 1000.0f, x, 1, 0 );
143+
idx = stdlib_strided_sindexOf_ndarray( len, 20000.0f, x, 1, 0 );
144144
if ( idx < -2 ) {
145145
printf( "unexpected result\n" );
146146
break;

0 commit comments

Comments
 (0)