Skip to content

Commit 87daed6

Browse files
committed
Auto-generated commit
1 parent ef05aea commit 87daed6

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-12-18)
7+
## Unreleased (2025-12-19)
88

99
<section class="features">
1010

@@ -36,6 +36,7 @@ This release closes the following issue:
3636

3737
<details>
3838

39+
- [`3633d58`](https://github.com/stdlib-js/stdlib/commit/3633d5834de17c392e5fb5bb2a3b45198da52831) - **bench:** refactor to use dynamic memory allocation [(#9218)](https://github.com/stdlib-js/stdlib/pull/9218) _(by Samarth Kolarkar)_
3940
- [`540a83e`](https://github.com/stdlib-js/stdlib/commit/540a83e5de5378d3c74ab97ee4ce92517fa00a56) - **docs:** fix broken Markdown link [(#9170)](https://github.com/stdlib-js/stdlib/pull/9170) _(by Manit Roy)_
4041
- [`d559fd7`](https://github.com/stdlib-js/stdlib/commit/d559fd70de9ec9b1d72d22543876f380e4062c69) - **refactor:** update include header guards for single precision real packages [(#7710)](https://github.com/stdlib-js/stdlib/pull/7710) _(by Shabareesh Shetty)_
4142
- [`4f94e60`](https://github.com/stdlib-js/stdlib/commit/4f94e6071dbc28c204f01b2aae41618cc0bfc60b) - **feat:** add C implementation to `blas/base/ssyr` [(#7127)](https://github.com/stdlib-js/stdlib/pull/7127) _(by Shabareesh Shetty, Athan Reines)_
@@ -61,12 +62,13 @@ This release closes the following issue:
6162

6263
### Contributors
6364

64-
A total of 5 people contributed to this release. Thank you to the following contributors:
65+
A total of 6 people contributed to this release. Thank you to the following contributors:
6566

6667
- Aman Bhansali
6768
- Athan Reines
6869
- Manit Roy
6970
- Philipp Burckhardt
71+
- Samarth Kolarkar
7072
- Shabareesh Shetty
7173

7274
</section>

benchmark/c/benchmark.c

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,13 @@ static double tic( void ) {
8888
*/
8989
static double benchmark1( int iterations, int N ) {
9090
double elapsed;
91-
float A[ N*N ];
92-
float x[ N ];
91+
float *A;
92+
float *x;
9393
double t;
9494
int i;
9595

96+
x = (float *)malloc( N * sizeof( float ) );
97+
A = (float *)malloc( N * N * sizeof( float ) );
9698
stdlib_strided_sfill( N, 1.0f, x, 1 );
9799
stdlib_strided_sfill( N*N, 1.0f, A, 1 );
98100
t = tic();
@@ -107,6 +109,8 @@ static double benchmark1( int iterations, int N ) {
107109
if ( A[ i%(N*2) ] != A[ i%(N*2) ] ) {
108110
printf( "should not return NaN\n" );
109111
}
112+
free( x );
113+
free( A );
110114
return elapsed;
111115
}
112116

@@ -119,11 +123,13 @@ static double benchmark1( int iterations, int N ) {
119123
*/
120124
static double benchmark2( int iterations, int N ) {
121125
double elapsed;
122-
float A[ N*N ];
123-
float x[ N ];
126+
float *A;
127+
float *x;
124128
double t;
125129
int i;
126130

131+
x = (float *)malloc( N * sizeof( float ) );
132+
A = (float *)malloc( N * N * sizeof( float ) );
127133
stdlib_strided_sfill( N, 1.0f, x, 1 );
128134
stdlib_strided_sfill( N*N, 1.0f, A, 1 );
129135
t = tic();
@@ -138,6 +144,8 @@ static double benchmark2( int iterations, int N ) {
138144
if ( A[ i%(N*2) ] != A[ i%(N*2) ] ) {
139145
printf( "should not return NaN\n" );
140146
}
147+
free( x );
148+
free( A );
141149
return elapsed;
142150
}
143151

0 commit comments

Comments
 (0)