PHP 7.4 c5,t4,t3,c6/r6 Graviton2 opcache performance.

Performance after enabling PHP CLI OPcahe:

C5.lage PHP 7.4 opcache

The code took 0.070414066314697 seconds to complete.
The code took 0.070498943328857 seconds to complete.
The code took 0.070306062698364 seconds to complete.
The code took 0.070335149765015 seconds to complete.
The code took 0.070283174514771 seconds to complete.
The code took 0.070310115814209 seconds to complete.
The code took 0.070327043533325 seconds to complete.
The code took 0.070345878601074 seconds to complete.
The code took 0.070519208908081 seconds to complete.
The code took 0.076335906982422 seconds to complete.

Without opcache:

The code took 0.10612988471985 seconds to complete.
The code took 0.09647798538208 seconds to complete.
The code took 0.096825838088989 seconds to complete.
The code took 0.096458911895752 seconds to complete.
The code took 0.096447944641113 seconds to complete.
The code took 0.096628189086914 seconds to complete.

Docker PHP7.4.11 performance without opcache

The code took 0.097290992736816seconds to complete.
The code took 0.097623109817505seconds to complete.
The code took 0.10476088523865seconds to complete.
The code took 0.097259998321533seconds to complete.
The code took 0.10472893714905seconds to complete.
The code took 0.097509860992432seconds to complete.
The code took 0.097397089004517seconds to complete.
The code took 0.09726619720459seconds to complete.

t4.small PHP 7.4 opcache

The code took 0.10825204849243 seconds to complete.
The code took 0.10930395126343 seconds to complete.
The code took 0.10934996604919 seconds to complete.
The code took 0.10861611366272 seconds to complete.
The code took 0.10832095146179 seconds to complete.
The code took 0.10793089866638 seconds to complete.
The code took 0.10860705375671 seconds to complete.
The code took 0.10856699943542 seconds to complete.
The code took 0.10958814620972 seconds to complete.
The code took 0.10844898223877 seconds to complete.
The code took 0.1085479259491 seconds to complete.
The code took 0.10808992385864 seconds to complete.

T3.small PHP 7.4 opcahe

The code took 0.082756996154785 seconds to complete.
The code took 0.082961082458496 seconds to complete.
The code took 0.14970707893372 seconds to complete.
The code took 0.13479280471802 seconds to complete.
The code took 0.15131402015686 seconds to complete.
The code took 0.097420930862427 seconds to complete.
The code took 0.079721927642822 seconds to complete.
The code took 0.080113887786865 seconds to complete.
The code took 0.079525947570801 seconds to complete.
The code took 0.085307121276855 seconds to complete.
The code took 0.15494608879089 seconds to complete.
The code took 0.13402104377747seconds to complete.
The code took 0.13315677642822seconds to complete.
The code took 0.13290905952454seconds to complete.
The code took 0.13367795944214seconds to complete.
The code took 0.1340651512146seconds to complete.
The code took 0.13374400138855seconds to complete.
The code took 0.13320398330688seconds to complete.
The code took 0.13439917564392seconds to complete.
The code took 0.13348317146301seconds to complete.
The code took 0.13450598716736seconds to complete.

without opcache:

The code took 0.173259973526seconds to complete.
The code took 0.17293810844421seconds to complete.
The code took 0.17391204833984seconds to complete.
The code took 0.17326498031616seconds to complete.
The code took 0.17380714416504seconds to complete.
The code took 0.17369699478149seconds to complete.
The code took 0.17289590835571seconds to complete.
The code took 0.17323803901672seconds to complete.
The code took 0.17297697067261seconds to complete.
The code took 0.17299890518188seconds to complete.

PHP 7.4.9 without opcache

The code took 0.15527009963989seconds to complete.
The code took 0.1551730632782seconds to complete.
The code took 0.15418100357056seconds to complete.
The code took 0.15479302406311seconds to complete.
The code took 0.15346121788025seconds to complete.
The code took 0.1541268825531seconds to complete.
The code took 0.15454292297363seconds to complete.
The code took 0.15431904792786seconds to complete.
The code took 0.15378189086914seconds to complete.

PHP 7.4.9 with opcache

The code took 0.10886979103088seconds to complete.
The code took 0.10882997512817seconds to complete.
The code took 0.10858988761902seconds to complete.
The code took 0.10857009887695seconds to complete.
The code took 0.10873198509216seconds to complete.
The code took 0.10869789123535seconds to complete.

PHP 7.4.11 Docker without opcache

The code took 0.14481091499329seconds to complete.
The code took 0.1445209980011seconds to complete.
The code took 0.14483714103699seconds to complete.
The code took 0.14496517181396seconds to complete.
The code took 0.14484906196594seconds to complete.

Written by

Magento/APP Cloud Architect. Melting metal server infrastructure into cloud solutions.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store