Commit 51e1d678 authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent c16de3e9
......@@ -41,7 +41,7 @@ async function run() {
}
adder = _.orderBy(adder, ['total'], ['asc']);
var startTime = performance.now()
for (let i = 0; i < adder.length; i++) {
......@@ -49,9 +49,8 @@ async function run() {
add(adder[i].total, adder[z].dates)
}
}
var endTime = performance.now()
console.log(`Call to doSomething took ${endTime - startTime} milliseconds`)
var startTime = performance.now()
for (let i = 0; i < adder.length; i++) {
for (let z = i + 1; z < adder.length; z++) {
let types = adder[z].type
......@@ -61,6 +60,9 @@ async function run() {
}
}
var endTime = performance.now()
console.log(`Call to doSomething took ${endTime - startTime} milliseconds`)
for (let i = 0; i < adder.length; i++) {
adder[i].dates=_.uniq(adder[i].dates)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment