Skip to content

Commit 7f8b7d7

Browse files
committed
bench: define NAME macro for consistency with other 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: 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: passed - 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 84cf373 commit 7f8b7d7

File tree

1 file changed

+2
-1
lines changed
  • lib/node_modules/@stdlib/math/base/special/tan/benchmark/c

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/math/base/special/tan/benchmark/c/benchmark.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <time.h>
2323
#include <sys/time.h>
2424

25+
#define NAME "tan"
2526
#define ITERATIONS 1000000
2627
#define REPEATS 3
2728

@@ -125,7 +126,7 @@ int main( void ) {
125126

126127
print_version();
127128
for ( i = 0; i < REPEATS; i++ ) {
128-
printf( "# c::%s\n", "tan" );
129+
printf( "# c::%s\n", NAME );
129130
elapsed = benchmark();
130131
print_results( elapsed );
131132
printf( "ok %d benchmark finished\n", i+1 );

0 commit comments

Comments
 (0)