test remove hash index

Benchmark created by Kashey on


Preparation HTML

<script>
 var hash = {};
 var L=1000; 
</script>

Setup

for(var i=0;i<L;++i){
       hash[i]={id:i};
     }

Test runner

Ready to run.

Testing in
TestOps/sec
delete
 for(var i=0;i<L;++i){
   delete hash[i];
 }
ready
unset
 for(var i=0;i<L;++i){
   hash[i] = null;
 }
ready
double
 for(var i=0;i<L;++i){
 hash[i] = null;
   delete hash[i];
 }
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.

  • Revision 1: published by Kashey on