UNPKG

nsolid-manager

Version:

A manager that sets up and runs N|Solid for you

21 lines (16 loc) 413 B
process.title = "random-cpu-memory"; var cache = [] setInterval(function() { var cycles = (Math.random() * 200)|0; for (var i=0; i < cycles; i++) { var a = new Array(2 * cycles); for (var j = 0; j < a.length; j++) { a[j] = 'some string' + Math.random() } cache.push(a) } if (Math.random() < 0.05) { console.error('clearing %s items', cache.length) cache = [] } }, 500)