Skip to content

Commit 661cf75

Browse files
committed
Auto-generated commit
1 parent 725f52b commit 661cf75

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

CHANGELOG.md

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

7-
## Unreleased (2026-03-04)
7+
## Unreleased (2026-03-07)
88

99
<section class="commits">
1010

1111
### Commits
1212

1313
<details>
1414

15+
- [`8c645eb`](https://github.com/stdlib-js/stdlib/commit/8c645eb0cf64aa26ad02168e41e02587d4bc0d9b) - **bench:** refactor to use dynamic memory allocation in `blas/ext/base/drev` [(#10743)](https://github.com/stdlib-js/stdlib/pull/10743) _(by Prajjwal Bajpai)_
1516
- [`e2500d8`](https://github.com/stdlib-js/stdlib/commit/e2500d89064c91840b42ee708a55da88a05b8a7b) - **bench:** refactor to use string interpolation in blas/ext/base/drev [(#10683)](https://github.com/stdlib-js/stdlib/pull/10683) _(by Kamal Singh Rautela)_
1617

1718
</details>
@@ -24,9 +25,10 @@
2425

2526
### Contributors
2627

27-
A total of 1 person contributed to this release. Thank you to this contributor:
28+
A total of 2 people contributed to this release. Thank you to the following contributors:
2829

2930
- Kamal Singh Rautela
31+
- Prajjwal Bajpai
3032

3133
</section>
3234

benchmark/c/benchmark.length.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,11 @@ static double rand_double( void ) {
9696
*/
9797
static double benchmark1( int iterations, int len ) {
9898
double elapsed;
99-
double x[ len ];
99+
double *x;
100100
double t;
101101
int i;
102102

103+
x = (double *) malloc( len * sizeof( double ) );
103104
for ( i = 0; i < len; i++ ) {
104105
x[ i ] = ( rand_double()*200.0 ) - 100.0;
105106
}
@@ -115,6 +116,7 @@ static double benchmark1( int iterations, int len ) {
115116
if ( x[ 0 ] != x[ 0 ] ) {
116117
printf( "should not return NaN\n" );
117118
}
119+
free( x );
118120
return elapsed;
119121
}
120122

@@ -127,10 +129,11 @@ static double benchmark1( int iterations, int len ) {
127129
*/
128130
static double benchmark2( int iterations, int len ) {
129131
double elapsed;
130-
double x[ len ];
132+
double *x;
131133
double t;
132134
int i;
133135

136+
x = (double *) malloc( len * sizeof( double ) );
134137
for ( i = 0; i < len; i++ ) {
135138
x[ i ] = ( rand_double()*200.0 ) - 100.0;
136139
}
@@ -146,6 +149,7 @@ static double benchmark2( int iterations, int len ) {
146149
if ( x[ 0 ] != x[ 0 ] ) {
147150
printf( "should not return NaN\n" );
148151
}
152+
free( x );
149153
return elapsed;
150154
}
151155

0 commit comments

Comments
 (0)