Questions tagged [wrk]

wrk - a HTTP benchmarking tool

wrk is a modern HTTP benchmarking tool capable of generating significant load when run on a single multi-core CPU. It combines a multithreaded design with scalable event notification systems such as epoll and kqueue.

An optional LuaJIT script can perform HTTP request generation, response processing, and custom reporting.

40 questions
1
vote
1 answer

Wrk vs Gatling benchmark test comparison

With wrk, I runt the following command : wrk -t10 -c10 -d30s http://localhost:8080/myService --latency -H "Accept-Encoding: gzip" As a result, I obtain Requests/sec: 15000 and no error I am trying to reproduce the same kind of test with Gatling. So…
rico
  • 1,843
  • 2
  • 24
  • 41
1
vote
0 answers

questions related to wrk2 benchmark tool about their latencies and requests

I have some questions in my mind related to wrk2 benchmark tool. I did a lot of search on them and did not find answers related to them. If you have little understanding related to them then please help me. What "count" column represents in…
Fathr
  • 31
  • 6
1
vote
0 answers

Why clusterip's(iptables) performance is so bad?Is there something wrong with my configuration

I use wrk to test cluster performance,both wrk and pod(nginx) are on the same vm。 1、wrk->podIp ./wrk -H "Connection: Close" -t 4 -c 300 -d30 http://{podIp}:80 Running 30s test @ http://{podIp}:80 4 threads and 300 connections Thread Stats Avg…
1
vote
1 answer

How to install Lua modules (json, uuid, etc...) for wrk2

I've installed wrk2 through homebrew on Mac OS. (https://github.com/giltene/wrk2/wiki/Installing-wrk2-on-Mac) I am able to run the wrk2 command and simple load tests work fine. However I want to do more complex things for my request body that…
Sakib
  • 1,503
  • 4
  • 26
  • 39
1
vote
1 answer

Extract text from wrk output

I'm running a load test with wrk2 as a job on Jenkins. I'd like to send the results of the load test to Graylog but I only want to store the Requests/Sec and average latency. Here's what the output looks like: Running 30s test @…
Emile Paffard-Wray
  • 1,006
  • 2
  • 9
  • 17
1
vote
3 answers

How to send requests (instead of sending for duration seconds)

Current wrk configuration allows sending continuous requests for seconds (duration parameter). Is there a way to use wrk to send requests and then exit. My use case: I want to create large number of threads + connections (e.g. 1000 threads with…
Bhakta Raghavan
  • 664
  • 6
  • 16
1
vote
1 answer

Headers are not accepting in wrk.format

I am trying to post data to API. I am building request every time. and I am adding headers to wrk.format() method. The headers are not accepting event though headers type is string. headers = {} s = {} request = function() …
shakeel
  • 801
  • 1
  • 8
  • 24
1
vote
1 answer

wrk --latency the mean of latency distribution

i use wrk to test my service wrk -t2 -c10 -d20s --latency http://192.168.0.105:8102/get output 2 threads and 10 connections Thread Stats Avg Stdev Max +/- Stdev Latency 525.29ms 210.25ms 1.73s 82.12% Req/Sec …
Blue Joy
  • 335
  • 1
  • 7
1
vote
2 answers

Wrk HTTP benchmarking tool adding multiple parameters

I'm using the wrk tool for testing and having trouble adding additional parameters to the url. Right now I have it as: wrk -d10s -t20 -c20 http://localhost:7040/api/features/FeatureA?accountId=2233&applicationName=App1 but when I execute it I get…
dawson
  • 71
  • 1
  • 8
1
vote
1 answer

Unexpected test results with nginx as load balancer

I am benchmarking nginx/node.js topologies with the following scenarios: Benchmark a single node.js server directly Benchmark 2 node.js servers behind nginx (RR-load balanced) For both benchmarks, "wrk" is used with the following…
JoeFrizz
  • 611
  • 1
  • 9
  • 18
1
vote
1 answer

How are read and write socket errors defined in the wrk HTTP benchmarking tool?

I am using the wrk HTTP benchmarking tool to test a server. And I am getting READ, WRITE as well as CONNECTION and TIMEOUT errors. What I understand is: CONNECTION errors, are caused by the refusal of a TCP connection. Which could involve every…
Felix
  • 667
  • 14
  • 28
1
vote
0 answers

Wrk load testing, Post request with payload from json file

Does wrk support specifying a json body with a path to a file like vegeta load testing? https://github.com/tsenart/vegeta Also is there a way to overwrite variables in the post request body payload? For example if I have a payload like { "id":…
Sakib
  • 1,503
  • 4
  • 26
  • 39
1
vote
0 answers

Best performance test tool for NGINX

I am trying to do a benchmark on a NGINX module. I would like to check the performance on a post requests (upload to server and not download from the server). I tried to use ab, wrk and locust. I tried running each one of the tools on the same NGINX…
Ortal
  • 79
  • 2
  • 5
1
vote
1 answer

Difference in throughput between jmeter and apache wrk for same application

I am hitting two straightforward application URLs from jmeter using 100 threads via HTTP requests and using response assertion (200 OK). No cookie handler or nothing else at all used in jmeter. Then using the same machines, I use apache wrk tool…
Ganesh S
  • 371
  • 6
  • 26
1
vote
1 answer

nginx + uWSGI + Django crashes with benchmarking tool wrk

I have configured nginx, uWSGI server for my Django application. Everything seems fine, bet when I do some requests using wrk, nginx server instantly starts to respond 502 Bad Gateway (I think uWSGI crashes). When I stop wrk, everything starts to…
Ben
  • 99
  • 2
  • 6