Merge pull request #92 from HHHartmann/LoadTestPageload

Add stresstest reload page
This commit is contained in:
Marcos 2017-06-01 21:45:44 -05:00 committed by GitHub
commit a96ebc6196
2 changed files with 25 additions and 0 deletions

24
http/counter.html Normal file
View 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>

View File

@ -22,6 +22,7 @@
<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="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.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>