Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Feb 15, 2024
1 parent 5fcf813 commit 9aad113
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
14 changes: 11 additions & 3 deletions to-fancy/benchmark/benchmark.get.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,21 @@

var bench = require( '@stdlib/bench' );
var isCollection = require( '@stdlib/assert/is-collection' );
var hasProxySupport = require( '@stdlib/assert/has-proxy-support' );
var isnan = require( '@stdlib/assert/is-nan' ).isPrimitive;
var zeroTo = require( './../../zero-to' );
var Slice = require( '@stdlib/slice/ctor' );
var pkg = require( './../package.json' ).name;
var array2fancy = require( './../lib' );


// VARIABLES //

var opts = {
'skip': !hasProxySupport()
};


// MAIN //

bench( pkg+'::get,positive_integers:len=1', function benchmark( b ) {
Expand All @@ -53,7 +61,7 @@ bench( pkg+'::get,positive_integers:len=1', function benchmark( b ) {
b.end();
});

bench( pkg+'::get,negative_integers:len=1', function benchmark( b ) {
bench( pkg+'::get,negative_integers:len=1', opts, function benchmark( b ) {
var x;
var v;
var i;
Expand All @@ -75,7 +83,7 @@ bench( pkg+'::get,negative_integers:len=1', function benchmark( b ) {
b.end();
});

bench( pkg+'::get,slice:len=1', function benchmark( b ) {
bench( pkg+'::get,slice:len=1', opts, function benchmark( b ) {
var values;
var x;
var v;
Expand Down Expand Up @@ -103,7 +111,7 @@ bench( pkg+'::get,slice:len=1', function benchmark( b ) {
b.end();
});

bench( pkg+'::get,subsequence:len=1', function benchmark( b ) {
bench( pkg+'::get,subsequence:len=1', opts, function benchmark( b ) {
var values;
var x;
var v;
Expand Down
14 changes: 11 additions & 3 deletions to-fancy/benchmark/benchmark.set.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,20 @@

var bench = require( '@stdlib/bench' );
var isnan = require( '@stdlib/assert/is-nan' ).isPrimitive;
var hasProxySupport = require( '@stdlib/assert/has-proxy-support' );
var zeroTo = require( './../../zero-to' );
var Slice = require( '@stdlib/slice/ctor' );
var pkg = require( './../package.json' ).name;
var array2fancy = require( './../lib' );


// VARIABLES //

var opts = {
'skip': !hasProxySupport()
};


// MAIN //

bench( pkg+'::set,positive_integers:len=1', function benchmark( b ) {
Expand Down Expand Up @@ -57,7 +65,7 @@ bench( pkg+'::set,positive_integers:len=1', function benchmark( b ) {
b.end();
});

bench( pkg+'::set,negative_integers:len=1', function benchmark( b ) {
bench( pkg+'::set,negative_integers:len=1', opts, function benchmark( b ) {
var base;
var x;
var v;
Expand All @@ -84,7 +92,7 @@ bench( pkg+'::set,negative_integers:len=1', function benchmark( b ) {
b.end();
});

bench( pkg+'::set,slice:len=1', function benchmark( b ) {
bench( pkg+'::set,slice:len=1', opts, function benchmark( b ) {
var values;
var base;
var x;
Expand Down Expand Up @@ -117,7 +125,7 @@ bench( pkg+'::set,slice:len=1', function benchmark( b ) {
b.end();
});

bench( pkg+'::set,subsequence:len=1', function benchmark( b ) {
bench( pkg+'::set,subsequence:len=1', opts, function benchmark( b ) {
var values;
var base;
var x;
Expand Down

0 comments on commit 9aad113

Please sign in to comment.