Facebook gave a presentation about their development practices at OSCON in Portland last July, it was interesting (I was in the room at the time):
https://www.youtube.com/watch?v=Ax9KR_PaiEM
...the thing that sticks in my mind was, yes it runs on localhost, where the localhost dev env has 3TB SSD and 144GB of memory :)
Things work a little different for Facebook than they do for sites with more reasonable traffic. I've seen a few talks on YouTube where they speak about the challenges of scalability as they gradually hot swap legacy X or Y for their own in-house component Z.
See React/JSX and Flux, and the Haxl library. They go into detail about some of the problems and solutions that they've made public with respect to those projects, and they speak a lot about testing too in many of the posts. Worth checking out.
tl;dr: use a load generator. I wrote the article after some jackass woke me and my new bridge out of bed at three in the morning because his sun ultrasparc server fell over when brought live just in time for the christmas shopping season.
...the thing that sticks in my mind was, yes it runs on localhost, where the localhost dev env has 3TB SSD and 144GB of memory :)