performance-testing

VS Web Load test returning 415 Unsupported Media Type though Content-Type is specified as application/json

纵然是瞬间 提交于 2020-01-02 08:54:13
问题 I am creating a Web Load test using VS. I am testing a service that I created using WebAPI. The WebAPI works well, I am now trying to do performance/load testing on it. Here is a picture that shows how I have set up the test: When I run the test, I get a 415 Unsupported Media Type response back. Also, you can see that it states in the request that the Content-Type is there: When inserting headers, I don't see Content-Type listed as one of the options so I just typed it in. How do I correctly

VS Web Load test returning 415 Unsupported Media Type though Content-Type is specified as application/json

我是研究僧i 提交于 2020-01-02 08:52:43
问题 I am creating a Web Load test using VS. I am testing a service that I created using WebAPI. The WebAPI works well, I am now trying to do performance/load testing on it. Here is a picture that shows how I have set up the test: When I run the test, I get a 415 Unsupported Media Type response back. Also, you can see that it states in the request that the Content-Type is there: When inserting headers, I don't see Content-Type listed as one of the options so I just typed it in. How do I correctly

What is the most accurate way to test the computation speed of a function in JavaScript?

左心房为你撑大大i 提交于 2020-01-01 19:28:11
问题 I need to compare the computation speed of some code, but I'm not sure what the best way to do that is. Is there some kind of built-in timer to do this? And is it possible to get the computation speed in nanoseconds, or do I need to deal with the milliseconds JavaScript usually works with? 回答1: I came across the performance API. What you're looking for is probably Performance.now() , which will give you microsecond percision. The Performance.now() method returns a DOMHighResTimeStamp,

How to approach “end-client” performance testing on single-page (web) applications?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-01 08:56:19
问题 We are evaluating how to test performance on a single-page application (SPA) which relies heavily on JavaScript and dynamic content (updated via Ajax). Popular load-testing tools like Apache JMeter or Gatling are able to generate huge loads with little hardware by sending HTTP requests. But they do not process any Javascript code. We would like to measure performance as perceived by the client, that is, as perceived by end-user sitting in front of a browser (with all the rendering and

Under what circumstances does Java performance degrade with more memory?

微笑、不失礼 提交于 2020-01-01 06:11:24
问题 We're load testing a Java 1.6 application in our DEV environment. The JVM heap allocation is 2Gb, -Xms2048m -Xmx2048m. Under load testing, the app runs smooth, never uses more than 1.25Gb of heap, and garbage collection is totally normal. In our UAT environment, we run the load test with the same parameters, the only difference is the JVM, it's allocated 4Gb, -Xms4096m -Xmx4096m, otherwise, the hardware is exactly the same with DEV. But during load testing, the performance is horrendous, the

Under what circumstances does Java performance degrade with more memory?

99封情书 提交于 2020-01-01 06:11:01
问题 We're load testing a Java 1.6 application in our DEV environment. The JVM heap allocation is 2Gb, -Xms2048m -Xmx2048m. Under load testing, the app runs smooth, never uses more than 1.25Gb of heap, and garbage collection is totally normal. In our UAT environment, we run the load test with the same parameters, the only difference is the JVM, it's allocated 4Gb, -Xms4096m -Xmx4096m, otherwise, the hardware is exactly the same with DEV. But during load testing, the performance is horrendous, the

Performance test for graphQL API

和自甴很熟 提交于 2020-01-01 05:49:08
问题 Today I'm doing my API automation testing and performance testing with Jmeter when the server is a REST API. Now the development changed to graphQL API, and I have two questions about it: 1. What is the best practice to preform the automation API and performance testing? 2. Does Jmeter support graphQL API? 回答1: Disclaimer: I work for LoadImpact; the company behind k6. If you are willing to consider an alternative, I've recently written a blog post about this topic: Load testing GraphQL with

How to save response in a variable in jmeter

我与影子孤独终老i 提交于 2020-01-01 04:52:09
问题 I am performing load testing on my server using jmeter. In one of my post requests, I receive a unique id in the response. I need to send this id as a parameter in the following post requests. I am new to jmeter and don't have any idea how to do this. Help would be really appreciated. 回答1: If you need to store the whole response into a variable - take the following steps: Add Beanshell PostProcessor as a child of the request which returns response you're looking for Put the following line

Random selection from CSV file in Jmeter

一世执手 提交于 2020-01-01 01:55:14
问题 I have a very large CSV file (8000+ items) of URLs that I'm reading with a CSV Data Set Config element. It is populating the path of an HTTP Request sampler and iterating through with a while controller. This is fine except what I want is have each user (thread) to pick a random URL from the CSV URL list. What I don't want is each thread using CSV items sequentially. I was able to achieve this with a Random Order Controller with multiple HTTP Request samplers , however 8000+ HTTP Samplers

Access log replay for load testing? Jmeter Pitfalls and Competitors

我的未来我决定 提交于 2019-12-31 13:06:09
问题 Context We wish to use "replay" web server access logs to generate load tests. JMeter had come to mind as I'd recently read blog posts about using jmeter in the cloud (e.g. firing up a number of Amazon EC2 instances to generate the load) For years I had heard of JMeter's ability to replay access logs, but in reviewing this feature I found the following. Access Log Sampler DOES: recreate sessions, i.e. handle the jsessionId token (thought it tries to approximate sessions by IP address); DOES