Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to simulate hardware to measure .net application performance?

I am trying to optimize my application performance which is written by C# to do I am trying to get measurements for some functionality of my system such as (Throughput, Resource utilization, Workload, execution time, Garbage collections, etc) to measure theses stuffs I am using some type of Profilers and performance monitors.

I can see these tools are giving different results for different hardware configurations. So I want to limit my hardware configuration for minimum requirement.My problems are

  • How to limit hardware resources(Such as CPU,Memory ,Storage) virtually (by some kind of simulators)?
  • Are there any tool exist for these kind of testing (Open Source is best?
  • If I am doing wrong, can any one suggest what is the professional approach to do these testing?
like image 431
Thabo Avatar asked Dec 12 '25 14:12

Thabo


1 Answers

If i am doing wrong, can any one suggest what is the professional approach to do these testing?

The best "professional" approach, and the only truly accurate measure, is to build a machine with your minimum specs and test there. Any simulation will only be an approximation at best of a real system with those specifications.

That being said, many VM solutions allow you to change the resource allocation to a specific VM, which can help simulate reduced resource availability. For example, VMWare lets you allocate the number of processors, max memory, disk space, etc.

like image 54
Reed Copsey Avatar answered Dec 14 '25 07:12

Reed Copsey