From 7f7ce3179147c2b6a37f90b2d108b8c0afe6f0a4 Mon Sep 17 00:00:00 2001 From: manit2004 Date: Thu, 18 Dec 2025 19:18:52 +0530 Subject: [PATCH 1/4] fix: implement log10 operation in benchmark (resolves #9216) --- .../mathjs/benchmark/benchmark.log10.matrix.2d.size.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/migration-guides/mathjs/benchmark/benchmark.log10.matrix.2d.size.js b/docs/migration-guides/mathjs/benchmark/benchmark.log10.matrix.2d.size.js index bca5672d7245..aabd0b65944c 100644 --- a/docs/migration-guides/mathjs/benchmark/benchmark.log10.matrix.2d.size.js +++ b/docs/migration-guides/mathjs/benchmark/benchmark.log10.matrix.2d.size.js @@ -79,7 +79,7 @@ function createBenchmark1( shape ) { b.tic(); for ( i = 0; i < b.iterations; i++ ) { - // y = log10( x ); FIXME: support once we have `@stdlib/math/special/log10` + y = x.map( base ); if ( typeof y !== 'object' ) { b.fail( 'should return an object' ); } From b6bfe5811b3b3af6e14b8a08bdb60fad6a693086 Mon Sep 17 00:00:00 2001 From: manit2004 Date: Thu, 18 Dec 2025 19:27:47 +0530 Subject: [PATCH 2/4] fix: add missing benchmark1 call in main function --- .../mathjs/benchmark/benchmark.log10.matrix.2d.size.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/migration-guides/mathjs/benchmark/benchmark.log10.matrix.2d.size.js b/docs/migration-guides/mathjs/benchmark/benchmark.log10.matrix.2d.size.js index aabd0b65944c..3ac66ed03da4 100644 --- a/docs/migration-guides/mathjs/benchmark/benchmark.log10.matrix.2d.size.js +++ b/docs/migration-guides/mathjs/benchmark/benchmark.log10.matrix.2d.size.js @@ -229,6 +229,9 @@ function main() { N = floor( pow( pow( 10, i ), 1.0/2.0 ) ); shape = [ N, N ]; + f = createBenchmark1( shape ); + bench( format( '%s::stdlib:ndarray/array:dtype=%s,size=%d,shape=(%s)', pkg, OPTS.dtype, numel( shape ), shape.join( ',' ) ), f ); + f = createBenchmark2( shape ); bench( format( '%s::stdlib:array/base/unary2d:dtype=%s,size=%d,shape=(%s)', pkg, OPTS.dtype, numel( shape ), shape.join( ',' ) ), f ); From 6d8172d2380546e430a39d9e2a54eb27b597874b Mon Sep 17 00:00:00 2001 From: manit2004 Date: Thu, 18 Dec 2025 19:31:02 +0530 Subject: [PATCH 3/4] fix: remove private field from package.json --- docs/migration-guides/mathjs/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/migration-guides/mathjs/package.json b/docs/migration-guides/mathjs/package.json index c2e382e4adb2..327f3ed952dd 100644 --- a/docs/migration-guides/mathjs/package.json +++ b/docs/migration-guides/mathjs/package.json @@ -1,6 +1,5 @@ { "name": "stdlib-mathjs-benchmarks", - "private": true, "version": "0.0.0", "description": "Math.js benchmarks.", "license": "Apache-2.0", From b6437d63437465c2344becffd4716b7b2a9026d1 Mon Sep 17 00:00:00 2001 From: Athan Date: Thu, 18 Dec 2025 15:49:24 -0800 Subject: [PATCH 4/4] Discard changes to docs/migration-guides/mathjs/package.json --- docs/migration-guides/mathjs/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/migration-guides/mathjs/package.json b/docs/migration-guides/mathjs/package.json index 327f3ed952dd..c2e382e4adb2 100644 --- a/docs/migration-guides/mathjs/package.json +++ b/docs/migration-guides/mathjs/package.json @@ -1,5 +1,6 @@ { "name": "stdlib-mathjs-benchmarks", + "private": true, "version": "0.0.0", "description": "Math.js benchmarks.", "license": "Apache-2.0",