Berker
Berker

Reputation: 81

Why "JMeter" response time is different than 'Microsft Visual Studio Web Performance and Load Test" response time?

'Microsft Visual Studio Web Performance and Load Test' and 'JMeter' response times are different. 'JMeter' is always showing higher response times.

I could not find specific reason regarding this problem, Is it fault of 'Microsft Visual Studio Web Performance and Load Test' or 'JMeter'?

'Microsft Visual Studio Web Performance and Load Test' response time is similar browser response time.

For instance, 'Jmeter' response time takes 0,7 sec while load to "google.com". On the other hand Browser Response time takes 0,3 sec and 'Microsft Visual Studio Web Performance and Load Test' Response Time takes 0,4 sec.

enter image description here

enter image description here

When I used JMeter in Non-GUI mode, the result didn't change, it even increased.

enter image description here

Upvotes: 1

Views: 517

Answers (1)

Ori Marko
Ori Marko

Reputation: 58772

Firstly Remove Summary Report and View Result Tree

View Results Tree MUST NOT BE USED during load test as it consumes a lot of resources (memory and CPU)

Google takes the same or less create Test Plan as follows:

  1. Ctrl+0, Ctrl+1 (Create Thread Group and HTTP Request)

  2. In HTTP Request Set Server Name or IP to www.google.com and uncheck Use KeepAlive

  3. Ctrl +Shift + S - Save file as google.jmx

  4. Execute non GUI in JMETER\bin folder

     jmeter -n -t google.jmx -f -l google.jtl
    
  5. Check in google.jtl file: second column elapsed show be less than 300ms

See also JMeter's Best Practices

Use non-GUI mode: jmeter -n -t test.jmx -l test.jtl

Use as few Listeners as possible; if using the -l flag as above they can all be deleted or disabled. Don't use "View Results Tree" or "View Results in Table" listeners during the load test, use them only during scripting phase to debug your scripts.

Upvotes: 1

Related Questions