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)
- A Holistic Approach to Microservices - 2016-12-27
- SF Node November 2016 – Node, Redis, and You! - 2016-11-09
- Running a Node.js process on Debian as a Systemd Service - 2016-09-27