Add stresstest reload page
This commit is contained in:
parent
3b0e3d0aab
commit
1a364c3585
24
http/counter.html
Normal file
24
http/counter.html
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<script>
|
||||||
|
document.addEventListener("DOMContentLoaded", function ()
|
||||||
|
{
|
||||||
|
var number = window.location.search;
|
||||||
|
if ( number == '') number = 0;
|
||||||
|
else number = number.substring(1,);
|
||||||
|
|
||||||
|
number = parseInt(number) + 1;
|
||||||
|
document.getElementById('count').innerHTML = number;
|
||||||
|
window.location.search = '?' + number;
|
||||||
|
}
|
||||||
|
)
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<br>This page releoads as fast as it can to test the server.</br>
|
||||||
|
<br>It is meant as a stresstest to see when and if the server fails.</br>
|
||||||
|
<h1 id="count" class="countclass">
|
||||||
|
</h1>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -22,6 +22,7 @@
|
|||||||
<li><a href="index.html">Index</a>: This page (static)</li>
|
<li><a href="index.html">Index</a>: This page (static)</li>
|
||||||
<li><a href="hello_world.txt">A text file</a>: Simple text, to verify MIME type is ok. (static)</li>
|
<li><a href="hello_world.txt">A text file</a>: Simple text, to verify MIME type is ok. (static)</li>
|
||||||
<li><a href="cars.html">Nice cars</a>: Stress test, loads several "large" images. Makes the chip panic and restart :( (static)</li>
|
<li><a href="cars.html">Nice cars</a>: Stress test, loads several "large" images. Makes the chip panic and restart :( (static)</li>
|
||||||
|
<li><a href="counter.html">Count Requests</a>: Stress test, loads the same page over and over, counting every load. (static)</li>
|
||||||
<li><a href="zipped.html">Zipped</a>: File is actually saved as zipped.html.gz. A compressed file! (static but gzipped)</li>
|
<li><a href="zipped.html">Zipped</a>: File is actually saved as zipped.html.gz. A compressed file! (static but gzipped)</li>
|
||||||
<li><a href="zipped.html.gz">Zipped</a>: Same exact file as served above. Server is smart enough to treat the .gz extension correctly (static but gzipped)</li>
|
<li><a href="zipped.html.gz">Zipped</a>: Same exact file as served above. Server is smart enough to treat the .gz extension correctly (static but gzipped)</li>
|
||||||
<li><a href="args.lua">Arguments</a>: Parses arguments passed in the URL and prints them. (Lua)</li>
|
<li><a href="args.lua">Arguments</a>: Parses arguments passed in the URL and prints them. (Lua)</li>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user