Lively Kernel canvas
//
DraftLocalStorage40
DragtoresizethisobjectAlt+dragtorotatetheobjectAlt+shift+dragtoscaletheobjectShift+dragtochangeborderwidth3
false
10002.1498866348835723Wikicontroltrue
unserialize,append,andserializecounter(n=200)30msunserialize,append,andserializecounter(n=300)58msunserialize,append,andserializecounter(n=400)180msunserialize,append,andserializecounter(n=500)231msunserialize,append,andserializecounter(n=600)295msunserialize,append,andserializecounter(n=700)449msunserialize,append,andserializecounter(n=800)525msunserialize,append,andserializecounter(n=900)601msunserialize,append,andserializecounter(n=1000)797ms
nulltrue9truetruefalsetruetrue
false00.11truefalsetruetrue
nullfalsetruenull
falsenulltruefalse
false
false
falsenullfalsefalsenullnullnullnullfalse
nulltruelocalStorage.setItem('localtest1',"HelloOtherPage")localStorage.getItem('localtest1')localStorage.localtest1="HelloOtherPage2"localStorage.localtest1=JSON.serialize({a:3,b:4})addResult=function(s){varm=$morph('resultText')m.setTextString(m.textString+'\n'+s)}n=1000;addResult('setcounter'+Functions.timeToRun(function(){for(vari=0;i<n;i++){localStorage.setItem("mycounter",i)}})+"ms")addResult('getandsetcounter'+Functions.timeToRun(function(){for(vari=0;i<n;i++){varold=localStorage.getItem("mycounter")localStorage.setItem("mycounter",i)}})+"ms")localStorage.mycounter=""addResult('appendcounter'+Functions.timeToRun(function(){for(vari=0;i<n;i++){varold=localStorage.getItem("mycounter")localStorage.setItem("mycounter",old+","+i)}})+"ms")n=1000localStorage.mycounter=JSON.serialize([])addResult('unserialize,append,andserializecounter(n='+n+')'+Functions.timeToRun(function(){for(vari=0;i<n;i++){varold=JSON.unserialize(localStorage.getItem("mycounter"))old.push(i)localStorage.setItem("mycounter",JSON.serialize(old))}})+"ms")28truetruefalsetruetrue
false00.11truefalsetruetrue
nullfalsetruenull
falsenulltruefalse
false
false
falsenullfalsefalsenullnullnullnullfalse
dismissallfalsenulltruefalsetrue
Xfalsenulltruefalsetrue
serializing....16nullnull71