MCPcopy
hub / github.com/amark/gun / it

Function it

test/ptsd/memdisk.js:19–31  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

17},2);
18
19function 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}

Callers 15

radix.jsFile · 0.85
common.jsFile · 0.85
all.jsFile · 0.85
memdisk.jsFile · 0.85
sea.jsFile · 0.85
speak.jsFile · 0.85
who.jsFile · 0.85
holy-grail.jsFile · 0.85
b2s2s2b.jsFile · 0.85
load.jsFile · 0.85
s2s-all.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected