performance-testing

Java Thread Pool Throughput

試著忘記壹切 提交于 2019-12-24 17:08:13
问题 I am observing a very strange problem in a java client server application. I am sending following Runnable objects to the server at 80 requests per second. The thread pool keeps pool size equal to the request rate i.e. approximately 80 threads in the pool. My laptop is intel Core i5-3230M dual core(Windows show me 4 processor). Strange thing is that the Throughput(jos completed per second) is also 80. I could not understand this. How 4 processors and 80 threads are completing 80 jobs of 100

MySQLi query vs PHP Array, which is faster?

谁说我不能喝 提交于 2019-12-24 12:05:47
问题 I'm developing an algorithm for intense calculations on multiple huge arrays. Right now I have used PHP arrays to do the job but, it seems slower than what I needed it to be. I was thinking on using MySQLi tables and convert the php arrays into database rows and then start the calculations to solve the speed issue. At the very first step, when I was converting a 20*10 PHP array into 200 rows of database containing zeros, it took a long time. Here is the code: (Basically the following code is

AWS IOPS limit during load test

家住魔仙堡 提交于 2019-12-24 12:05:01
问题 I have been carryout load test on an API service deployed AWS EC2 instance. The service is deployed on two boxes (each c4.8xlarge) and is being load balanced. Test is carried out using JMeter in distributed mode where in test agents are also aws and are m4.4xlarge machines. There is no EBS storage used. Each sample response is of size 315 bytes and I receive about 12k/sec throughput with testing run on 200 threads. In anticipation of receiving higher throughput I increased the threads to 450

Capturing Selenium Automated Performance Metrics

你离开我真会死。 提交于 2019-12-24 11:44:01
问题 I am attempting to capture client/server response time as recorded by the browser using Selenium WebDriver. My selenium test cases are written in Java. I don't control the code in which I am testing and have tried a variety of solutions as laid out below but none of them meet my requirements 100%. At the end of the day, I am looking to be able to surround a test step with start() and stop() logic and save the client/server response time as recorded by the browser to a database for reporting.

How to capture signalR connection string in Jmeter

纵然是瞬间 提交于 2019-12-24 10:49:43
问题 I am getting error when script is executed in jmeter, because of signalr connection I need to pass connectionToken and connectionData in the url as below. "/Web/signalr/connect?transport=longPolling&clientProtocol=1.5&connectionToken=${connectionToken}&connectionData=${connectionData}" i am able to capture ConnectionToken and passing that successfully. but, i am facing issue with connectionData, which looks like [{"name":"alertshub"},{"name":"loggerhub"},{"name":"notificationhub"}] How to

Checking width and setting width inside forEach loop performance

戏子无情 提交于 2019-12-24 10:48:19
问题 I have two pieces of code below Snippet#1 const doubleWidth = (element) => { const width = element.offsetWidth; element.style.width = `${width * 2}px`; }; button.addEventListener('click', (event) => { boxes.forEach(doubleWidth); }); Snippet#2 button.addEventListener('click', (event) => { var widths = boxes.map(item => item.offsetWidth); boxes.forEach((element, index) => { element.style.width = `${widths[index] * 2}px`; }); }); Snippet #1 has a lot 48ms compared to snippet #2 which is only 18

Loadrunner - share common action between scripts

左心房为你撑大大i 提交于 2019-12-24 10:38:20
问题 Is there a clever way to share common actions between scripts in Loadrunner? Let me explain. Our company will have to create 50 different scripts with different scenarios. Most of them requires logging on to our website, and logging out. It's kind of annoying to have to update 50 scripts, when the log-in requests are changed. Can this be created once, and be used by all the other scripts? Using C-language, Web - http, Loadrunner 11.5 回答1: Use a C header file, such as myfunctions.h You can

JMeter - How to extract values from a response which has been decoded from base64 and stored in a variable? All under the same sampler

余生长醉 提交于 2019-12-24 07:27:08
问题 I am trying to test a webservice's performance, and having a few issues with using and passing variables. There are multiple sequential requests, which depend on some data coming from a previous response. All requests need to be encoded to base64 and placed in a SOAP envelope namespace before sending it to the endpoint. It returns and encoded response which needs to be decoded to see the xml values which need to be used for the next request. What I have done so far is: 1) Beanshell

Pass cookie in http GET request jmeter

老子叫甜甜 提交于 2019-12-24 06:07:24
问题 Ideally, my request should be like this: /oauth2/v1/consent?OCIS_REQ=asdfakdsfjsdfkjdfkjkdf Where "asdfakdsfjsdfkjdfkjkdf" is my Cookie Im passing it as : /oauth2/v1/consent?${COOKIE_OCIS_REQ} But my "${COOKIE_OCIS_REQ}" Variable is not getting replaced with the cookie. Though I set the cookie in Header Manager and enabled CookieManager.save.cookies=true in jmeter.properties and passing it in HTTP Header Manager as Name : Cookie Value : ${COOKIE_OCIS_REQ} The request is simply going like :

Pass cookie in http GET request jmeter

早过忘川 提交于 2019-12-24 06:07:22
问题 Ideally, my request should be like this: /oauth2/v1/consent?OCIS_REQ=asdfakdsfjsdfkjdfkjkdf Where "asdfakdsfjsdfkjdfkjkdf" is my Cookie Im passing it as : /oauth2/v1/consent?${COOKIE_OCIS_REQ} But my "${COOKIE_OCIS_REQ}" Variable is not getting replaced with the cookie. Though I set the cookie in Header Manager and enabled CookieManager.save.cookies=true in jmeter.properties and passing it in HTTP Header Manager as Name : Cookie Value : ${COOKIE_OCIS_REQ} The request is simply going like :