doc_steady_allocation.html (388B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="UTF-8" /> 5 </head> 6 <body> 7 <script> 8 "use strict"; 9 10 var objects = window.objects = []; 11 var allocate = this.allocate = function allocate() { 12 for (let i = 0; i < 100; i++) { 13 objects.push({}); 14 } 15 setTimeout(allocate, 10); 16 }; 17 18 allocate(); 19 </script> 20 </body> 21 </html>