Skip to content
Merged
Show file tree
Hide file tree
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
27 changes: 14 additions & 13 deletions lib/node_modules/@stdlib/array/pool/benchmark/benchmark.calloc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ var bench = require( '@stdlib/bench' );
var isTypedArray = require( '@stdlib/assert/is-typed-array' );
var isComplexTypedArray = require( '@stdlib/assert/is-complex-typed-array' );
var isBooleanArray = require( '@stdlib/assert/is-booleanarray' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
var typedarray = require( './../lib' );


// MAIN //

bench( pkg+':calloc', function benchmark( b ) {
bench( format( '%s:calloc', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -48,7 +49,7 @@ bench( pkg+':calloc', function benchmark( b ) {
b.end();
});

bench( pkg+':calloc:dtype=float64', function benchmark( b ) {
bench( format( '%s:calloc:dtype=float64', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -66,7 +67,7 @@ bench( pkg+':calloc:dtype=float64', function benchmark( b ) {
b.end();
});

bench( pkg+':calloc:dtype=float32', function benchmark( b ) {
bench( format( '%s:calloc:dtype=float32', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -84,7 +85,7 @@ bench( pkg+':calloc:dtype=float32', function benchmark( b ) {
b.end();
});

bench( pkg+':calloc:dtype=int32', function benchmark( b ) {
bench( format( '%s:calloc:dtype=int32', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -102,7 +103,7 @@ bench( pkg+':calloc:dtype=int32', function benchmark( b ) {
b.end();
});

bench( pkg+':calloc:dtype=uint32', function benchmark( b ) {
bench( format( '%s:calloc:dtype=uint32', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -120,7 +121,7 @@ bench( pkg+':calloc:dtype=uint32', function benchmark( b ) {
b.end();
});

bench( pkg+':calloc:dtype=int16', function benchmark( b ) {
bench( format( '%s:calloc:dtype=int16', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -138,7 +139,7 @@ bench( pkg+':calloc:dtype=int16', function benchmark( b ) {
b.end();
});

bench( pkg+':calloc:dtype=uint16', function benchmark( b ) {
bench( format( '%s:calloc:dtype=uint16', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -156,7 +157,7 @@ bench( pkg+':calloc:dtype=uint16', function benchmark( b ) {
b.end();
});

bench( pkg+':calloc:dtype=int8', function benchmark( b ) {
bench( format( '%s:calloc:dtype=int8', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -174,7 +175,7 @@ bench( pkg+':calloc:dtype=int8', function benchmark( b ) {
b.end();
});

bench( pkg+':calloc:dtype=uint8', function benchmark( b ) {
bench( format( '%s:calloc:dtype=uint8', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -192,7 +193,7 @@ bench( pkg+':calloc:dtype=uint8', function benchmark( b ) {
b.end();
});

bench( pkg+':calloc:dtype=uint8c', function benchmark( b ) {
bench( format( '%s:calloc:dtype=uint8c', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -210,7 +211,7 @@ bench( pkg+':calloc:dtype=uint8c', function benchmark( b ) {
b.end();
});

bench( pkg+':calloc:dtype=bool', function benchmark( b ) {
bench( format( '%s:calloc:dtype=bool', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -228,7 +229,7 @@ bench( pkg+':calloc:dtype=bool', function benchmark( b ) {
b.end();
});

bench( pkg+':calloc:dtype=complex64', function benchmark( b ) {
bench( format( '%s:calloc:dtype=complex64', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -246,7 +247,7 @@ bench( pkg+':calloc:dtype=complex64', function benchmark( b ) {
b.end();
});

bench( pkg+':calloc:dtype=complex128', function benchmark( b ) {
bench( format( '%s:calloc:dtype=complex128', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@

var bench = require( '@stdlib/bench' );
var isFunction = require( '@stdlib/assert/is-function' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
var typedarray = require( './../lib' );


// MAIN //

bench( pkg+':factory', function benchmark( b ) {
bench( format( '%s:factory', pkg ), function benchmark( b ) {
var f;
var i;
b.tic();
Expand All @@ -46,7 +47,7 @@ bench( pkg+':factory', function benchmark( b ) {
b.end();
});

bench( pkg+':factory:highWaterMark', function benchmark( b ) {
bench( format( '%s:factory:highWaterMark', pkg ), function benchmark( b ) {
var opts;
var f;
var i;
Expand Down
25 changes: 13 additions & 12 deletions lib/node_modules/@stdlib/array/pool/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' );
var isTypedArray = require( '@stdlib/assert/is-typed-array' );
var isComplexTypedArray = require( '@stdlib/assert/is-complex-typed-array' );
var isBooleanArray = require( '@stdlib/assert/is-booleanarray' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
var typedarray = require( './../lib' );

Expand All @@ -48,7 +49,7 @@ bench( pkg, function benchmark( b ) {
b.end();
});

bench( pkg+':dtype=float64', function benchmark( b ) {
bench( format( '%s:dtype=float64', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -66,7 +67,7 @@ bench( pkg+':dtype=float64', function benchmark( b ) {
b.end();
});

bench( pkg+':dtype=float32', function benchmark( b ) {
bench( format( '%s:dtype=float32', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -84,7 +85,7 @@ bench( pkg+':dtype=float32', function benchmark( b ) {
b.end();
});

bench( pkg+':dtype=int32', function benchmark( b ) {
bench( format( '%s:dtype=int32', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -102,7 +103,7 @@ bench( pkg+':dtype=int32', function benchmark( b ) {
b.end();
});

bench( pkg+':dtype=uint32', function benchmark( b ) {
bench( format( '%s:dtype=uint32', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -120,7 +121,7 @@ bench( pkg+':dtype=uint32', function benchmark( b ) {
b.end();
});

bench( pkg+':dtype=int16', function benchmark( b ) {
bench( format( '%s:dtype=int16', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -138,7 +139,7 @@ bench( pkg+':dtype=int16', function benchmark( b ) {
b.end();
});

bench( pkg+':dtype=uint16', function benchmark( b ) {
bench( format( '%s:dtype=uint16', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -156,7 +157,7 @@ bench( pkg+':dtype=uint16', function benchmark( b ) {
b.end();
});

bench( pkg+':dtype=int8', function benchmark( b ) {
bench( format( '%s:dtype=int8', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -174,7 +175,7 @@ bench( pkg+':dtype=int8', function benchmark( b ) {
b.end();
});

bench( pkg+':dtype=uint8', function benchmark( b ) {
bench( format( '%s:dtype=uint8', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -192,7 +193,7 @@ bench( pkg+':dtype=uint8', function benchmark( b ) {
b.end();
});

bench( pkg+':dtype=uint8c', function benchmark( b ) {
bench( format( '%s:dtype=uint8c', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -210,7 +211,7 @@ bench( pkg+':dtype=uint8c', function benchmark( b ) {
b.end();
});

bench( pkg+':dtype=bool', function benchmark( b ) {
bench( format( '%s:dtype=bool', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -228,7 +229,7 @@ bench( pkg+':dtype=bool', function benchmark( b ) {
b.end();
});

bench( pkg+':dtype=complex64', function benchmark( b ) {
bench( format( '%s:dtype=complex64', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -246,7 +247,7 @@ bench( pkg+':dtype=complex64', function benchmark( b ) {
b.end();
});

bench( pkg+':dtype=complex128', function benchmark( b ) {
bench( format( '%s:dtype=complex128', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var isBooleanArray = require( '@stdlib/assert/is-booleanarray' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
var typedarray = require( './../lib' );

Expand Down Expand Up @@ -89,13 +90,13 @@ function main() {
len = pow( 10, i );

f = createBenchmark( typedarray, len );
bench( pkg+':dtype=bool,len='+len, f );
bench( format( '%s:dtype=bool,len=%d', pkg, len ), f );

f = createBenchmark( typedarray.malloc, len );
bench( pkg+':malloc:dtype=bool,len='+len, f );
bench( format( '%s:malloc:dtype=bool,len=%d', pkg, len ), f );

f = createBenchmark( typedarray.calloc, len );
bench( pkg+':calloc:dtype=bool,len='+len, f );
bench( format( '%s:calloc:dtype=bool,len=%d', pkg, len ), f );
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var isComplexTypedArray = require( '@stdlib/assert/is-complex-typed-array' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
var typedarray = require( './../lib' );

Expand Down Expand Up @@ -89,13 +90,12 @@ function main() {
len = pow( 10, i );

f = createBenchmark( typedarray, len );
bench( pkg+':dtype=complex128,len='+len, f );

bench( format( '%s:dtype=complex128,len=%d', pkg, len ), f );
f = createBenchmark( typedarray.malloc, len );
bench( pkg+':malloc:dtype=complex128,len='+len, f );
bench( format( '%s:malloc:dtype=complex128,len=%d', pkg, len ), f );

f = createBenchmark( typedarray.calloc, len );
bench( pkg+':calloc:dtype=complex128,len='+len, f );
bench( format( '%s:calloc:dtype=complex128,len=%d', pkg, len ), f );
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var isComplexTypedArray = require( '@stdlib/assert/is-complex-typed-array' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
var typedarray = require( './../lib' );

Expand Down Expand Up @@ -89,13 +90,13 @@ function main() {
len = pow( 10, i );

f = createBenchmark( typedarray, len );
bench( pkg+':dtype=complex64,len='+len, f );
bench( format( '%s:dtype=complex64,len=%d', pkg, len ), f );

f = createBenchmark( typedarray.malloc, len );
bench( pkg+':malloc:dtype=complex64,len='+len, f );
bench( format( '%s:malloc:dtype=complex64,len=%d', pkg, len ), f );

f = createBenchmark( typedarray.calloc, len );
bench( pkg+':calloc:dtype=complex64,len='+len, f );
bench( format( '%s:calloc:dtype=complex64,len=%d', pkg, len ), f );
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var isTypedArray = require( '@stdlib/assert/is-typed-array' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
var typedarray = require( './../lib' );

Expand Down Expand Up @@ -89,13 +90,13 @@ function main() {
len = pow( 10, i );

f = createBenchmark( typedarray, len );
bench( pkg+':dtype=float32,len='+len, f );
bench( format( '%s:dtype=float32,len=%d', pkg, len ), f );

f = createBenchmark( typedarray.malloc, len );
bench( pkg+':malloc:dtype=float32,len='+len, f );
bench( format( '%s:malloc:dtype=float32,len=%d', pkg, len ), f );

f = createBenchmark( typedarray.calloc, len );
bench( pkg+':calloc:dtype=float32,len='+len, f );
bench( format( '%s:calloc:dtype=float32,len=%d', pkg, len ), f );
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var isTypedArray = require( '@stdlib/assert/is-typed-array' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
var typedarray = require( './../lib' );

Expand Down Expand Up @@ -89,13 +90,13 @@ function main() {
len = pow( 10, i );

f = createBenchmark( typedarray, len );
bench( pkg+':dtype=float64,len='+len, f );
bench( format( '%s:dtype=float64,len=%d', pkg, len ), f );

f = createBenchmark( typedarray.malloc, len );
bench( pkg+':malloc:dtype=float64,len='+len, f );
bench( format( '%s:malloc:dtype=float64,len=%d', pkg, len ), f );

f = createBenchmark( typedarray.calloc, len );
bench( pkg+':calloc:dtype=float64,len='+len, f );
bench( format( '%s:calloc:dtype=float64,len=%d', pkg, len ), f );
}
}

Expand Down
Loading