apachebench

Does Node.js perform badly on Windows, surely it can't be slower than apache for basic I/O

爷,独闯天下 提交于 2019-12-05 09:10:46
Question: Are the result that i'm getting reasonable? Is there anything which could have such an impact in reducing the number of requests per second? Edit: A friend of mine has just benchmarked the same application on Linux and the average r/s was approx 7000. Edit #2: I've checked the CPU usage of Node.exe, and it's only using 5-6% of the cpu. Surely this figure should be 12% on a quad core machine, 8 thread CPU when running on a single thread if truly under load? I've written a Node.js application (running Node v0.6.10) and benchmarked it with apachebench: ab -c 256 -n 50000 http:/

How to send more than one query string in Apache Bench?

半世苍凉 提交于 2019-12-05 03:48:21
ab -n 1 -c 1 http://localhost:2020/welTo.do?pxtId=3000007937&superDo=jack I got answer for first query string but i also get 'superDo' is not recognized as an internal or external command, operable program or batch file. Please help me TIA Regards thiru You probably just need to quote the URL to avoid shell special characters from being interpreted. In this case your & symbol is causing the text to the left to be run in the background while attempting to run superDo as a command. ab -n 1 -c 1 'http://localhost:2020/welTo.do?pxtId=3000007937&superDo=jack' user551168 There are two workarounds

Apache Bench and POST data

帅比萌擦擦* 提交于 2019-12-05 01:20:24
i am trying to use apache bench to load test a create action in my rails application but ab doesn't appear to be sending the POST data - though it does correctly submit a POST and not a GET request. this is the command i run: ab -n 1 -p post -v 4 "http://oz01.zappos.net/registrations" and this is the contents of the post file: authenticity_token=M18KXwSOuIVbDPZOVQy5h8aSGoU159V9S5uV2lpsAI0 the rails logs show a POST request coming through but don't show any parameters being posted: Started POST "/registrations" for 10.66.210.70 at Thu Sep 09 17:48:06 -0700 2010 Processing by

How do I pass a complex cookie to ab for testing?

耗尽温柔 提交于 2019-12-04 23:45:37
I'm using ab to test my app, and I'm having trouble passing the correct cookie. My cookie data looks like this: messages=95925d68c34fcc68b3fcc2e5061a45278c35af41$[[\\\\"__json_message\\\\"\\\\05420\\\\054\\\\"Data\\\\"]] I can't figure out how to get the second part of the string to ab to send to my server. I'm doing something like ab -C messages='95*snip*5af41$[[\\\\"__json_message\\\\"\\\\05420\\\\054\\\\"Data\\\\"]]' http://example.com:80/ Everything up to the [ is sent, but nothing from there on. I'm concerned [ is some kind of control to my shell that is getting escaped, but I'm not quite

Poor performance

五迷三道 提交于 2019-12-04 12:15:11
I am doing performance tests for my master thesis and I'm getting very poor performance of Symfony2 simple application. It's simple app, one query and some math. Test results for command: ab -c10 -t60 http://sf2.cities.localhost/app.php Server Software: Apache/2.2.20 Server Hostname: sf2.cities.localhost Server Port: 80 Document Path: /app.php Document Length: 2035 bytes Concurrency Level: 10 Time taken for tests: 60.162 seconds Complete requests: 217 Failed requests: 68 (Connect: 0, Receive: 0, Length: 68, Exceptions: 0) Write errors: 0 Non-2xx responses: 68 Total transferred: 393876 bytes

POSTing multipart/form-data with Apache Bench (ab)

泄露秘密 提交于 2019-12-04 08:59:17
问题 I'm trying to benchmark our upload server by simulating several concurrent requests using Apache Bench ( ab ). I've read this post that details the necessary steps and also this Stackoverflow question but I'm still unable to create a valid benchmark. This is the command I'm using with Apache Bench ab -n 10 -c 6 -p post_data.txt -T "multipart/form-data; boundary=1234567890" http://myuploadserver.com/upload These are the contents of my post_data.txt file. I apologize for the length. -

Can someone please explain what these ApacheBench results mean?

隐身守侯 提交于 2019-12-03 18:32:25
问题 i'm trying to figure out how to use ApacheBench and benchmark my website. I installed the default site project (it's ASP.NET MVC but please don't put stop reading if u're not a .NET person). I didn't change anything. Add new project. Set confuration to RELEASE. Run without Debug. (so it's in LIVE mode). Yes, this is with the built in webserver, not the production grade IIS or Apache or whatever. So here's the results :- C:\Temp>ab -n 1000 -c 1 http://localhost:50035/ This is ApacheBench,

Load Testing with AB … fake failed requests (length)

北慕城南 提交于 2019-12-03 18:18:20
问题 To do some load testing, for my own curiosity, on my server I ran: ab -kc 50 -t 200 http://localhost/index.php This opens up 50 keep-alive connections for 200 seconds and just slams my server with requests for index.php In my results, I get: Concurrency Level: 50 Time taken for tests: 200.007 seconds Complete requests: 33106 Failed requests: 32951 (Connect: 0, Receive: 0, Length: 32951, Exceptions: 0) Write errors: 0 Keep-Alive requests: 0 Total transferred: 1948268960 bytes HTML transferred:

What is concurrent request (-c) in Apache Benchmark?

二次信任 提交于 2019-12-03 17:23:04
问题 What is concurrent request (-c) in apache benchmark? I think it is number of simultaneous request(Process) created in single point of time? Can anybody explain if I am wrong? Can you give some example how concurrent request will work? How can I test this like Boundary Value Analysis(BVA) testing 回答1: You are correct. In simple words, ab -n 1000 -c 5 http://www.example.com/ where, -n 1000: ab will send 1000 number of requests to example.com server in order to perform for the benchmarking

support multipart POST for apachebench?

点点圈 提交于 2019-12-03 09:55:18
问题 I want to use apachebench (ab) to test file upload performance. I have read the manual and can't find a way to achieve my goal. My goal is try to upload a file by a HTTP Request with POST method and multipart/form-data format. The ab support "-p POST-FILE", but I only can find the format key=value&key2=value2 What the post data I want to send is Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryuUlX4554LPBjInc5 ------WebKitFormBoundaryuUlX4554LPBjInc5 Content-Disposition: form