(i)
| 17 | },2); |
| 18 | |
| 19 | function it(i){ |
| 20 | c++; |
| 21 | var key = Gun.text.random(5); |
| 22 | gun.get(key).put({data: Math.random() + big + Math.random()}); |
| 23 | setTimeout(function(){ |
| 24 | gun.get(key).off(); |
| 25 | },5); |
| 26 | if(c % 5000){ return } |
| 27 | if(typeof process === 'undefined'){ return } |
| 28 | //try{global.gc()}catch(e){console.log(e)} |
| 29 | var mem = process.memoryUsage(); |
| 30 | console.log(((mem.heapUsed / mem.heapTotal) * 100).toFixed(0) + '% memory with', Object.keys(gun._.graph).length, 'memory nodes, put', c); |
| 31 | } |
no outgoing calls
no test coverage detected