When running composer diagnose, I get the following error :
composer diagnose
The xdebug extension is loaded, this can slow down Composer a little. Disablin
If you install composer using brew on OS X You can use this alias:
alias composer="php -n $(cat $(which composer) | grep composer.phar | awk '{print $7}')"