Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
}
Expand Down Expand Up @@ -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 );

Expand Down
Loading