Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ApacheBench for Mac
# ATTENTION PLEASE!
# NOTE BY @riwazp7
# Note for future visitors of this gist: Mac OS has Apache Benchmark by default ab --help
curl -OL http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz
tar -xzf libtool-2.4.2.tar.gz
cd libtool-2.4.2
./configure && make && sudo make install
# brew install 'https://raw.github.com/simonair/homebrew-dupes/e5177ef4fc82ae5246842e5a544124722c9e975b/ab.rb'
# brew test ab
curl -O https://archive.apache.org/dist/httpd/httpd-2.4.2.tar.bz2
tar zxvf httpd-2.4.2.tar.bz2
cd httpd-2.4.2.tar.bz2
./configure && make && make install
@vincenthcui
Copy link

vincenthcui commented Sep 6, 2017

brew install homebrew/apache/ab

brew add apache bench support now

Loading

@acloudiator
Copy link

acloudiator commented Nov 7, 2017

homebrew/apache/ab was deleted from homebrew/apache in commit 8040966

Loading

Copy link

ghost commented Jan 8, 2018

Does someone know why apache benchmark formula has been deleted from brew?

Loading

@fnkr
Copy link

fnkr commented Jan 13, 2018

Found this Gist via Google. https://github.com/Homebrew/homebrew-apache states that "all formulae were migrated to Homebrew/homebrew-core or deleted." ab seems to be one of the formulae that had been deleted but I don't know why. Maybe open an issue in Homebrew/homebrew-core?

Loading

@fcoury
Copy link

fcoury commented Jan 15, 2018

Loading

@riwazp7
Copy link

riwazp7 commented Apr 11, 2018

Note for future visitors of this gist: Mac OS has Apache Benchmark by default ab --help

Edit 2020: this is popular! Glad my comment saved a tiny bit of time for so many people 🙂

Loading

@samheutmaker
Copy link

samheutmaker commented May 22, 2018

Loading

@TonyCTHsu
Copy link

TonyCTHsu commented May 28, 2018

@riwazp7 + 1

Loading

@bigbgh
Copy link

bigbgh commented May 31, 2018

according to this post from Oct 2016, ab on Mac os was broken. Was that ever true? Is it still the case?

Loading

@willycedric
Copy link

willycedric commented Jul 5, 2018

@riwazp7 + 1

Loading

@marcelblanarik
Copy link

marcelblanarik commented Jul 31, 2018

@riwazp7 + 1

Loading

@FrankGoortani
Copy link

FrankGoortani commented Aug 8, 2018

"homebrew/apache was deprecated. This tap is now empty as all its formulae were migrated."

Loading

@jiandan217
Copy link

jiandan217 commented Aug 30, 2018

@riwazp7 + 1

Loading

@Kiran01bm
Copy link

Kiran01bm commented Sep 18, 2018

@riwazp7 + 1

Loading

@brugos
Copy link

brugos commented Sep 21, 2018

macOS comes with ab. man ab

Loading

@Slauta
Copy link

Slauta commented Oct 18, 2018

@riwazp7 + 1

Loading

@dalegaspi
Copy link

dalegaspi commented Oct 23, 2018

@brugos +100. macOS comes with ab.

Loading

@luokuning
Copy link

luokuning commented Oct 28, 2018

Note for future visitors of this gist: Mac OS has Apache Benchmark by default ab --help

+1

Loading

@SiskonEmilia
Copy link

SiskonEmilia commented Nov 14, 2018

Note for future visitors of this gist: Mac OS has Apache Benchmark by default ab --help

+1

Loading

@niasand
Copy link

niasand commented Nov 26, 2018

cd httpd-2.4.2.tar.bz2 should be cd httpd-2.4.2

Loading

@yangguang0813
Copy link

yangguang0813 commented Nov 28, 2018

Note for future visitors of this gist: Mac OS has Apache Benchmark by default ab --help

Thanks a lot!

Loading

@fraenky8
Copy link

fraenky8 commented Dec 4, 2018

Loading

@alanchavezgarc
Copy link

alanchavezgarc commented Dec 5, 2018

Loading

@nashirox
Copy link

nashirox commented Mar 11, 2019

Loading

@sathishmurugesan
Copy link

sathishmurugesan commented May 2, 2019

Loading

@Vijendra07Kulhade
Copy link

Vijendra07Kulhade commented May 16, 2019

+1

Loading

@gyustorm
Copy link

gyustorm commented May 21, 2019

Loading

@shivanikanal
Copy link

shivanikanal commented May 23, 2019

Loading

@dawidjaja
Copy link

dawidjaja commented May 23, 2019

Loading

@giladsh1
Copy link

giladsh1 commented Jun 3, 2019

Loading

@juliofalbo
Copy link

juliofalbo commented Jun 5, 2019

Loading

@Chachmin
Copy link

Chachmin commented Jun 24, 2019

@riwazp7 It doesn't get much better than this, +1

Loading

@valentinobaraldo
Copy link

valentinobaraldo commented Jul 15, 2019

+1

Loading

@CemalUnal
Copy link

CemalUnal commented Aug 30, 2019

Loading

@bhushanbrb
Copy link

bhushanbrb commented Sep 5, 2019

macOS comes with ab. man ab

thanks

Loading

@kgbook
Copy link

kgbook commented Sep 17, 2019

Note for future visitors of this gist: Mac OS has Apache Benchmark by default ab --help

thanks

Loading

@Saukto
Copy link

Saukto commented Oct 9, 2019

Loading

@oguzozan
Copy link

oguzozan commented Oct 24, 2019

Loading

@sagespidy
Copy link

sagespidy commented Nov 5, 2019

Loading

@sap9433
Copy link

sap9433 commented Nov 25, 2019

lol. OSX comes with apache benchmark . type man ab in your Mac

Loading

@iamSampath
Copy link

iamSampath commented Jan 6, 2020

+1

Loading

@roman-1983
Copy link

roman-1983 commented Apr 21, 2020

@sap9433 is right 👍

Loading

@abdulrehmank
Copy link

abdulrehmank commented May 15, 2020

Note for future visitors of this gist: Mac OS has Apache Benchmark by default ab --help

👍

Loading

@tommym9
Copy link

tommym9 commented Jun 10, 2020

Note for future visitors of this gist: Mac OS has Apache Benchmark by default ab --help

Hero cheers!

Loading

@swapnilpal-fitternity
Copy link

swapnilpal-fitternity commented Jul 16, 2020

Note for future visitors of this gist: Mac OS has Apache Benchmark by default ab --help

Edit 2020: this is popular! Glad my comment saved a tiny bit of time for so many people 🙂

+1 👍

Loading

@ArjunDandagi
Copy link

ArjunDandagi commented Jul 20, 2020

Loading

@gersonazgo
Copy link

gersonazgo commented Jul 29, 2020

Loading

@LoFe
Copy link

LoFe commented Sep 30, 2020

Loading

@fbarrios-condor
Copy link

fbarrios-condor commented Oct 6, 2020

👍

Loading

@sgc109
Copy link

sgc109 commented Oct 31, 2020

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment