New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

benchmark

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

benchmark - npm Package Compare versions

Comparing version 0.1.344 to 0.1.345

6

._benchmark.js

@@ -1,4 +0,4 @@

Mac OS X  2��ATTRF���%�%com.macromates.caret{
column = 23;
line = 1664;
Mac OS X  2��ATTRV3���%�%com.macromates.caret{
column = 16;
line = 1665;
}

@@ -1,4 +0,4 @@

Mac OS X  2��ATTRF���"�"com.macromates.caret{
column = 21;
line = 2;
Mac OS X  2��ATTRV3���"�"com.macromates.caret{
column = 14;
line = 9;
}

@@ -253,2 +253,3 @@ /*!

} catch(e) {
// use non-element to avoid issues with libs that augment them
timerNS = new timerApplet.Packages.nano;

@@ -291,3 +292,3 @@ }

start,
count = 80,
count = 30,
divisor = 1e3,

@@ -309,4 +310,4 @@ sample = [];

else {
start = +new timerNS;
while(!(measured = +new timerNS - start));
start = new timerNS;
while(!(measured = new timerNS - start));
}

@@ -322,7 +323,2 @@ // check for broken timers (nanoTime may have issues)

}
// trim mean by 20%
if ((getMean(sample) / divisor) <= resLimit) {
sample.sort();
sample = sample.slice(16, -16);
}
// convert to seconds

@@ -332,21 +328,20 @@ return getMean(sample) / divisor;

// detect nanosecond support:
// Java System.nanoTime()
// detect nanosecond support from an applet
each(window.document && document.applets || [], function(applet) {
timerApplet || (timerApplet = 'nanoTime' in applet && applet);
timerNS || (timerNS = timerApplet);
});
// or exposed Java API
// http://download.oracle.com/javase/6/docs/api/java/lang/System.html#nanoTime()
try { timerNS = java.lang.System; } catch(e) { }
try {
timerNS = java.lang.System;
} catch(e) {
each(window.document && document.applets || [], function(applet) {
try {
// use non-element to avoid issues with libs that augment them
timerNS || (timerNS = 'nanoTime' in applet && (timerApplet = applet));
} catch(e) { }
});
}
try {
// check type in case Safari returns an object instead of a number
timerNS = typeof timerNS.nanoTime() == 'number' && timerNS;
timerRes = getRes('ns');
timerNS = timerRes <= resLimit && (timerUnit = 'ns', timerNS);
} catch(e) { }
timerNS = timerRes < resLimit && (timerUnit = 'ns', timerNS);
} catch(e) {
timerNS = null;
}

@@ -357,6 +352,10 @@ // detect microsecond support:

if (!timerNS) {
// remove unused applet
if (timerApplet) {
timerApplet.parentNode.removeChild(timerApplet);
}
try {
timerNS = new (window.chrome || window.chromium).Interval;
timerRes = getRes('us');
timerNS = timerRes <= resLimit && (timerUnit = 'us', timerNS);
timerNS = timerRes < resLimit && (timerUnit = 'us', timerNS);
} catch(e) { }

@@ -405,3 +404,3 @@ }

// resolve time to achieve a percent uncertainty of 1%
proto.MIN_TIME || (proto.MIN_TIME = timerRes / 2 / 0.01);
proto.MIN_TIME || (proto.MIN_TIME = max(timerRes / 2 / 0.01, 0.05));
return clock.apply(null, arguments);

@@ -1326,3 +1325,3 @@ }

elapsed = (now - times.start) / 1e3,
maxedOut = elapsed >= me.MAX_TIME_ELAPSED,
maxedOut = elapsed > me.MAX_TIME_ELAPSED,
size = sample.push(clone.times.period),

@@ -1514,4 +1513,14 @@ varOf = function(sum, x) { return sum + pow(x - mean, 2); };

product = reduce(product.split(','), function(product, guess) {
return product || (product = RegExp(guess + '[^ ();-]*', 'i').exec(ua)) &&
String(product).replace(RegExp(guess = /\w+/.exec(guess), 'i'), guess);
if (!product && (product = RegExp(guess + '[^ ();-]*', 'i').exec(ua))) {
// correct character case and split by forward slash
if ((product = String(product).replace(RegExp(guess = /\w+/.exec(guess), 'i'), guess).split('/'))[1]) {
if (/[\d.]+/.test(product[0])) {
version = version || product[1];
} else {
product[0] += ' ' + product[1];
}
}
product = format(product[0].replace(/([a-z])(\d)/i, '$1 $2').split('-')[0]);
}
return product;
});

@@ -1539,2 +1548,6 @@

// detect simulator
if (/Simulator/i.exec(ua)) {
product = (product ? product + ' ' : '') + 'Simulator';
}
// detect non Firefox Gecko/Safari WebKit based browsers

@@ -1555,14 +1568,2 @@ if (ua && (data = /^(?:Firefox|Safari|null)/.exec(name))) {

}
// cleanup product
if (product) {
product = (data = String(product).split('/'))[0];
if (data = data[1]) {
if (/\d+/.test(product)) {
version = version || data;
} else {
product += ' ' + data;
}
}
product = format(product.replace(/([a-z])(\d)/i, '$1 $2').split('-')[0]);
}
// detect server-side js

@@ -1676,3 +1677,3 @@ if (me && isHostType(me, 'global')) {

*/
'version': '0.1.344',
'version': '0.1.345',

@@ -1679,0 +1680,0 @@ // generic Array#forEach

@@ -152,3 +152,3 @@ # Benchmark.js API documentation

<!-- div -->
### <a id="Benchmark.platform" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1480" title="View in source">`Benchmark.platform`</a>
### <a id="Benchmark.platform" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1479" title="View in source">`Benchmark.platform`</a>
*(Object)*: Platform object containing browser name, version, and operating system.

@@ -159,3 +159,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.version" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1665" title="View in source">`Benchmark.version`</a>
### <a id="Benchmark.version" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1666" title="View in source">`Benchmark.version`</a>
*(String)*: The version number.

@@ -166,3 +166,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.each" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L478" title="View in source">`Benchmark.each(array, callback)`</a>
### <a id="Benchmark.each" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L477" title="View in source">`Benchmark.each(array, callback)`</a>
A generic bare-bones `Array#forEach` solution.

@@ -181,3 +181,3 @@ Callbacks may terminate the loop by explicitly returning `false`.

<!-- div -->
### <a id="Benchmark.extend" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L498" title="View in source">`Benchmark.extend(destination [, source={}])`</a>
### <a id="Benchmark.extend" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L497" title="View in source">`Benchmark.extend(destination [, source={}])`</a>
Copies own/inherited properties of a source object to the destination object.

@@ -195,3 +195,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.filter" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L529" title="View in source">`Benchmark.filter(array, callback)`</a>
### <a id="Benchmark.filter" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L528" title="View in source">`Benchmark.filter(array, callback)`</a>
A generic bare-bones `Array#filter` solution.

@@ -224,3 +224,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.forIn" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L559" title="View in source">`Benchmark.forIn(object, callback)`</a>
### <a id="Benchmark.forIn" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L558" title="View in source">`Benchmark.forIn(object, callback)`</a>
A generic bare-bones for-in solution for an object's own properties.

@@ -238,3 +238,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.formatNumber" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L575" title="View in source">`Benchmark.formatNumber(number)`</a>
### <a id="Benchmark.formatNumber" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L574" title="View in source">`Benchmark.formatNumber(number)`</a>
Converts a number to a more readable comma-separated string representation.

@@ -251,3 +251,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.hasKey" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L593" title="View in source">`Benchmark.hasKey(object, key)`</a>
### <a id="Benchmark.hasKey" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L592" title="View in source">`Benchmark.hasKey(object, key)`</a>
Checks if an object has the specified key as a direct property.

@@ -265,3 +265,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.indexOf" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L622" title="View in source">`Benchmark.indexOf(array, value)`</a>
### <a id="Benchmark.indexOf" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L621" title="View in source">`Benchmark.indexOf(array, value)`</a>
A generic bare-bones `Array#indexOf` solution.

@@ -279,3 +279,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.interpolate" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L768" title="View in source">`Benchmark.interpolate(string, object)`</a>
### <a id="Benchmark.interpolate" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L767" title="View in source">`Benchmark.interpolate(string, object)`</a>
Modify a string by replacing named tokens with matching object property values.

@@ -299,3 +299,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.invoke" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L671" title="View in source">`Benchmark.invoke(benches, name [, arg1, arg2, ...])`</a>
### <a id="Benchmark.invoke" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L670" title="View in source">`Benchmark.invoke(benches, name [, arg1, arg2, ...])`</a>
Invokes a method on all items in an array.

@@ -343,3 +343,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.isArray" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L783" title="View in source">`Benchmark.isArray(value)`</a>
### <a id="Benchmark.isArray" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L782" title="View in source">`Benchmark.isArray(value)`</a>
Determines if the given value is an array.

@@ -356,3 +356,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.isClassOf" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L795" title="View in source">`Benchmark.isClassOf(object, name)`</a>
### <a id="Benchmark.isClassOf" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L794" title="View in source">`Benchmark.isClassOf(object, name)`</a>
Checks if an object is of the specified class.

@@ -370,3 +370,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.isHostType" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L809" title="View in source">`Benchmark.isHostType(object, property)`</a>
### <a id="Benchmark.isHostType" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L808" title="View in source">`Benchmark.isHostType(object, property)`</a>
Host objects can return type values that are different from their actual

@@ -386,3 +386,3 @@ data type. The objects we are concerned with usually return non-primitive

<!-- div -->
### <a id="Benchmark.join" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L823" title="View in source">`Benchmark.join(object [, separator1=',', separator2=': '])`</a>
### <a id="Benchmark.join" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L822" title="View in source">`Benchmark.join(object [, separator1=',', separator2=': '])`</a>
Creates a string of joined array values or object key-value pairs.

@@ -401,3 +401,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.map" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L845" title="View in source">`Benchmark.map(array, callback)`</a>
### <a id="Benchmark.map" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L844" title="View in source">`Benchmark.map(array, callback)`</a>
A generic bare-bones `Array#map` solution.

@@ -415,3 +415,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.noop" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L857" title="View in source">`Benchmark.noop`</a>
### <a id="Benchmark.noop" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L856" title="View in source">`Benchmark.noop`</a>
A no-operation function.

@@ -422,3 +422,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.pluck" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L869" title="View in source">`Benchmark.pluck(array, property)`</a>
### <a id="Benchmark.pluck" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L868" title="View in source">`Benchmark.pluck(array, property)`</a>
Retrieves the value of a specified property from all items in an array.

@@ -436,3 +436,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.reduce" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L884" title="View in source">`Benchmark.reduce(array, callback, accumulator)`</a>
### <a id="Benchmark.reduce" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L883" title="View in source">`Benchmark.reduce(array, callback, accumulator)`</a>
A generic bare-bones `Array#reduce` solution.

@@ -451,3 +451,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.trim" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L898" title="View in source">`Benchmark.trim(string)`</a>
### <a id="Benchmark.trim" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L897" title="View in source">`Benchmark.trim(string)`</a>
A generic bare-bones `String#trim` solution.

@@ -468,3 +468,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:CYCLE_DELAY" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1734" title="View in source">`Benchmark#CYCLE_DELAY`</a>
### <a id="Benchmark:CYCLE_DELAY" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1735" title="View in source">`Benchmark#CYCLE_DELAY`</a>
*(Number)*: The delay between test cycles *(secs)*.

@@ -475,3 +475,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:DEFAULT_ASYNC" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1741" title="View in source">`Benchmark#DEFAULT_ASYNC`</a>
### <a id="Benchmark:DEFAULT_ASYNC" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1742" title="View in source">`Benchmark#DEFAULT_ASYNC`</a>
*(Boolean)*: A flag to indicate methods will run asynchronously by default.

@@ -482,3 +482,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:INIT_RUN_COUNT" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1748" title="View in source">`Benchmark#INIT_RUN_COUNT`</a>
### <a id="Benchmark:INIT_RUN_COUNT" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1749" title="View in source">`Benchmark#INIT_RUN_COUNT`</a>
*(Number)*: The default number of times to execute a test on a benchmark's first cycle.

@@ -489,3 +489,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:MAX_TIME_ELAPSED" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1755" title="View in source">`Benchmark#MAX_TIME_ELAPSED`</a>
### <a id="Benchmark:MAX_TIME_ELAPSED" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1756" title="View in source">`Benchmark#MAX_TIME_ELAPSED`</a>
*(Number)*: The maximum time a benchmark is allowed to run before finishing *(secs)*.

@@ -496,3 +496,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:MIN_SAMPLE_SIZE" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1762" title="View in source">`Benchmark#MIN_SAMPLE_SIZE`</a>
### <a id="Benchmark:MIN_SAMPLE_SIZE" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1763" title="View in source">`Benchmark#MIN_SAMPLE_SIZE`</a>
*(Number)*: The minimum sample size required to perform statistical analysis.

@@ -503,3 +503,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:MIN_TIME" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1769" title="View in source">`Benchmark#MIN_TIME`</a>
### <a id="Benchmark:MIN_TIME" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1770" title="View in source">`Benchmark#MIN_TIME`</a>
*(Number)*: The time needed to reduce the percent uncertainty of measurement to `1`% *(secs)*.

@@ -510,3 +510,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:aborted" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1811" title="View in source">`Benchmark#aborted`</a>
### <a id="Benchmark:aborted" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1812" title="View in source">`Benchmark#aborted`</a>
*(Boolean)*: A flag to indicate if the benchmark is aborted.

@@ -517,3 +517,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:count" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1776" title="View in source">`Benchmark#count`</a>
### <a id="Benchmark:count" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1777" title="View in source">`Benchmark#count`</a>
*(Number)*: The number of times a test was executed.

@@ -524,3 +524,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:created" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1783" title="View in source">`Benchmark#created`</a>
### <a id="Benchmark:created" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1784" title="View in source">`Benchmark#created`</a>
*(Number)*: A timestamp of when the benchmark was created.

@@ -531,3 +531,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:cycles" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1790" title="View in source">`Benchmark#cycles`</a>
### <a id="Benchmark:cycles" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1791" title="View in source">`Benchmark#cycles`</a>
*(Number)*: The number of cycles performed while benchmarking.

@@ -538,3 +538,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:error" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1797" title="View in source">`Benchmark#error`</a>
### <a id="Benchmark:error" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1798" title="View in source">`Benchmark#error`</a>
*(Object|Null)*: The error object if the test failed.

@@ -545,3 +545,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:hz" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1804" title="View in source">`Benchmark#hz`</a>
### <a id="Benchmark:hz" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1805" title="View in source">`Benchmark#hz`</a>
*(Number)*: The number of executions per second.

@@ -552,3 +552,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:running" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1818" title="View in source">`Benchmark#running`</a>
### <a id="Benchmark:running" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1819" title="View in source">`Benchmark#running`</a>
*(Boolean)*: A flag to indicate if the benchmark is running.

@@ -559,3 +559,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:abort" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1136" title="View in source">`Benchmark#abort`</a>
### <a id="Benchmark:abort" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1135" title="View in source">`Benchmark#abort`</a>
Aborts the benchmark without recording times.

@@ -569,3 +569,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:addListener" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1047" title="View in source">`Benchmark#addListener(type, listener)`</a>
### <a id="Benchmark:addListener" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1046" title="View in source">`Benchmark#addListener(type, listener)`</a>
Registers a single listener of a specified event type.

@@ -590,3 +590,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:clone" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1164" title="View in source">`Benchmark#clone(options)`</a>
### <a id="Benchmark:clone" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1163" title="View in source">`Benchmark#clone(options)`</a>
Creates a new benchmark using the same test and options.

@@ -608,3 +608,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:compare" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1182" title="View in source">`Benchmark#compare(other)`</a>
### <a id="Benchmark:compare" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1181" title="View in source">`Benchmark#compare(other)`</a>
Determines if the benchmark's period is smaller than another.

@@ -621,3 +621,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:emit" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1062" title="View in source">`Benchmark#emit(type)`</a>
### <a id="Benchmark:emit" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1061" title="View in source">`Benchmark#emit(type)`</a>
Executes all registered listeners of a specified event type.

@@ -631,3 +631,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:on" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1824" title="View in source">`Benchmark#on`</a>
### <a id="Benchmark:on" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1825" title="View in source">`Benchmark#on`</a>
Alias of [`Benchmark#addListener`](#Benchmark:addListener).

@@ -638,3 +638,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:removeAllListeners" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1119" title="View in source">`Benchmark#removeAllListeners(type)`</a>
### <a id="Benchmark:removeAllListeners" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1118" title="View in source">`Benchmark#removeAllListeners(type)`</a>
Unregisters all listeners of a specified event type.

@@ -658,3 +658,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:removeListener" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1092" title="View in source">`Benchmark#removeListener(type, listener)`</a>
### <a id="Benchmark:removeListener" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1091" title="View in source">`Benchmark#removeListener(type, listener)`</a>
Unregisters a single listener of a specified event type.

@@ -679,3 +679,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:reset" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1202" title="View in source">`Benchmark#reset`</a>
### <a id="Benchmark:reset" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1201" title="View in source">`Benchmark#reset`</a>
Reset properties and abort if running.

@@ -689,3 +689,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:run" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1386" title="View in source">`Benchmark#run([async=false])`</a>
### <a id="Benchmark:run" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1385" title="View in source">`Benchmark#run([async=false])`</a>
Runs the benchmark.

@@ -702,3 +702,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:toString" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1244" title="View in source">`Benchmark#toString`</a>
### <a id="Benchmark:toString" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1243" title="View in source">`Benchmark#toString`</a>
Displays relevant benchmark information when coerced to a string.

@@ -712,3 +712,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:stats" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1831" title="View in source">`Benchmark#stats`</a>
### <a id="Benchmark:stats" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1832" title="View in source">`Benchmark#stats`</a>
*(Object)*: An object of stats including mean, margin or error, and standard deviation.

@@ -719,3 +719,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:stats.ME" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1838" title="View in source">`Benchmark#stats.ME`</a>
### <a id="Benchmark:stats.ME" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1839" title="View in source">`Benchmark#stats.ME`</a>
*(Number)*: The margin of error.

@@ -726,3 +726,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:stats.RME" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1845" title="View in source">`Benchmark#stats.RME`</a>
### <a id="Benchmark:stats.RME" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1846" title="View in source">`Benchmark#stats.RME`</a>
*(Number)*: The relative margin of error *(expressed as a percentage of the mean)*.

@@ -733,3 +733,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:stats.SEM" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1852" title="View in source">`Benchmark#stats.SEM`</a>
### <a id="Benchmark:stats.SEM" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1853" title="View in source">`Benchmark#stats.SEM`</a>
*(Number)*: The standard error of the mean.

@@ -740,3 +740,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:stats.deviation" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1859" title="View in source">`Benchmark#stats.deviation`</a>
### <a id="Benchmark:stats.deviation" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1860" title="View in source">`Benchmark#stats.deviation`</a>
*(Number)*: The sample standard deviation.

@@ -747,3 +747,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:stats.mean" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1866" title="View in source">`Benchmark#stats.mean`</a>
### <a id="Benchmark:stats.mean" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1867" title="View in source">`Benchmark#stats.mean`</a>
*(Number)*: The sample arithmetic mean.

@@ -754,3 +754,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:stats.size" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1873" title="View in source">`Benchmark#stats.size`</a>
### <a id="Benchmark:stats.size" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1874" title="View in source">`Benchmark#stats.size`</a>
*(Number)*: The sample size.

@@ -761,3 +761,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:stats.variance" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1880" title="View in source">`Benchmark#stats.variance`</a>
### <a id="Benchmark:stats.variance" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1881" title="View in source">`Benchmark#stats.variance`</a>
*(Number)*: The sample variance.

@@ -768,3 +768,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:times" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1888" title="View in source">`Benchmark#times`</a>
### <a id="Benchmark:times" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1889" title="View in source">`Benchmark#times`</a>
*(Object)*: An object of timing data including cycle, elapsed, period, start, and stop.

@@ -775,3 +775,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:times.cycle" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1895" title="View in source">`Benchmark#times.cycle`</a>
### <a id="Benchmark:times.cycle" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1896" title="View in source">`Benchmark#times.cycle`</a>
*(Number)*: The time taken to complete the last cycle *(secs)*

@@ -782,3 +782,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:times.elapsed" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1902" title="View in source">`Benchmark#times.elapsed`</a>
### <a id="Benchmark:times.elapsed" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1903" title="View in source">`Benchmark#times.elapsed`</a>
*(Number)*: The time taken to complete the benchmark *(secs)*.

@@ -789,3 +789,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:times.period" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1909" title="View in source">`Benchmark#times.period`</a>
### <a id="Benchmark:times.period" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1910" title="View in source">`Benchmark#times.period`</a>
*(Number)*: The time taken to execute the test once *(secs)*.

@@ -796,3 +796,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:times.start" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1916" title="View in source">`Benchmark#times.start`</a>
### <a id="Benchmark:times.start" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1917" title="View in source">`Benchmark#times.start`</a>
*(Number)*: A timestamp of when the benchmark started *(ms)*.

@@ -803,3 +803,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark:times.stop" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1923" title="View in source">`Benchmark#times.stop`</a>
### <a id="Benchmark:times.stop" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1924" title="View in source">`Benchmark#times.stop`</a>
*(Number)*: A timestamp of when the benchmark finished *(ms)*.

@@ -857,3 +857,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.Suite:aborted" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1976" title="View in source">`Benchmark.Suite#aborted`</a>
### <a id="Benchmark.Suite:aborted" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1977" title="View in source">`Benchmark.Suite#aborted`</a>
*(Boolean)*: A flag to indicate if the suite is aborted.

@@ -864,3 +864,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.Suite:length" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1969" title="View in source">`Benchmark.Suite#length`</a>
### <a id="Benchmark.Suite:length" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1970" title="View in source">`Benchmark.Suite#length`</a>
*(Number)*: The number of benchmarks in the suite.

@@ -871,3 +871,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.Suite:running" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1983" title="View in source">`Benchmark.Suite#running`</a>
### <a id="Benchmark.Suite:running" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1984" title="View in source">`Benchmark.Suite#running`</a>
*(Boolean)*: A flag to indicate if the suite is running.

@@ -878,3 +878,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.Suite:abort" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L910" title="View in source">`Benchmark.Suite#abortSuite`</a>
### <a id="Benchmark.Suite:abort" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L909" title="View in source">`Benchmark.Suite#abortSuite`</a>
Aborts all benchmarks in the suite.

@@ -888,3 +888,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.Suite:add" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L940" title="View in source">`Benchmark.Suite#add(name, fn [, options={}])`</a>
### <a id="Benchmark.Suite:add" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L939" title="View in source">`Benchmark.Suite#add(name, fn [, options={}])`</a>
Adds a test to the benchmark suite.

@@ -916,3 +916,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.Suite:addListener" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1047" title="View in source">`Benchmark.Suite#addListener(type, listener)`</a>
### <a id="Benchmark.Suite:addListener" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1046" title="View in source">`Benchmark.Suite#addListener(type, listener)`</a>
Registers a single listener of a specified event type.

@@ -937,3 +937,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.Suite:clone" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L957" title="View in source">`Benchmark.Suite#cloneSuite(options)`</a>
### <a id="Benchmark.Suite:clone" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L956" title="View in source">`Benchmark.Suite#cloneSuite(options)`</a>
Creates a new suite with cloned benchmarks.

@@ -950,3 +950,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.Suite:each" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1992" title="View in source">`Benchmark.Suite#each(callback)`</a>
### <a id="Benchmark.Suite:each" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1993" title="View in source">`Benchmark.Suite#each(callback)`</a>
A bare-bones `Array#forEach` solution.

@@ -964,3 +964,3 @@ Callbacks may terminate the loop by explicitly returning `false`.

<!-- div -->
### <a id="Benchmark.Suite:emit" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1062" title="View in source">`Benchmark.Suite#emit(type)`</a>
### <a id="Benchmark.Suite:emit" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1061" title="View in source">`Benchmark.Suite#emit(type)`</a>
Executes all registered listeners of a specified event type.

@@ -974,3 +974,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.Suite:filter" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L976" title="View in source">`Benchmark.Suite#filterSuite(callback)`</a>
### <a id="Benchmark.Suite:filter" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L975" title="View in source">`Benchmark.Suite#filterSuite(callback)`</a>
A bare-bones `Array#filter` solution.

@@ -987,3 +987,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.Suite:indexOf" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L2000" title="View in source">`Benchmark.Suite#indexOf(value)`</a>
### <a id="Benchmark.Suite:indexOf" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L2001" title="View in source">`Benchmark.Suite#indexOf(value)`</a>
A bare-bones `Array#indexOf` solution.

@@ -1000,3 +1000,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.Suite:invoke" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L2009" title="View in source">`Benchmark.Suite#invoke(name [, arg1, arg2, ...])`</a>
### <a id="Benchmark.Suite:invoke" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L2010" title="View in source">`Benchmark.Suite#invoke(name [, arg1, arg2, ...])`</a>
Invokes a method on all benchmarks in the suite.

@@ -1014,3 +1014,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.Suite:map" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L2017" title="View in source">`Benchmark.Suite#map(callback)`</a>
### <a id="Benchmark.Suite:map" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L2018" title="View in source">`Benchmark.Suite#map(callback)`</a>
A bare-bones `Array#map` solution.

@@ -1027,3 +1027,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.Suite:on" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1824" title="View in source">`Benchmark.Suite#on`</a>
### <a id="Benchmark.Suite:on" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1825" title="View in source">`Benchmark.Suite#on`</a>
Alias of [`Benchmark#addListener`](#Benchmark:addListener).

@@ -1034,3 +1034,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.Suite:pluck" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L2025" title="View in source">`Benchmark.Suite#pluck(property)`</a>
### <a id="Benchmark.Suite:pluck" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L2026" title="View in source">`Benchmark.Suite#pluck(property)`</a>
Retrieves the value of a specified property from all benchmarks in the suite.

@@ -1047,3 +1047,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.Suite:reduce" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L2034" title="View in source">`Benchmark.Suite#reduce(callback, accumulator)`</a>
### <a id="Benchmark.Suite:reduce" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L2035" title="View in source">`Benchmark.Suite#reduce(callback, accumulator)`</a>
A bare-bones `Array#reduce` solution.

@@ -1061,3 +1061,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.Suite:removeAllListeners" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1119" title="View in source">`Benchmark.Suite#removeAllListeners(type)`</a>
### <a id="Benchmark.Suite:removeAllListeners" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1118" title="View in source">`Benchmark.Suite#removeAllListeners(type)`</a>
Unregisters all listeners of a specified event type.

@@ -1081,3 +1081,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.Suite:removeListener" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1092" title="View in source">`Benchmark.Suite#removeListener(type, listener)`</a>
### <a id="Benchmark.Suite:removeListener" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1091" title="View in source">`Benchmark.Suite#removeListener(type, listener)`</a>
Unregisters a single listener of a specified event type.

@@ -1102,3 +1102,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.Suite:reset" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L990" title="View in source">`Benchmark.Suite#resetSuite`</a>
### <a id="Benchmark.Suite:reset" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L989" title="View in source">`Benchmark.Suite#resetSuite`</a>
Resets all benchmarks in the suite.

@@ -1112,3 +1112,3 @@ [&#9650;][1]

<!-- div -->
### <a id="Benchmark.Suite:run" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1006" title="View in source">`Benchmark.Suite#runSuite([async=false, queued=false])`</a>
### <a id="Benchmark.Suite:run" href="https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1005" title="View in source">`Benchmark.Suite#runSuite([async=false, queued=false])`</a>
Runs the suite.

@@ -1115,0 +1115,0 @@ [&#9650;][1]

{
"name": "benchmark",
"version": "0.1.344",
"version": "0.1.345",
"description": "A benchmarking library that works on nearly all JavaScript platforms, supports high-resolution timers, and returns statistically significant results.",

@@ -5,0 +5,0 @@ "homepage": "http://benchmarkjs.com/",

@@ -602,2 +602,6 @@ module("Benchmark.platform");

'Safari 4.x on iPhone Simulator (iOS 4.0)': {
'ua': 'Mozilla/5.0 (iPhone Simulator; U; CPU iPhone OS 4_0 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Mobile/8A293'
},
'Safari 4.x on iPhone (iOS 4.1)': {

@@ -711,2 +715,6 @@ 'ua': 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Mobile/8B117'

'Safari 4.0.4 on iPhone Simulator (iOS 3.2)': {
'ua': 'Mozilla/5.0 (iPhone Simulator; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7D11 Safari/531.21.10'
},
'Safari 4.0.4 on Mac OS X 10.4.11': {

@@ -713,0 +721,0 @@ 'ua': 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; hu-hu) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10'

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc