From 2dfb5cbcf581ef2f05ce81074cffb2c2e6e05322 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 28 Jul 2024 03:34:23 +0000 Subject: [PATCH] Auto-generated commit --- CHANGELOG.md | 34 ++++++++++++++++++++++++++++++++++ README.md | 4 ++-- benchmark/c/benchmark.length.c | 14 +++++++------- package.json | 6 +++--- 4 files changed, 46 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index be9f785..da0937f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,40 @@ > Package changelog. +
+ +## Unreleased (2024-07-28) + +
+ +### Commits + +
+ +- [`2777e4b`](https://github.com/stdlib-js/stdlib/commit/2777e4be161869d09406e3b17947d24c64b47af2) - **bench:** resolve lint errors in benchmarks _(by Athan Reines)_ + +
+ +
+ + + +
+ +### Contributors + +A total of 1 person contributed to this release. Thank you to this contributor: + +- Athan Reines + +
+ + + +
+ + +
## 0.3.0 (2024-07-27) diff --git a/README.md b/README.md index b98c2a3..a704f13 100644 --- a/README.md +++ b/README.md @@ -355,8 +355,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. [npm-image]: http://img.shields.io/npm/v/@stdlib/blas-base-dswap.svg [npm-url]: https://npmjs.org/package/@stdlib/blas-base-dswap -[test-image]: https://github.com/stdlib-js/blas-base-dswap/actions/workflows/test.yml/badge.svg?branch=v0.3.0 -[test-url]: https://github.com/stdlib-js/blas-base-dswap/actions/workflows/test.yml?query=branch:v0.3.0 +[test-image]: https://github.com/stdlib-js/blas-base-dswap/actions/workflows/test.yml/badge.svg?branch=main +[test-url]: https://github.com/stdlib-js/blas-base-dswap/actions/workflows/test.yml?query=branch:main [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/blas-base-dswap/main.svg [coverage-url]: https://codecov.io/github/stdlib-js/blas-base-dswap?branch=main diff --git a/benchmark/c/benchmark.length.c b/benchmark/c/benchmark.length.c index 2d537ec..b3057bb 100644 --- a/benchmark/c/benchmark.length.c +++ b/benchmark/c/benchmark.length.c @@ -32,7 +32,7 @@ /** * Prints the TAP version. */ -void print_version( void ) { +static void print_version( void ) { printf( "TAP version 13\n" ); } @@ -42,7 +42,7 @@ void print_version( void ) { * @param total total number of tests * @param passing total number of passing tests */ -void print_summary( int total, int passing ) { +static void print_summary( int total, int passing ) { printf( "#\n" ); printf( "1..%d\n", total ); // TAP plan printf( "# total %d\n", total ); @@ -57,7 +57,7 @@ void print_summary( int total, int passing ) { * @param iterations number of iterations * @param elapsed elapsed time in seconds */ -void print_results( int iterations, double elapsed ) { +static void print_results( int iterations, double elapsed ) { double rate = (double)iterations / elapsed; printf( " ---\n" ); printf( " iterations: %d\n", iterations ); @@ -71,18 +71,18 @@ void print_results( int iterations, double elapsed ) { * * @return clock time */ -double tic( void ) { +static double tic( void ) { struct timeval now; gettimeofday( &now, NULL ); return (double)now.tv_sec + (double)now.tv_usec/1.0e6; } /** -* Generates a random number on the interval [0,1]. +* Generates a random number on the interval [0,1). * * @return random number */ -double rand_double( void ) { +static double rand_double( void ) { int r = rand(); return (double)r / ( (double)RAND_MAX + 1.0 ); } @@ -94,7 +94,7 @@ double rand_double( void ) { * @param len array length * @return elapsed time in seconds */ -double benchmark( int iterations, int len ) { +static double benchmark( int iterations, int len ) { double elapsed; double x[ len ]; double y[ len ]; diff --git a/package.json b/package.json index 9f3f14b..7987745 100644 --- a/package.json +++ b/package.json @@ -53,9 +53,9 @@ "@stdlib/utils-try-require": "^0.2.2" }, "devDependencies": { - "@stdlib/array-float64": "^0.2.1", + "@stdlib/array-float64": "^0.2.2", "@stdlib/assert-is-browser": "^0.2.2", - "@stdlib/blas-base-dcopy": "^0.2.1", + "@stdlib/blas-base-dcopy": "^0.3.0", "@stdlib/math-base-assert-is-nan": "^0.2.2", "@stdlib/math-base-special-pow": "^0.2.1", "@stdlib/random-array-discrete-uniform": "^0.2.1", @@ -66,7 +66,7 @@ "tape": "git+https://github.com/kgryte/tape.git#fix/globby", "istanbul": "^0.4.1", "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.1" + "@stdlib/bench-harness": "^0.2.2" }, "engines": { "node": ">=0.10.0",