Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
var bench = require( '@stdlib/bench' );
var Float32Array = require( '@stdlib/array/float32' );
var ITERATOR_SYMBOL = require( '@stdlib/symbol/iterator' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
var Float32ArrayFE = require( './../lib' );

Expand All @@ -36,7 +37,7 @@ var opts = {

// MAIN //

bench( pkg+'::typed_array:from', function benchmark( b ) {
bench( format( '%s::typed_array:from', pkg ), function benchmark( b ) {
var buf;
var arr;
var i;
Expand All @@ -58,7 +59,7 @@ bench( pkg+'::typed_array:from', function benchmark( b ) {
b.end();
});

bench( pkg+'::typed_array:from:len=5', function benchmark( b ) {
bench( format( '%s::typed_array:from:len=5', pkg ), function benchmark( b ) {
var buf;
var arr;
var i;
Expand All @@ -80,7 +81,7 @@ bench( pkg+'::typed_array:from:len=5', function benchmark( b ) {
b.end();
});

bench( pkg+'::typed_array,clbk:from:len=5', function benchmark( b ) {
bench( format( '%s::typed_array,clbk:from:len=5', pkg ), function benchmark( b ) {
var buf;
var arr;
var i;
Expand All @@ -106,7 +107,7 @@ bench( pkg+'::typed_array,clbk:from:len=5', function benchmark( b ) {
}
});

bench( pkg+'::array:from', function benchmark( b ) {
bench( format( '%s::array:from', pkg ), function benchmark( b ) {
var buf;
var arr;
var i;
Expand All @@ -128,7 +129,7 @@ bench( pkg+'::array:from', function benchmark( b ) {
b.end();
});

bench( pkg+'::array:from:len=5', function benchmark( b ) {
bench( format( '%s::array:from:len=5', pkg ), function benchmark( b ) {
var buf;
var arr;
var i;
Expand All @@ -150,7 +151,7 @@ bench( pkg+'::array:from:len=5', function benchmark( b ) {
b.end();
});

bench( pkg+'::array,clbk:from:len=5', function benchmark( b ) {
bench( format( '%s::array,clbk:from:len=5', pkg ), function benchmark( b ) {
var buf;
var arr;
var i;
Expand All @@ -176,7 +177,7 @@ bench( pkg+'::array,clbk:from:len=5', function benchmark( b ) {
}
});

bench( pkg+'::iterable:from', opts, function benchmark( b ) {
bench( format( '%s::iterable:from', pkg ), opts, function benchmark( b ) {
var arr;
var i;

Expand Down Expand Up @@ -213,7 +214,7 @@ bench( pkg+'::iterable:from', opts, function benchmark( b ) {
}
});

bench( pkg+'::iterable:from:len=5', opts, function benchmark( b ) {
bench( format( '%s::iterable:from:len=5', pkg ), opts, function benchmark( b ) {
var arr;
var i;

Expand Down Expand Up @@ -259,7 +260,7 @@ bench( pkg+'::iterable:from:len=5', opts, function benchmark( b ) {
}
});

bench( pkg+'::iterable,clbk:from:len=5', opts, function benchmark( b ) {
bench( format( '%s::iterable,clbk:from:len=5', pkg ), opts, function benchmark( b ) {
var arr;
var i;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@

var bench = require( '@stdlib/bench' );
var isNumber = require( '@stdlib/assert/is-number' ).isPrimitive;
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
var Float32ArrayFE = require( './../lib' );


// MAIN //

bench( pkg+':get:endianness=little-endian', function benchmark( b ) {
bench( format( '%s::get:endianness=little-endian', pkg ), function benchmark( b ) {
var arr;
var N;
var v;
Expand Down Expand Up @@ -56,7 +57,7 @@ bench( pkg+':get:endianness=little-endian', function benchmark( b ) {
b.end();
});

bench( pkg+':get:endianness=big-endian', function benchmark( b ) {
bench( format( '%s:get:endianness=big-endian', pkg ), function benchmark( b ) {
var arr;
var N;
var v;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var Float32Array = require( '@stdlib/array/float32' );
var isArrayBuffer = require( '@stdlib/assert/is-arraybuffer' );
var isNonNegativeInteger = require( '@stdlib/assert/is-nonnegative-integer' ).isPrimitive;
var ITERATOR_SYMBOL = require( '@stdlib/symbol/iterator' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
var Float32ArrayFE = require( './../lib' );

Expand Down Expand Up @@ -66,7 +67,7 @@ function createIterable() {

// MAIN //

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

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

bench( pkg+'::instantiation,no_new:endianness=little-endian', function benchmark( b ) {
bench( format( '%s::instantiation,no_new:endianness=little-endian', pkg ), function benchmark( b ) {
var ctor;
var arr;
var i;
Expand All @@ -124,7 +125,7 @@ bench( pkg+'::instantiation,no_new:endianness=little-endian', function benchmark
b.end();
});

bench( pkg+'::instantiation,no_new:endianness=big-endian', function benchmark( b ) {
bench( format( '%s::instantiation,no_new:endianness=big-endian', pkg ), function benchmark( b ) {
var ctor;
var arr;
var i;
Expand All @@ -146,7 +147,7 @@ bench( pkg+'::instantiation,no_new:endianness=big-endian', function benchmark( b
b.end();
});

bench( pkg+'::instantiation,length:endianness=little-endian', function benchmark( b ) {
bench( format( '%s::instantiation,length:endianness=little-endian', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -164,7 +165,7 @@ bench( pkg+'::instantiation,length:endianness=little-endian', function benchmark
b.end();
});

bench( pkg+'::instantiation,length:endianness=big-endian', function benchmark( b ) {
bench( format( '%s::instantiation,length:endianness=big-endian', pkg ), function benchmark( b ) {
var arr;
var i;
b.tic();
Expand All @@ -182,7 +183,7 @@ bench( pkg+'::instantiation,length:endianness=big-endian', function benchmark( b
b.end();
});

bench( pkg+'::instantiation,typed_array:endianness=little-endian', function benchmark( b ) {
bench( format( '%s::instantiation,typed_array:endianness=little-endian', pkg ), function benchmark( b ) {
var buf;
var arr;
var i;
Expand All @@ -204,7 +205,7 @@ bench( pkg+'::instantiation,typed_array:endianness=little-endian', function benc
b.end();
});

bench( pkg+'::instantiation,typed_array:endianness=big-endian', function benchmark( b ) {
bench( format( '%s::instantiation,typed_array:endianness=big-endian', pkg ), function benchmark( b ) {
var buf;
var arr;
var i;
Expand All @@ -226,7 +227,7 @@ bench( pkg+'::instantiation,typed_array:endianness=big-endian', function benchma
b.end();
});

bench( pkg+'::instantiation,array:endianness=little-endian', function benchmark( b ) {
bench( format( '%s::instantiation,array:endianness=little-endian', pkg ), function benchmark( b ) {
var buf;
var arr;
var i;
Expand All @@ -248,7 +249,7 @@ bench( pkg+'::instantiation,array:endianness=little-endian', function benchmark(
b.end();
});

bench( pkg+'::instantiation,array:endianness=big-endian', function benchmark( b ) {
bench( format( '%s::instantiation,array:endianness=big-endian', pkg ), function benchmark( b ) {
var buf;
var arr;
var i;
Expand All @@ -270,7 +271,7 @@ bench( pkg+'::instantiation,array:endianness=big-endian', function benchmark( b
b.end();
});

bench( pkg+'::instantiation,iterable:endianness=little-endian', opts, function benchmark( b ) {
bench( format( '%s::instantiation,iterable:endianness=little-endian', pkg ), opts, function benchmark( b ) {
var arr;
var i;

Expand All @@ -289,7 +290,7 @@ bench( pkg+'::instantiation,iterable:endianness=little-endian', opts, function b
b.end();
});

bench( pkg+'::instantiation,iterable:endianness=big-endian', opts, function benchmark( b ) {
bench( format( '%s::instantiation,iterable:endianness=big-endian', pkg ), opts, function benchmark( b ) {
var arr;
var i;

Expand All @@ -308,7 +309,7 @@ bench( pkg+'::instantiation,iterable:endianness=big-endian', opts, function benc
b.end();
});

bench( pkg+'::instantiation,arraybuffer:endianness=little-endian', function benchmark( b ) {
bench( format( '%s::instantiation,arraybuffer:endianness=little-endian', pkg ), function benchmark( b ) {
var buf;
var arr;
var i;
Expand All @@ -330,7 +331,7 @@ bench( pkg+'::instantiation,arraybuffer:endianness=little-endian', function benc
b.end();
});

bench( pkg+'::instantiation,arraybuffer:endianness=big-endian', function benchmark( b ) {
bench( format( '%s::instantiation,arraybuffer:endianness=big-endian', pkg ), function benchmark( b ) {
var buf;
var arr;
var i;
Expand All @@ -352,7 +353,7 @@ bench( pkg+'::instantiation,arraybuffer:endianness=big-endian', function benchma
b.end();
});

bench( pkg+'::instantiation,arraybuffer,byte_offset:endianness=little-endian', function benchmark( b ) {
bench( format( '%s::instantiation,arraybuffer,byte_offset:endianness=little-endian', pkg ), function benchmark( b ) {
var buf;
var arr;
var i;
Expand All @@ -374,7 +375,7 @@ bench( pkg+'::instantiation,arraybuffer,byte_offset:endianness=little-endian', f
b.end();
});

bench( pkg+'::instantiation,arraybuffer,byte_offset:endianness=big-endian', function benchmark( b ) {
bench( format( '%s::instantiation,arraybuffer,byte_offset:endianness=big-endian', pkg ), function benchmark( b ) {
var buf;
var arr;
var i;
Expand All @@ -396,7 +397,7 @@ bench( pkg+'::instantiation,arraybuffer,byte_offset:endianness=big-endian', func
b.end();
});

bench( pkg+'::instantiation,arraybuffer,byte_offset,length:endianness=little-endian', function benchmark( b ) {
bench( format( '%s::instantiation,arraybuffer,byte_offset,length:endianness=little-endian', pkg ), function benchmark( b ) {
var buf;
var arr;
var i;
Expand All @@ -418,7 +419,7 @@ bench( pkg+'::instantiation,arraybuffer,byte_offset,length:endianness=little-end
b.end();
});

bench( pkg+'::instantiation,arraybuffer,byte_offset,length:endianness=big-endian', function benchmark( b ) {
bench( format( '%s::instantiation,arraybuffer,byte_offset,length:endianness=big-endian', pkg ), function benchmark( b ) {
var buf;
var arr;
var i;
Expand All @@ -440,7 +441,7 @@ bench( pkg+'::instantiation,arraybuffer,byte_offset,length:endianness=big-endian
b.end();
});

bench( pkg+'::get:buffer', function benchmark( b ) {
bench( format( '%s::get:buffer', pkg ), function benchmark( b ) {
var arr;
var v;
var i;
Expand All @@ -463,7 +464,7 @@ bench( pkg+'::get:buffer', function benchmark( b ) {
b.end();
});

bench( pkg+'::get:byteLength', function benchmark( b ) {
bench( format( '%s::get:byteLength', pkg ), function benchmark( b ) {
var arr;
var v;
var i;
Expand All @@ -486,7 +487,7 @@ bench( pkg+'::get:byteLength', function benchmark( b ) {
b.end();
});

bench( pkg+'::get:byteOffset', function benchmark( b ) {
bench( format( '%s::get:byteOffset', pkg ), function benchmark( b ) {
var arr;
var v;
var i;
Expand All @@ -509,7 +510,7 @@ bench( pkg+'::get:byteOffset', function benchmark( b ) {
b.end();
});

bench( pkg+'::get:length', function benchmark( b ) {
bench( format( '%s::get:length', pkg ), function benchmark( b ) {
var arr;
var v;
var i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@
// MODULES //

var bench = require( '@stdlib/bench' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
var Float32ArrayFE = require( './../lib' );


// MAIN //

bench( pkg+':of', function benchmark( b ) {
bench( format( '%s:of', pkg ), function benchmark( b ) {
var arr;
var i;

Expand All @@ -46,7 +47,7 @@ bench( pkg+':of', function benchmark( b ) {
b.end();
});

bench( pkg+':len=5', function benchmark( b ) {
bench( format( '%s:len=5', pkg ), function benchmark( b ) {
var buf;
var arr;
var i;
Expand Down
Loading