drupalcon 2014: next generation php performance

25
PHP PERFORMANCE The Next Generation 1

Upload: pantheon

Post on 15-Jan-2015

433 views

Category:

Technology


1 download

DESCRIPTION

Tired of reading semi-trustworthy benchmarks about the new hotness? Want the straight dope on what to think about to make your site screaming fast? This is the session for you. From the original creator of Pressflow and the packager of the Mercury performance AMI (and two co-founders of Pantheon) — a look at the next generation of PHP performance, and what it means for Drupal. PHP is undergoing a renaissance: the core development community is moving ahead, and with large entities like Facebook making significant contributions, the often-mocked language that powers most of the web is looking better than ever. Recently there have been a number of major innovations, but there seem to be more questions than answers; What's with PHP 5.5 and its new integrated opcode cache? How fast is Hip Hop Virtual Machine (HHVM) really? How can we take advantage of parallelized processing? SSDs? How much do they help? We'll break it down: solid numbers, real world use-cases, and what you can do to build the fastest application possible.

TRANSCRIPT

Page 1: DrupalCon 2014: Next Generation PHP Performance

PHP PERFORMANCEThe Next Generation

1

Page 2: DrupalCon 2014: Next Generation PHP Performance

WHO ARE WE?

2

Page 3: DrupalCon 2014: Next Generation PHP Performance

3

Let me tell you a story…

Page 4: DrupalCon 2014: Next Generation PHP Performance

THE DARK AGES

4

Page 5: DrupalCon 2014: Next Generation PHP Performance

5

Page 6: DrupalCon 2014: Next Generation PHP Performance

LEGACY BAGGAGE AND CRUFTY TOOLS

6

Page 7: DrupalCon 2014: Next Generation PHP Performance

7

PHP 4.xPEAR / PECL

Page 8: DrupalCon 2014: Next Generation PHP Performance

8

GREAT STRIDES

Page 9: DrupalCon 2014: Next Generation PHP Performance

9

Page 10: DrupalCon 2014: Next Generation PHP Performance

PHP IS THE MOST POPULAR LANGUAGE ON

THE WEB

10

Page 11: DrupalCon 2014: Next Generation PHP Performance

THE NEED FOR SPEED11

Front End Runtime Data / IO

Page 12: DrupalCon 2014: Next Generation PHP Performance

12

CACHE

Page 13: DrupalCon 2014: Next Generation PHP Performance

13

This is as important

Page 14: DrupalCon 2014: Next Generation PHP Performance

SQL IS STILL DA KING

14

Did someone say non-linear performance degradation?

Page 15: DrupalCon 2014: Next Generation PHP Performance

PHP ENGINE PERFORMANCE15

…and muscle…

Page 16: DrupalCon 2014: Next Generation PHP Performance

THIS IS OUR TEST

16

ab -c 5 -n 1000

Panopoly

Page 17: DrupalCon 2014: Next Generation PHP Performance

PHP PERFORMANCELive Demo

17

Page 18: DrupalCon 2014: Next Generation PHP Performance

PHP 5.3 + APC

18

11.38 Req / sec

509 ms

Page 19: DrupalCon 2014: Next Generation PHP Performance

PHP 5.5 & OPCODE

19

14.3 Req / sec

395 ms

Page 20: DrupalCon 2014: Next Generation PHP Performance

HHVM 3.1

20

21.49 Req / sec

283 ms

Page 21: DrupalCon 2014: Next Generation PHP Performance

SPEED

21

Page 22: DrupalCon 2014: Next Generation PHP Performance

SCALE

22

Page 23: DrupalCon 2014: Next Generation PHP Performance

#PHPRenaissance

23

Page 24: DrupalCon 2014: Next Generation PHP Performance

PERFORMANCE IS A FULL STACK CHALLENGE

24

Front End Runtime Data / IO

Page 25: DrupalCon 2014: Next Generation PHP Performance

Questions? !

#PHPRenaissance

25