63
Battle of the Stacks by Nic Rosental @nicdev Image by Cosmopolitan of Las Vegas https://www.flickr.com/photos/thecosmopolitan/

Battle of the Stacks

Embed Size (px)

Citation preview

1. Battle of the Stacks by Nic Rosental! @nicdev Image by Cosmopolitan of Las Vegas https://www.ickr.com/photos/thecosmopolitan/ 2. ! ! ! noun noun: stack; plural noun: stacks 1. a pile of objects, typically one that is neatly arranged. "a stack of boxes" synonyms: heap, pile, mound, mountain, pyramid, tower "a stack of boxes" informal a large quantity of something. "there's stacks of work for me now" a rectangular or cylindrical pile of hay or straw or of grain in sheaf. synonyms: haystack, rick, hayrick, mow, shock, haycock; datedcock "a stack of hay" a vertical arrangement of stereo or guitar amplication equipment. a number of aircraft ying in circles at different altitudes around the same point while waiting for permission to land at an airport. a pyramidal group of ries. units of shelving in part of a library, used to store books compactly. plural noun: the stacks COMPUTING a set of storage locations that store data in such a way that the most recently stored item is the rst to be retrieved. 2. a chimney, especially one on a factory, or a vertical exhaust pipe on a vehicle. synonyms: chimney, smokestack, funnel, exhaust pipe a column of rock standing in the sea, remaining after erosion of cliffs. noun: sea stack; plural noun: sea stacks Stacks Image by K.G.23 https://www.ickr.com/photos/kg-23/12846731134 3. The components that make up your application. From the web server software all the way to the code. Image by Juhan Sonin https://www.ickr.com/photos/juhansonin/ 4. Performance means speed and reliability Image by cle0patra https://www.ickr.com/photos/cle0patra/ 5. More hardware Image by S Jones https://www.ickr.com/photos/pixeljones/ 6. The Setup Image by afromusing https://www.ickr.com/photos/afropicmusing/ 7. LAMP Stack Image by Cosmopolitan of Las Vegas https://www.ickr.com/photos/thecosmopolitan/ 8. Prefork! vs! Worker! vs! Event Image by Allen McGregor https://www.ickr.com/photos/allenmcgregor/ 9. LAMP Stack! Apache 2.4 Prefork Image by Peter Miller https://www.ickr.com/photos/pmillera4/ 10. MaxRequestWorkers = 512MB / 22.5MB! ~23 MaxRequestWorkers 11. LAMP Stack! Apache 2.2 Prefork Image by Nerissa Villas https://www.ickr.com/photos/envypictures/ 12. MaxClients = 512MB / 13MB! ! ~28 MaxClients 13. LAMP Stack! Apache 2.4 Worker +! PHP-FPM Image by Image by Peter Miller https://www.ickr.com/photos/sumaryanto-bronto/ 14. MaxRequestWorkers = 512MB / 8MB! ~64 MaxRequestWorkers 15. LAMP Stack! Apache 2.4 Event +! PHP-FPM Image by Arne Halvorsen https://www.ickr.com/photos/arne-halvorsen/ 16. MaxRequestWorkers = 512MB / 4MB! ! ~128 MaxRequestWorkers 17. LEMP Stack Image by Christa Lohman https://www.ickr.com/photos/chloeloe/ 18. HHVM Image by Andrew Siguenza https://www.ickr.com/photos/photo-knight/ 19. HHVM + Apache 2.4! HHVM + NGINX Image by Michael Cot https://www.ickr.com/photos/cote/ 20. Lighttpd! AKA Lighty Image by JayRaz https://www.ickr.com/photos/shnakepup/ 21. Let the battle begin! Image by Paul Kitchener https://www.ickr.com/photos/pmillera4/ 22. Each stack gets paired against another stack randomly in a playoff format.! ! Each stack gets a vanilla installation of WordPress to be used as target.! ! Each stack is tested using Loader.io.! ! The stack with better response time moves on to the next round.! ! Each rounds test is progressively harder than the last.! ! The winner of the third round will be crowned Last Stack Standing 23. Apache 2.2 Prefork Apache 2.4 Worker + FPM HHVM + NGINX LAMP Apache 2.4 Event + FPM Lighty + FPM LEMP LAMP Apache 2.4 Prefork HHVM + Apache 2.4 60 clients/60 seconds 24. LAMP Apache 2.2 Prefork! ! Vs.! ! LAMP Apache 2.4 Worker + FPM http://ldr.io/1ogrzVi http://ldr.io/ZI8Sya 25. LAMP Apache 2.4 Worker + FPM LAMP Apache 2.2 Prefork Response time: 163ms Response time: 60ms 26. HHVM + NGINX! ! vs! ! LAMP Apache 2.4 Event + FPM http://ldr.io/ZzETbj http://ldr.io/1nu476f 27. Response time: 32ms Response time: 65ms HHVM + NGINX LAMP Apache 2.4 Event + FPM 28. Lighty + FPM! ! vs! ! LEMP (NGINX + FPM)! http://ldr.io/1ogzbau http://ldr.io/1y3bjqM 29. Response time: 50ms Response time: 44ms Lighty + FPM LEMP (NGINX + FPM) 30. LAMP Apache 2.4 Prefork! ! vs! ! HHVM + Apache 2.4! ! http://ldr.io/1DjdQAj http://ldr.io/ZzKpKX 31. Response time: 82ms Response time: 30ms LAMP Apache 2.4 Prefork HHVM + Apache 2.4 32. LAMP Apache 2.4 Worker + FPM HHVM + NGINX HHVM + Apache 2.4 LEMP 120 clients/60 seconds 33. LAMP Apache 2.4 Worker + FPM! ! vs! ! HHVM + NGINX! ! http://ldr.io/1sRdwW8 http://ldr.io/1nuaKpk 34. Response time: 85ms Response time: 31ms LAMP Apache 2.4 Worker + FPM HHVM + NGINX 35. LEMP! ! vs! ! HHVM + Apache 2.4! ! http://ldr.io/ZzGVbp http://ldr.io/1nuhTWE 36. Response time: 60ms Response time: 29ms LEMP HHVM + Apache 2.4 37. HHVM + NGINX HHVM + APACHE 2.4 480 clients/60 seconds 38. HHVM + NGINX! ! vs! ! HHVM + Apache 2.4! ! http://ldr.io/1ogvD7X http://ldr.io/1ogD7b3 39. Response time: 76ms Response time: 60ms HHVM + NGINX HHVM + Apache 2.4 40. Image by Articularnos.com https://www.ickr.com/photos/articularnos/ Champion of the ! Battle Of The Stacks ATO Edition HHVM + Apache 2.4 41. Image by yamchildht tps://www.ickr.com/photos/yamchild/ Test the limits 42. ! HHVM + Apache 2.4! ! http://ldr.io/1w6dtrZ 43. Response time: 6210ms HHVM + Apache 2.4 Successful responses: 2148 Errors: 8 (0.4%) 44. Key Takeaways Image by Jnos Csongor Kerekes https://www.ickr.com/photos/kjcs/ 45. Thanks, Chris Fidao! @deloper 46. Thanks yall Image by Trey Ratcliff https://www.ickr.com/photos/stuckincustoms/ 47. Get in touch! [email protected]! @nicdev! ! Get the slides! https://speakerdeck.com/nicdev Image by Brocco https://www.ickr.com/photos/brocco_lee/