Skip to content

Commit

Permalink
Removed my initial testing stuff, bring back in once we've determines #1
Browse files Browse the repository at this point in the history
  • Loading branch information
dafky2000 committed Jul 17, 2017
1 parent eef9155 commit 3ce3ee1
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions TimedQ.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,38 +153,3 @@ TimedQ.prototype.process = function() {
if(remaining) this.timer = setTimeout(this.process.bind(this), this.options.breaktime);
else this.timer = setTimeout(this.process.bind(this), this.options.idletime);
};

function runtests() {
const Q = new TimedQ();

// TESTS
const f = function(input) {
let newtext = 'f1' + input;
newtext += ' another addition';
newtext += ' another addition2';
newtext += ' another addition3';
return newtext;
};

const f2 = function(input) {
let newtext = 'f2' + input;
newtext += ' another addition';
newtext += ' another addition2';
newtext += ' another addition3';
return newtext;
};

let data = [];
for(let x = 0; x < 1000000; ++x) {
data.push(['test'+x]);
}

for(let x = 0; x < 10; ++x) {
Q.enqueue(f, data);
Q.enqueue(f2, data);
}

console.log('Done adding items to the queues');
}

runtests();

0 comments on commit 3ce3ee1

Please sign in to comment.