Skip to content

Instantly share code, notes, and snippets.

@joppuyo
Last active March 21, 2021 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joppuyo/8b919b95374deccbb8a98d4c949eb63b to your computer and use it in GitHub Desktop.
Save joppuyo/8b919b95374deccbb8a98d4c949eb63b to your computer and use it in GitHub Desktop.
== Generic PHP information
PHP version: 7.4.16
Server: Apache
Maximum execution time: 30 seconds
Maximum memory size: 128.00 MB (134217728 bytes)
Maximum upload size: 2.00 MB (2097152 bytes)
Modules loaded:
Core (7.4.16)
date (7.4.16)
libxml (7.4.16)
openssl (7.4.16)
pcre (7.4.16)
zlib (7.4.16)
bz2 (7.4.16)
ctype (7.4.16)
curl (7.4.16)
dom (20031129)
fileinfo (7.4.16)
filter (7.4.16)
hash (7.4.16)
iconv (7.4.16)
json (7.4.16)
SPL (7.4.16)
PDO (7.4.16)
session (7.4.16)
pdo_pgsql (7.4.16)
pgsql (7.4.16)
standard (7.4.16)
posix (7.4.16)
readline (7.4.16)
Reflection (7.4.16)
Phar (7.4.16)
SimpleXML (7.4.16)
sockets (7.4.16)
mysqlnd (mysqlnd 7.4.16)
mysqli (7.4.16)
tokenizer (7.4.16)
xml (7.4.16)
xmlreader (7.4.16)
xmlwriter (7.4.16)
zip (1.15.6)
pdo_mysql (7.4.16)
cgi-fcgi (7.4.16)
Zend OPcache (7.4.16)
== Disk performance information
Results sorted by file size (in bytes) in milliseconds (less is better), for a total of 100 cycles:
+-------------------+--------------------+--------------------+--------------------+--------------------+-------------------+-------------------+-------------------+
| 512 | 1024 | 2048 | 4096 | 8192 | 16384 | 32678 | 65536 |
+-------------------+--------------------+--------------------+--------------------+--------------------+-------------------+-------------------+-------------------+
| 0.080526113510132 | 0.081250667572021 | 0.083583116531372 | 0.079820394515991 | 0.083852529525757 | 0.092629432678223 | 0.13363003730774 | 0.13884329795837 |
+-------------------+--------------------+--------------------+--------------------+--------------------+-------------------+-------------------+-------------------+
== CPU performance information
Math operation results by function in milliseconds (less is better), for a total of 99999 cycles:
+---------------------+--------------------+--------------------+--------------------+---------------------+-------------------+-------------------+-------------------+--------------------+---------------------+--------------------+--------------------+
| abs | acos | asin | atan | floor | exp | sin | tan | pi | is_finite | is_nan | sqrt |
+---------------------+--------------------+--------------------+--------------------+---------------------+-------------------+-------------------+-------------------+--------------------+---------------------+--------------------+--------------------+
| 0.0062789916992188 | 0.034609079360962 | 0.0066690444946289 | 0.0075399875640869 | 0.0062000751495361 | 0.007620096206665 | 0.009066104888916 | 0.012202024459839 | 0.0056369304656982 | 0.0059630870819092 | 0.005781888961792 | 0.0055959224700928 |
+---------------------+--------------------+--------------------+--------------------+---------------------+-------------------+-------------------+-------------------+--------------------+---------------------+--------------------+--------------------+
String operation results by function in milliseconds (less is better), for a total of 99999 cycles:
+--------------------+---------------------+-------------------+------------------+-------------------+--------------------+--------------------+--------------------+--------------------+--------------------+---------------------+---------------------+
| addslashes | chunk_split | metaphone | strip_tags | md5 | sha1 | strtoupper | strtolower | strrev | strlen | soundex | ord |
+--------------------+---------------------+-------------------+------------------+-------------------+--------------------+--------------------+--------------------+--------------------+--------------------+---------------------+---------------------+
| 0.0088191032409668 | 0.0084018707275391 | 0.019675016403198 | 0.0172119140625 | 0.021218061447144 | 0.027326107025146 | 0.011718034744263 | 0.0099639892578125 | 0.010012149810791 | 0.0086078643798828 | 0.0094869136810303 | 0.0065631866455078 |
+--------------------+---------------------+-------------------+------------------+-------------------+--------------------+--------------------+--------------------+--------------------+--------------------+---------------------+---------------------+
Loop operation results in milliseconds (less is better), for a total of 99999 cycles: 0.0010640621185303
If/Else operation results in milliseconds (less is better), for a total of 99999 cycles: 0.0015439987182617
== Generic PHP information
PHP version: 7.4.16
Server: nginx/1.18.0
Maximum execution time: 30 seconds
Maximum memory size: 128.00 MB (134217728 bytes)
Maximum upload size: 2.00 MB (2097152 bytes)
Modules loaded:
Core (7.4.16)
date (7.4.16)
libxml (7.4.16)
openssl (7.4.16)
pcre (7.4.16)
zlib (7.4.16)
bz2 (7.4.16)
ctype (7.4.16)
curl (7.4.16)
dom (20031129)
fileinfo (7.4.16)
filter (7.4.16)
hash (7.4.16)
iconv (7.4.16)
json (7.4.16)
SPL (7.4.16)
PDO (7.4.16)
session (7.4.16)
pdo_pgsql (7.4.16)
pgsql (7.4.16)
standard (7.4.16)
posix (7.4.16)
readline (7.4.16)
Reflection (7.4.16)
Phar (7.4.16)
SimpleXML (7.4.16)
sockets (7.4.16)
mysqlnd (mysqlnd 7.4.16)
mysqli (7.4.16)
tokenizer (7.4.16)
xml (7.4.16)
xmlreader (7.4.16)
xmlwriter (7.4.16)
zip (1.15.6)
pdo_mysql (7.4.16)
cgi-fcgi (7.4.16)
Zend OPcache (7.4.16)
== Disk performance information
Results sorted by file size (in bytes) in milliseconds (less is better), for a total of 100 cycles:
+-------------------+------------------+------------------+------------------+------------------+-------------------+-------------------+-------------------+
| 512 | 1024 | 2048 | 4096 | 8192 | 16384 | 32678 | 65536 |
+-------------------+------------------+------------------+------------------+------------------+-------------------+-------------------+-------------------+
| 0.29374957084656 | 0.18281078338623 | 0.24361348152161 | 0.13238835334778 | 0.19168996810913 | 0.33670997619629 | 0.22255969047546 | 0.49987053871155 |
+-------------------+------------------+------------------+------------------+------------------+-------------------+-------------------+-------------------+
== CPU performance information
Math operation results by function in milliseconds (less is better), for a total of 99999 cycles:
+---------------------+--------------------+--------------------+--------------------+---------------------+---------------------+---------------------+-------------------+--------------------+---------------------+--------------------+--------------------+
| abs | acos | asin | atan | floor | exp | sin | tan | pi | is_finite | is_nan | sqrt |
+---------------------+--------------------+--------------------+--------------------+---------------------+---------------------+---------------------+-------------------+--------------------+---------------------+--------------------+--------------------+
| 0.0053749084472656 | 0.0061218738555908 | 0.030214071273804 | 0.0066261291503906 | 0.0058140754699707 | 0.0069119930267334 | 0.0077390670776367 | 0.009990930557251 | 0.0050790309906006 | 0.0057220458984375 | 0.0058300495147705 | 0.0057389736175537 |
+---------------------+--------------------+--------------------+--------------------+---------------------+---------------------+---------------------+-------------------+--------------------+---------------------+--------------------+--------------------+
String operation results by function in milliseconds (less is better), for a total of 99999 cycles:
+--------------------+---------------------+-------------------+--------------------+-------------------+--------------------+--------------------+--------------------+--------------------+--------------------+---------------------+---------------------+
| addslashes | chunk_split | metaphone | strip_tags | md5 | sha1 | strtoupper | strtolower | strrev | strlen | soundex | ord |
+--------------------+---------------------+-------------------+--------------------+-------------------+--------------------+--------------------+--------------------+--------------------+--------------------+---------------------+---------------------+
| 0.0083401203155518 | 0.0078709125518799 | 0.026965141296387 | 0.015758037567139 | 0.019450902938843 | 0.024961948394775 | 0.012072086334229 | 0.010609865188599 | 0.013985872268677 | 0.0069801807403564 | 0.0099430084228516 | 0.0071320533752441 |
+--------------------+---------------------+-------------------+--------------------+-------------------+--------------------+--------------------+--------------------+--------------------+--------------------+---------------------+---------------------+
Loop operation results in milliseconds (less is better), for a total of 99999 cycles: 0.0013599395751953
If/Else operation results in milliseconds (less is better), for a total of 99999 cycles: 0.0016279220581055
== Generic PHP information
PHP version: 7.4.3
Server: nginx/1.18.0
Maximum execution time: 30 seconds
Maximum memory size: 128.00 MB (134217728 bytes)
Maximum upload size: 2.00 MB (2097152 bytes)
Modules loaded:
Core (7.4.3)
date (7.4.3)
libxml (7.4.3)
openssl (7.4.3)
pcre (7.4.3)
zlib (7.4.3)
filter (7.4.3)
hash (7.4.3)
Reflection (7.4.3)
SPL (7.4.3)
session (7.4.3)
standard (7.4.3)
sodium (7.4.3)
cgi-fcgi (7.4.3)
mysqlnd (mysqlnd 7.4.3)
PDO (7.4.3)
apcu (5.1.18)
calendar (7.4.3)
ctype (7.4.3)
curl (7.4.3)
exif (7.4.3)
FFI (7.4.3)
fileinfo (7.4.3)
ftp (7.4.3)
gettext (7.4.3)
iconv (7.4.3)
json (7.4.3)
mysqli (7.4.3)
pdo_mysql (7.4.3)
apc (5.1.18)
posix (7.4.3)
readline (7.4.3)
shmop (7.4.3)
sockets (7.4.3)
sysvmsg (7.4.3)
sysvsem (7.4.3)
sysvshm (7.4.3)
tokenizer (7.4.3)
Phar (7.4.3)
Zend OPcache (7.4.3)
== Disk performance information
Results sorted by file size (in bytes) in milliseconds (less is better), for a total of 100 cycles:
+---------------------+--------------------+--------------------+--------------------+--------------------+---------------------+---------------------+-------------------+
| 512 | 1024 | 2048 | 4096 | 8192 | 16384 | 32678 | 65536 |
+---------------------+--------------------+--------------------+--------------------+--------------------+---------------------+---------------------+-------------------+
| 0.0063433647155762 | 0.0062675476074219 | 0.0045959949493408 | 0.0058727264404297 | 0.0051696300506592 | 0.0060036182403564 | 0.0075430870056152 | 0.012233018875122 |
+---------------------+--------------------+--------------------+--------------------+--------------------+---------------------+---------------------+-------------------+
== CPU performance information
Math operation results by function in milliseconds (less is better), for a total of 99999 cycles:
+---------------------+--------------------+--------------------+--------------------+---------------------+---------------------+---------------------+-------------------+--------------------+---------------------+--------------------+--------------------+
| abs | acos | asin | atan | floor | exp | sin | tan | pi | is_finite | is_nan | sqrt |
+---------------------+--------------------+--------------------+--------------------+---------------------+---------------------+---------------------+-------------------+--------------------+---------------------+--------------------+--------------------+
| 0.0070531368255615 | 0.007667064666748 | 0.0078151226043701 | 0.0081779956817627 | 0.0070259571075439 | 0.0079739093780518 | 0.0087878704071045 | 0.01276707649231 | 0.0065939426422119 | 0.0075249671936035 | 0.0075521469116211 | 0.0072770118713379 |
+---------------------+--------------------+--------------------+--------------------+---------------------+---------------------+---------------------+-------------------+--------------------+---------------------+--------------------+--------------------+
String operation results by function in milliseconds (less is better), for a total of 99999 cycles:
+--------------------+-------------------+-------------------+--------------------+-------------------+--------------------+--------------------+------------------+--------------------+--------------------+-------------------+---------------------+
| addslashes | chunk_split | metaphone | strip_tags | md5 | sha1 | strtoupper | strtolower | strrev | strlen | soundex | ord |
+--------------------+-------------------+-------------------+--------------------+-------------------+--------------------+--------------------+------------------+--------------------+--------------------+-------------------+---------------------+
| 0.021557092666626 | 0.013505935668945 | 0.023952007293701 | 0.014897108078003 | 0.025409936904907 | 0.032981872558594 | 0.013265132904053 | 0.01209282875061 | 0.012062072753906 | 0.0084929466247559 | 0.012102127075195 | 0.0083920955657959 |
+--------------------+-------------------+-------------------+--------------------+-------------------+--------------------+--------------------+------------------+--------------------+--------------------+-------------------+---------------------+
Loop operation results in milliseconds (less is better), for a total of 99999 cycles: 0.0012948513031006
If/Else operation results in milliseconds (less is better), for a total of 99999 cycles: 0.0019240379333496
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment