mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Update vendors.
This commit is contained in:
22
vendor/benchmark.js/benchmark.js
vendored
22
vendor/benchmark.js/benchmark.js
vendored
@@ -1408,9 +1408,14 @@
|
||||
* @returns {number} Returns `-1` if slower, `1` if faster, and `0` if indeterminate.
|
||||
*/
|
||||
function compare(other) {
|
||||
var bench = this;
|
||||
|
||||
// exit early if comparing the same benchmark
|
||||
if (bench == other) {
|
||||
return 0;
|
||||
}
|
||||
var critical,
|
||||
zStat,
|
||||
bench = this,
|
||||
sample1 = bench.stats.sample,
|
||||
sample2 = other.stats.sample,
|
||||
size1 = sample1.length,
|
||||
@@ -1436,11 +1441,6 @@
|
||||
function getZ(u) {
|
||||
return (u - ((size1 * size2) / 2)) / sqrt((size1 * size2 * (size1 + size2 + 1)) / 12);
|
||||
}
|
||||
|
||||
// exit early if comparing the same benchmark
|
||||
if (bench == other) {
|
||||
return 0;
|
||||
}
|
||||
// reject the null hyphothesis the two samples come from the
|
||||
// same population (i.e. have the same median) if...
|
||||
if (size1 + size2 > 30) {
|
||||
@@ -1471,8 +1471,8 @@
|
||||
}
|
||||
var event,
|
||||
index = 0,
|
||||
changes = { 'length': 0 },
|
||||
queue = { 'length': 0 };
|
||||
changes = [],
|
||||
queue = [];
|
||||
|
||||
// a non-recursive solution to check if properties have changed
|
||||
// http://www.jslab.dk/articles/non.recursive.preorder.traversal.part4
|
||||
@@ -1510,13 +1510,13 @@
|
||||
}
|
||||
// register a changed object
|
||||
if (changed) {
|
||||
changes[changes.length++] = { 'destination': destination, 'key': key, 'value': currValue };
|
||||
changes.push({ 'destination': destination, 'key': key, 'value': currValue });
|
||||
}
|
||||
queue[queue.length++] = { 'destination': currValue, 'source': value };
|
||||
queue.push({ 'destination': currValue, 'source': value });
|
||||
}
|
||||
// register a changed primitive
|
||||
else if (value !== currValue && !(value == null || _.isFunction(value))) {
|
||||
changes[changes.length++] = { 'destination': destination, 'key': key, 'value': value };
|
||||
changes.push({ 'destination': destination, 'key': key, 'value': value });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user