Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Static web pages (html) and files for benchmark web server performance on different workloads

I developed a web server program that only serve static files such as html, image and etc. Now, I want to compare it with other web server on different workloads. My design of the web server program is to make better use of file caching and hopeful improve performance on access patterns that follow similar routines/workloads.

Is there any existing large static website scripts that are particularly good for testing different access behaviours and workloads? Also, are there any good workload generators for this purpose?

For example, simulate typical load behaviour:

Load Page1.html-> Load Page2.html -> Download a random file from the list in Page2.html->Exit 

I believe Jmeter maybe useful for this, but I couldn't find any ready made static web page files and workload scripts. Any other existing tools or framework suggestions please?

Thanks

like image 632
leon Avatar asked Nov 13 '22 02:11

leon


1 Answers

There are a few different approaches on how to tackle a problem like this with JMeter;

  • use the recording proxy and record a few typical usage paths through the website
  • start off a the main page and follow all links upto a certain depth
  • start at a page and follow random links in that page

You can collect all links (or a random pick) in a page using the Regular Expression Extractor postprocessor using them to fetch pages in a ForEach Controller.

You can also start with one or more start pages, selecting random links to follow until the start page or an error condition occurs. Use the If Controller to wrap other controllers to stop processing on such a condition.

Place timers between samplers and use JMeter variables to define its parameters so that you can easilly turn up the speed while you add more and more threads.

The Ultimate threadgroup and Stepping threadgroup which are part of the jp@gc project offer extra scheduling functionality.

like image 53
rsp Avatar answered Nov 15 '22 11:11

rsp