I’m trying to make use of the latest version of ApacheBench (2.4.3) to perform some benchmarking against my local server. Unfortunately, it seems to be broke as hell.
$ ab -n 100000 http://localhost:3000/analytics This is ApacheBench, Version 2.3 <$Revision: 1373084 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking localhost (be patient) apr_socket_recv: Connection refused (61)
Interestingly, the output of the command tells me that I’m using ab 2.3, when the HomeBrew build version is 2.4.3:
brew info ab ab: stable 2.4.3
I find that ApacheBench generally doesn’t work very well, especially under OS X. There’s all sorts of quirks (If benchmarking the root of a site, a slash must be added or ab will error out). The most annoying part is that OS X doesn’t have a good way to allow more open ports from a single process.
Does anyone know how to get this tool working again? Or, does anyone know of a better alternative?
Latest posts by Thomas Hunter II (see all)
- Recent Concerns about Node.js Security - 2018-06-12
- Creating and Integrating a Node Lambda function with API Gateway - 2018-04-02
- Developing Cobalt Dungeon using Phaser and Cordova - 2018-03-27