
AWS added Arm64-specific implementations to several functions of the PHP interpreter.ĪWS evaluated the performance impact of the software changes to the PHP interpreter by running the standard micro-benchmarks distributed with the Zend optimizer: bench.php and micro_bench.php. Before PHP 7.4 the Zend optimizer was not enabled for Arm. Zend optimizer is a component of the PHP runtime system that improves performance by up to 30% on a range of Zend micro-benchmarks. In this blog, we use the example of M6g instances for a general purpose workload such as WorkPress, but the PHP optimizations discussed here apply equally to compute-optimized and memory-optimized workloads running on C6g and R6g instances. This significantly lowers the cost of running PHP software such as WordPress on Amazon EC2 M6g instances. By using AWS Graviton2 based instances, the latest release of PHP-7.4 currently experiences up to 37% faster execution time compared to the previous release PHP-7.3. This blog discusses how AWS worked together with the PHP community to drive major improvements to the performance of the PHP software stack on the Graviton2-based instances. Compared to similar-sized M5 instances, Graviton2 based instances provide up to 40% better price performance on several open-source application stacks.

This post is contributed by Sebastian Pop, Senior Software Engineer, Amazon Web Services.ĪWS recently launched the Amazon EC2 M6g, C6g, and R6g instances powered by the AWS Graviton2 processors.
