Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 9.38 KB | None | 0 0
  1. > ls -lah /opt/cpanel/ea-php73/root/usr/bin/php
  2. -rwxr-xr-x 1 root root 4.2M Oct  8 00:28 /opt/cpanel/ea-php73/root/usr/bin/php
  3.  
  4. > du -hsc /opt/cpanel/ea-php73/root/usr/lib64/php/modules/*.so
  5. 12K     /opt/cpanel/ea-php73/root/usr/lib64/php/modules/ctype.so
  6. 96K     /opt/cpanel/ea-php73/root/usr/lib64/php/modules/curl.so
  7. 160K    /opt/cpanel/ea-php73/root/usr/lib64/php/modules/dom.so
  8. 60K     /opt/cpanel/ea-php73/root/usr/lib64/php/modules/ftp.so
  9. 372K    /opt/cpanel/ea-php73/root/usr/lib64/php/modules/gd.so
  10. 44K     /opt/cpanel/ea-php73/root/usr/lib64/php/modules/iconv.so
  11. 92K     /opt/cpanel/ea-php73/root/usr/lib64/php/modules/imap.so
  12. 428K    /opt/cpanel/ea-php73/root/usr/lib64/php/modules/intl.so
  13. 1.3M    /opt/cpanel/ea-php73/root/usr/lib64/php/modules/ioncube_loader_lin_7.3.so
  14. 44K     /opt/cpanel/ea-php73/root/usr/lib64/php/modules/json.so
  15. 1.6M    /opt/cpanel/ea-php73/root/usr/lib64/php/modules/mbstring.so
  16. 128K    /opt/cpanel/ea-php73/root/usr/lib64/php/modules/mysqli.so
  17. 244K    /opt/cpanel/ea-php73/root/usr/lib64/php/modules/mysqlnd.so
  18. 472K    /opt/cpanel/ea-php73/root/usr/lib64/php/modules/opcache.so
  19. 28K     /opt/cpanel/ea-php73/root/usr/lib64/php/modules/pdo_mysql.so
  20. 104K    /opt/cpanel/ea-php73/root/usr/lib64/php/modules/pdo.so
  21. 28K     /opt/cpanel/ea-php73/root/usr/lib64/php/modules/pdo_sqlite.so
  22. 4.5M    /opt/cpanel/ea-php73/root/usr/lib64/php/modules/phalcon.so
  23. 268K    /opt/cpanel/ea-php73/root/usr/lib64/php/modules/phar.so
  24. 32K     /opt/cpanel/ea-php73/root/usr/lib64/php/modules/posix.so
  25. 48K     /opt/cpanel/ea-php73/root/usr/lib64/php/modules/simplexml.so
  26. 48K     /opt/cpanel/ea-php73/root/usr/lib64/php/modules/sqlite3.so
  27. 20K     /opt/cpanel/ea-php73/root/usr/lib64/php/modules/tokenizer.so
  28. 32K     /opt/cpanel/ea-php73/root/usr/lib64/php/modules/wddx.so
  29. 32K     /opt/cpanel/ea-php73/root/usr/lib64/php/modules/xmlreader.so
  30. 48K     /opt/cpanel/ea-php73/root/usr/lib64/php/modules/xml.so
  31. 44K     /opt/cpanel/ea-php73/root/usr/lib64/php/modules/xmlwriter.so
  32. 32K     /opt/cpanel/ea-php73/root/usr/lib64/php/modules/xsl.so
  33. 11M     total
  34.  
  35. прмиечание: 15.2 мб (размер бинарного файла + модули)
  36.  
  37. > /opt/cpanel/ea-php73/root/usr/bin/php -i | grep configure
  38. Configure Command =>  './configure'  '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/opt/cpanel/ea-php73/root/usr' '--exec-prefix=/opt/cpanel/ea-php73/root/usr' '--bindir=/opt/cpanel/ea-php73/root/usr/bin' '--sbindir=/opt/cpanel/ea-php73/root/usr/sbin' '--sysconfdir=/opt/cpanel/ea-php73/root/etc' '--datadir=/opt/cpanel/ea-php73/root/usr/share' '--includedir=/opt/cpanel/ea-php73/root/usr/include' '--libdir=/opt/cpanel/ea-php73/root/usr/lib64' '--libexecdir=/opt/cpanel/ea-php73/root/usr/libexec' '--localstatedir=/opt/cpanel/ea-php73/root/usr/var' '--sharedstatedir=/opt/cpanel/ea-php73/root/usr/com' '--mandir=/opt/cpanel/ea-php73/root/usr/share/man' '--infodir=/opt/cpanel/ea-php73/root/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/opt/cpanel/ea-php73/root/etc' '--with-config-file-scan-dir=/opt/cpanel/ea-php73/root/etc/php.d' '--disable-debug' '--with-password-argon2=/opt/cpanel/libargon2' '--with-pic' '--without-pear' '--with-bz2' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl=/opt/cpanel/ea-openssl' '--with-openssl-dir=/opt/cpanel/ea-openssl' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-sockets' '--with-kerberos' '--enable-shmop' '--with-libxml-dir=/opt/cpanel/ea-libxml2' '--with-system-tzdata' '--with-mhash' '--libdir=/opt/cpanel/ea-php73/root/usr/lib64/php' '--enable-pcntl' '--enable-opcache' '--disable-opcache-file' '--enable-phpdbg' '--with-imap=shared,/opt/cpanel/ea-php73/root/usr' '--with-imap-ssl' '--enable-mbstring=shared' '--enable-mbregex' '--with-gd=shared' '--with-gmp=shared' '--enable-calendar=shared' '--enable-bcmath=shared' '--with-bz2=shared' '--enable-ctype=shared' '--enable-dba=shared' '--with-db4=/usr' '--with-tcadb=/usr' '--enable-exif=shared' '--enable-ftp=shared' '--with-gettext=shared' '--with-iconv=shared' '--enable-sockets=shared' '--enable-tokenizer=shared' '--with-xmlrpc=shared' '--with-ldap=shared' '--with-ldap-sasl' '--enable-mysqlnd=shared' '--with-mysqli=shared,mysqlnd' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--enable-dom=shared' '--with-pgsql=shared' '--enable-simplexml=shared' '--enable-xml=shared' '--enable-wddx=shared' '--with-snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--with-curl=shared,/opt/cpanel/libcurl' '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-mysql=shared,mysqlnd' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr' '--with-sqlite3=shared,/usr' '--enable-json=shared' '--without-libzip' '--enable-zip=shared' '--without-readline' '--with-libedit' '--with-pspell=shared' '--enable-phar=shared' '--with-tidy=shared,/opt/cpanel/libtidy' '--enable-sysvmsg=shared' '--enable-sysvshm=shared' '--enable-sysvsem=shared' '--enable-shmop=shared' '--enable-posix=shared' '--with-unixODBC=shared,/usr' '--enable-intl=shared' '--with-icu-dir=/usr' '--with-enchant=shared,/usr' '--with-recode=shared,/usr' '--enable-fileinfo=shared' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'target_alias=x86_64-redhat-linux-gnu'
  39.  
  40. > /opt/cpanel/ea-php73/root/usr/bin/php -m (44 модуля)
  41. [PHP Modules]
  42. Core
  43. ctype
  44. curl
  45. date
  46. dom
  47. filter
  48. ftp
  49. gd
  50. hash
  51. iconv
  52. imap
  53. intl
  54. ionCube Loader
  55. json
  56. libxml
  57. mbstring
  58. mysqli
  59. mysqlnd
  60. openssl
  61. pcntl
  62. pcre
  63. PDO
  64. pdo_mysql
  65. pdo_sqlite
  66. phalcon
  67. Phar
  68. posix
  69. readline
  70. Reflection
  71. session
  72. SimpleXML
  73. SPL
  74. sqlite3
  75. standard
  76. tokenizer
  77. wddx
  78. xml
  79. xmlreader
  80. xmlwriter
  81. xsl
  82. Zend OPcache
  83. zlib
  84.  
  85. [Zend Modules]
  86. Zend OPcache
  87. the ionCube PHP Loader + ionCube24
  88.  
  89. > top
  90.     PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  91. 2646891 user      20   0  345m  15m 9004 S  0.0  0.0   0:00.06 /opt/cpanel/ea-php73/root/usr/bin/php sleep.php
  92.  
  93. =======================
  94.  
  95. > ls -lah /usr/local/php/7.3/bin/php
  96. -rwxr-xr-x 1 root root 49M Sep 19 03:12 /usr/local/php/7.3/bin/php
  97.  
  98. > du -hsc /usr/local/php/7.3/lib/php/extensions/*.so
  99. 1.1M    /usr/local/php/7.3/lib/php/extensions/imagick.so
  100. 1.3M    /usr/local/php/7.3/lib/php/extensions/ioncube_loader_lin_7.3.so
  101. 132K    /usr/local/php/7.3/lib/php/extensions/liteshield.so
  102. 148K    /usr/local/php/7.3/lib/php/extensions/mcrypt.so
  103. 408K    /usr/local/php/7.3/lib/php/extensions/memcached.so
  104. 532K    /usr/local/php/7.3/lib/php/extensions/memcache.so
  105. 2.3M    /usr/local/php/7.3/lib/php/extensions/opcache.so
  106. 4.5M    /usr/local/php/7.3/lib/php/extensions/phalcon.so
  107. 11M     total
  108.  
  109. прмиечание: 60 мб (размер бинарного файла + модули)
  110.  
  111. > /usr/local/php/7.3/bin/php -i | grep configure
  112. Configure Command =>  './configure'  '--prefix=/usr/local/php/7.3/' '--with-libdir=lib64' '--with-curl' '--with-gd' '--with-gettext' '--with-jpeg-dir' '--with-freetype-dir' '--with-kerberos' '--with-openssl' '--with-mhash' '--with-mysqli' '--with-pdo-mysql' '--with-pcre-regex' '--with-pear' '--with-png-dir' '--with-xsl' '--with-zlib' '--with-zlib-dir' '--with-iconv' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-soap' '--enable-sockets' '--enable-mbstring' '--enable-zip' '--enable-wddx' '--enable-fpm' '--with-tidy' '--enable-opcache' '--with-litespeed' '--enable-intl' '--with-imap' '--with-imap-ssl' '--with-icu-dir=/opt/dependencies/icu' '--with-libxml-dir=/opt/dependencies/libxml2' '--without-libzip' '--with-gmp' '--enable-bcmath' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-webp-dir'
  113.  
  114. >  /usr/local/php/7.3/bin/php -m (58 модулей)
  115. [PHP Modules]
  116. bcmath
  117. calendar
  118. Core
  119. ctype
  120. curl
  121. date
  122. dom
  123. exif
  124. fileinfo
  125. filter
  126. ftp
  127. gd
  128. gettext
  129. gmp
  130. hash
  131. iconv
  132. imagick
  133. imap
  134. intl
  135. ionCube Loader
  136. json
  137. libxml
  138. liteshield
  139. mbstring
  140. mcrypt
  141. memcache
  142. memcached
  143. mysqli
  144. mysqlnd
  145. openssl
  146. pcre
  147. PDO
  148. pdo_mysql
  149. pdo_sqlite
  150. phalcon
  151. Phar
  152. posix
  153. Reflection
  154. session
  155. SimpleXML
  156. soap
  157. sockets
  158. SPL
  159. sqlite3
  160. standard
  161. tidy
  162. tokenizer
  163. wddx
  164. xml
  165. xmlreader
  166. xmlwriter
  167. xmlwriter
  168. xsl
  169. Zend OPcache
  170. zip
  171. zlib
  172.  
  173. [Zend Modules]
  174. Zend OPcache
  175. the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured)
  176.  
  177. > top
  178.     PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  179. 2664255 user      20   0  370m  17m 9.9m S  0.0  0.0   0:00.02 /usr/local/php/7.3/bin/php sleep.php
  180.  
  181. =======================
  182.  
  183. #!/bin/bash
  184. for ((i=1;i<=1000;i++));
  185. do
  186.    /usr/local/php/7.3/bin/php -r 'echo "TEST\r\n";'
  187. done
  188.  
  189. > time sh test.sh
  190. real    0m39.583s
  191. user    0m19.998s
  192. sys     0m18.380s
  193.  
  194. > time sh test.sh
  195. real    0m38.172s
  196. user    0m19.480s
  197. sys     0m17.652s
  198.  
  199. > time sh test.sh
  200. real    0m39.468s
  201. user    0m19.970s
  202. sys     0m18.249s
  203.  
  204. Среднее значение выполнения 39.0743s
  205.  
  206. #!/bin/bash
  207. for ((i=1;i<=1000;i++));
  208. do
  209.    /opt/cpanel/ea-php73/root/usr/bin/php -r 'echo "TEST\r\n";'
  210. done
  211.  
  212. > time sh test.sh
  213. real    0m42.149s
  214. user    0m19.923s
  215. sys     0m19.197s
  216.  
  217. > time sh test.sh
  218. real    0m40.200s
  219. user    0m19.533s
  220. sys     0m18.962s
  221.  
  222. > time sh test.sh
  223. real    0m41.474s
  224. user    0m20.115s
  225. sys     0m19.700s
  226.  
  227. Среднее значение выполнения 41.274s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement