일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- 티스토리
- 소비전력
- SKT
- Apache
- php
- mysql
- 스톤에이지
- centos
- 아파치
- 윈도우10
- KB국민카드
- 킹북이초월
- jQuery
- iptime
- 라즈베리파이2
- 리눅스
- 자바스크립트
- 알뜰폰
- Rocky
- ConoHa
- PHP-FPM
- OpenWrt
- 가상서버호스팅
- 시놀로지
- 복현오거리
- KB증권
- 보르비스초월
- proxmox
- 알리익스프레스
- 램가스초월
- Today
- Total
맛집 여행 캠핑 일상 생활
[PHP] 7.4 8.0 8.1 8.2 버전별 벤치마크 테스트 결과 본문
728x90
테스트 환경은 오라클 클라우드 VM.Standard.A1.Flex CPU 는 Ampere® Altra™ 인데 ARM 서버입니다.
4코어 24GB 환경에서 테스트했습니다.
OS는 Rocky Linux 9.4
벤치마크 테스트 소스코드는 아래에서 다운로드 받았습니다.
# git clone https://github.com/rusoft/php-simple-benchmark-script.git
# wget https://github.com/rusoft/php-simple-benchmark-script/archive/refs/heads/master.zip
PHP Multiple PHP-FPM 으로 설치된 각 버전별 디렉토리에 복사해서 테스트하였습니다.
# PHP v7.4
-------------------------------------------------------------------------------------------
| PHP BENCHMARK SCRIPT |
-------------------------------------------------------------------------------------------
Start : 2024-06-27 04:08:37
Server name : intech
Server system : Linux/5.14.0-162.12.1.el9_1.0.2.aarch64 aarch64
Platform : Linux
System : Rocky Linux 9.4 (Blue Onyx)
CPU :
model : Neoverse-N1
cores : 4
available : 4
MHz : 25 MHz
Benchmark version : 1.0.57
PHP version : 7.4.33
PHP time limit : 600 sec
Setup time limit : 600 sec
PHP memory limit : 130M
Setup memory limit : 130 Mb
Crypt hash algo : MD5
Loaded modules
-useful->
json : yes
mbstring : yes
pcre : yes; version: 10.40 2022-04-14
simplexml : yes; libxml version: 2.9.13
dom : yes
intl : no
-optional->
gd : yes: version: 2.3.3
imagick : no: version: -.-.-
-alternative->
igbinary : no
msgpack : no
jsond : no
jsond as json >> : no
-compression->
zlib : yes
gzip : yes
bz2 : yes
lz4 : no
zstd : no
brotli : no
-affecting->
opcache : yes; enabled: 0
xcache : no; enabled: 0
apc : no; enabled: 1
eaccelerator : no; enabled: 0
xdebug : no, enabled: 0, mode: ''
PHP parameters
open_basedir : is empty? yes
mb.func_overload : 0
-------------------------------------------------------------------------------------------
TEST NAME : SECONDS | OP/SEC | OP/SEC/MHz | MEMORY
-------------------------------------------------------------------------------------------
01_math : 3.752 sec | 533.01 kOp/s | 21.32 kOps/MHz | 4 Mb
02_string_concat : 1.724 sec | 14.51 MOp/s | 580.21 kOps/MHz | 89.83 Mb
03_1_string_number_concat : 1.973 sec | 2.53 MOp/s | 101.38 kOps/MHz | 4 Mb
03_2_string_number_format : 1.810 sec | 2.76 MOp/s | 110.51 kOps/MHz | 4 Mb
04_string_simple_functions : 2.046 sec | 635.37 kOp/s | 25.41 kOps/MHz | 4 Mb
05_string_multibyte : 1.260 sec | 103.17 kOp/s | 4.13 kOps/MHz | 4 Mb
06_string_manipulation : 3.133 sec | 414.99 kOp/s | 16.60 kOps/MHz | 4 Mb
07_regex : 4.657 sec | 279.17 kOp/s | 11.17 kOps/MHz | 4 Mb
08_1_hashing : 3.071 sec | 423.36 kOp/s | 16.93 kOps/MHz | 4 Mb
08_2_crypt : 11.505 sec | 869.17 Op/s | 34.77 Ops/MHz | 4 Mb
09_json_encode : 2.762 sec | 470.74 kOp/s | 18.83 kOps/MHz | 4 Mb
10_json_decode : 4.445 sec | 292.47 kOp/s | 11.70 kOps/MHz | 4 Mb
11_serialize : 1.911 sec | 680.27 kOp/s | 27.21 kOps/MHz | 4 Mb
12_unserialize : 2.088 sec | 622.74 kOp/s | 24.91 kOps/MHz | 4 Mb
13_array_fill : 5.028 sec | 17.90 MOp/s | 716.01 kOps/MHz | 24 Mb
14_array_range : 2.507 sec | 59.83 kOp/s | 2.39 kOps/MHz | 24 Mb
14_array_unset : 3.873 sec | 23.24 MOp/s | 929.59 kOps/MHz | 24 Mb
15_clean_loops : 1.581 sec | 253.00 MOp/s | 10.12 MOps/MHz | 4 Mb
16_loop_ifelse : 2.569 sec | 38.93 MOp/s | 1.56 MOps/MHz | 4 Mb
17_loop_ternary : 2.945 sec | 33.96 MOp/s | 1.36 MOps/MHz | 4 Mb
18_1_loop_defined_access : 1.048 sec | 47.73 MOp/s | 1.91 MOps/MHz | 4 Mb
18_2_loop_undefined_access : 7.066 sec | 7.08 MOp/s | 283.03 kOps/MHz | 4 Mb
19_type_functions : 1.595 sec | 2.51 MOp/s | 100.34 kOps/MHz | 4 Mb
20_type_casting : 1.586 sec | 2.52 MOp/s | 100.87 kOps/MHz | 4 Mb
21_0_loop_exception_none : 0.173 sec | 57.82 MOp/s | 2.31 MOps/MHz | 4 Mb
21_1_loop_exception_try : 0.191 sec | 52.32 MOp/s | 2.09 MOps/MHz | 4 Mb
21_2_loop_exception_catch : 4.502 sec | 2.22 MOp/s | 88.86 kOps/MHz | 4 Mb
22_loop_null_op : 1.558 sec | 38.52 MOp/s | 1.54 MOps/MHz | 4 Mb
23_loop_spaceship_op : 1.183 sec | 50.73 MOp/s | 2.03 MOps/MHz | 4 Mb
26_1_class_public_properties : 0.221 sec | 45.27 MOp/s | 1.81 MOps/MHz | 4 Mb
26_2_class_getter_setter : 0.625 sec | 15.99 MOp/s | 639.53 kOps/MHz | 4 Mb
26_3_class_magic_methods : 1.836 sec | 5.45 MOp/s | 217.83 kOps/MHz | 4 Mb
27_simplexml : 4.451 sec | 11.23 kOp/s | 449.34 Ops/MHz | 4 Mb
28_domxml : 4.601 sec | 10.87 kOp/s | 434.73 Ops/MHz | 4 Mb
29_datetime : 1.050 sec | 476.04 kOp/s | 19.04 kOps/MHz | 4 Mb
30_intl_number_format : -.--- sec | -.-- Op/s | -.-- Ops/MHz | 0
31_intl_message_format : -.--- sec | -.-- Op/s | -.-- Ops/MHz | 0
32_intl_calendar : -.--- sec | -.-- Op/s | -.-- Ops/MHz | 0
33_phpinfo_generate : 4.474 sec | 2.24 kOp/s | 89.41 Ops/MHz | 4 Mb
34_gd_qrcode : 1.162 sec | 860.38 Op/s | 34.42 Ops/MHz | 4 Mb
-------------------------------------------------------------------------------------------
Total: : 101.958 sec | 10.95 MOp/s | 437.95 kOps/MHz |
Current PHP memory usage: : 4 Mb
Peak PHP memory usage: : 86.66 Mb
-------------------------------------------------------------------------------------------
End : 2024-06-27 04:10:19
# PHP v8.0
-------------------------------------------------------------------------------------------
| PHP BENCHMARK SCRIPT |
-------------------------------------------------------------------------------------------
Start : 2024-06-27 03:57:15
Server name : intech
Server system : Linux/5.14.0-162.12.1.el9_1.0.2.aarch64 aarch64
Platform : Linux
System : Rocky Linux 9.4 (Blue Onyx)
CPU :
model : Neoverse-N1
cores : 4
available : 4
MHz : 25 MHz
Benchmark version : 1.0.57
PHP version : 8.0.30
PHP time limit : 600 sec
Setup time limit : 600 sec
PHP memory limit : 130M
Setup memory limit : 130 Mb
Crypt hash algo : MD5
Loaded modules
-useful->
json : yes
mbstring : yes
pcre : yes; version: 10.40 2022-04-14
simplexml : yes; libxml version: 2.9.13
dom : yes
intl : yes; icu version: 67.1
-optional->
gd : yes: version: 2.3.2
imagick : no: version: -.-.-
-alternative->
igbinary : no
msgpack : no
jsond : no
jsond as json >> : no
-compression->
zlib : yes
gzip : yes
bz2 : yes
lz4 : no
zstd : no
brotli : no
-affecting->
opcache : yes; enabled: 0
xcache : no; enabled: 0
apc : no; enabled: 1
eaccelerator : no; enabled: 0
xdebug : no, enabled: 0, mode: ''
PHP parameters
open_basedir : is empty? yes
mb.func_overload : 0
-------------------------------------------------------------------------------------------
TEST NAME : SECONDS | OP/SEC | OP/SEC/MHz | MEMORY
-------------------------------------------------------------------------------------------
01_math : 3.797 sec | 526.72 kOp/s | 21.07 kOps/MHz | 4 Mb
02_string_concat : 1.705 sec | 14.66 MOp/s | 586.58 kOps/MHz | 89.83 Mb
03_1_string_number_concat : 1.998 sec | 2.50 MOp/s | 100.08 kOps/MHz | 4 Mb
03_2_string_number_format : 1.853 sec | 2.70 MOp/s | 107.96 kOps/MHz | 4 Mb
04_string_simple_functions : 2.028 sec | 641.15 kOp/s | 25.65 kOps/MHz | 4 Mb
05_string_multibyte : 1.188 sec | 109.40 kOp/s | 4.38 kOps/MHz | 4 Mb
06_string_manipulation : 3.215 sec | 404.35 kOp/s | 16.17 kOps/MHz | 4 Mb
07_regex : 4.794 sec | 271.15 kOp/s | 10.85 kOps/MHz | 4 Mb
08_1_hashing : 3.084 sec | 421.53 kOp/s | 16.86 kOps/MHz | 4 Mb
08_2_crypt : 11.682 sec | 856.03 Op/s | 34.24 Ops/MHz | 4 Mb
09_json_encode : 2.688 sec | 483.60 kOp/s | 19.34 kOps/MHz | 4 Mb
10_json_decode : 4.246 sec | 306.15 kOp/s | 12.25 kOps/MHz | 4 Mb
11_serialize : 1.848 sec | 703.53 kOp/s | 28.14 kOps/MHz | 4 Mb
12_unserialize : 2.246 sec | 578.83 kOp/s | 23.15 kOps/MHz | 4 Mb
13_array_fill : 4.784 sec | 18.81 MOp/s | 752.57 kOps/MHz | 24 Mb
14_array_range : 2.561 sec | 58.57 kOp/s | 2.34 kOps/MHz | 24 Mb
14_array_unset : 3.532 sec | 25.48 MOp/s | 1.02 MOps/MHz | 24 Mb
15_clean_loops : 1.579 sec | 253.38 MOp/s | 10.14 MOps/MHz | 4 Mb
16_loop_ifelse : 1.873 sec | 53.39 MOp/s | 2.14 MOps/MHz | 4 Mb
17_loop_ternary : 2.592 sec | 38.58 MOp/s | 1.54 MOps/MHz | 4 Mb
18_1_loop_defined_access : 0.847 sec | 59.00 MOp/s | 2.36 MOps/MHz | 4 Mb
18_2_loop_undefined_access : 7.300 sec | 6.85 MOp/s | 273.99 kOps/MHz | 4 Mb
19_type_functions : 1.626 sec | 2.46 MOp/s | 98.38 kOps/MHz | 4 Mb
20_type_casting : 1.638 sec | 2.44 MOp/s | 97.66 kOps/MHz | 4 Mb
21_0_loop_exception_none : 0.138 sec | 72.43 MOp/s | 2.90 MOps/MHz | 4 Mb
21_1_loop_exception_try : 0.154 sec | 64.77 MOp/s | 2.59 MOps/MHz | 4 Mb
21_2_loop_exception_catch : 4.571 sec | 2.19 MOp/s | 87.50 kOps/MHz | 4 Mb
22_loop_null_op : 1.288 sec | 46.60 MOp/s | 1.86 MOps/MHz | 4 Mb
23_loop_spaceship_op : 1.134 sec | 52.89 MOp/s | 2.12 MOps/MHz | 4 Mb
26_1_class_public_properties : 0.182 sec | 55.00 MOp/s | 2.20 MOps/MHz | 4 Mb
26_2_class_getter_setter : 0.585 sec | 17.09 MOp/s | 683.43 kOps/MHz | 4 Mb
26_3_class_magic_methods : 1.862 sec | 5.37 MOp/s | 214.86 kOps/MHz | 4 Mb
27_simplexml : 4.439 sec | 11.26 kOp/s | 450.50 Ops/MHz | 4 Mb
28_domxml : 4.575 sec | 10.93 kOp/s | 437.16 Ops/MHz | 4 Mb
29_datetime : 1.091 sec | 458.25 kOp/s | 18.33 kOps/MHz | 4 Mb
30_intl_number_format : 1.016 sec | 19.68 kOp/s | 787.09 Ops/MHz | 4 Mb
31_intl_message_format : 5.099 sec | 39.23 kOp/s | 1.57 kOps/MHz | 4 Mb
32_intl_calendar : 0.833 sec | 360.11 kOp/s | 14.40 kOps/MHz | 4 Mb
33_phpinfo_generate : 4.368 sec | 2.29 kOp/s | 91.57 Ops/MHz | 4 Mb
34_gd_qrcode : 1.163 sec | 860.18 Op/s | 34.41 Ops/MHz | 4 Mb
-------------------------------------------------------------------------------------------
Total: : 107.203 sec | 10.42 MOp/s | 416.71 kOps/MHz |
Current PHP memory usage: : 4 Mb
Peak PHP memory usage: : 86.65 Mb
-------------------------------------------------------------------------------------------
End : 2024-06-27 03:59:03
# PHP v8.1
-------------------------------------------------------------------------------------------
| PHP BENCHMARK SCRIPT |
-------------------------------------------------------------------------------------------
Start : 2024-06-27 04:02:19
Server name : intech
Server system : Linux/5.14.0-162.12.1.el9_1.0.2.aarch64 aarch64
Platform : Linux
System : Rocky Linux 9.4 (Blue Onyx)
CPU :
model : Neoverse-N1
cores : 4
available : 4
MHz : 25 MHz
Benchmark version : 1.0.57
PHP version : 8.1.29
PHP time limit : 600 sec
Setup time limit : 600 sec
PHP memory limit : 130M
Setup memory limit : 130 Mb
Crypt hash algo : MD5
Loaded modules
-useful->
json : yes
mbstring : yes
pcre : yes; version: 10.40 2022-04-14
simplexml : yes; libxml version: 2.9.13
dom : yes
intl : no
-optional->
gd : yes: version: 2.3.3
imagick : no: version: -.-.-
-alternative->
igbinary : no
msgpack : no
jsond : no
jsond as json >> : no
-compression->
zlib : yes
gzip : yes
bz2 : yes
lz4 : no
zstd : no
brotli : no
-affecting->
opcache : yes; enabled: 0
xcache : no; enabled: 0
apc : no; enabled: 1
eaccelerator : no; enabled: 0
xdebug : no, enabled: 0, mode: ''
PHP parameters
open_basedir : is empty? yes
mb.func_overload : 0
-------------------------------------------------------------------------------------------
TEST NAME : SECONDS | OP/SEC | OP/SEC/MHz | MEMORY
-------------------------------------------------------------------------------------------
01_math : 3.750 sec | 533.35 kOp/s | 21.33 kOps/MHz | 4 Mb
02_string_concat : 1.696 sec | 14.74 MOp/s | 589.63 kOps/MHz | 89.83 Mb
03_1_string_number_concat : 1.680 sec | 2.98 MOp/s | 119.02 kOps/MHz | 4 Mb
03_2_string_number_format : 1.506 sec | 3.32 MOp/s | 132.77 kOps/MHz | 4 Mb
04_string_simple_functions : 1.976 sec | 657.87 kOp/s | 26.31 kOps/MHz | 4 Mb
05_string_multibyte : 1.175 sec | 110.60 kOp/s | 4.42 kOps/MHz | 4 Mb
06_string_manipulation : 3.155 sec | 412.01 kOp/s | 16.48 kOps/MHz | 4 Mb
07_regex : 4.896 sec | 265.52 kOp/s | 10.62 kOps/MHz | 4 Mb
08_1_hashing : 3.066 sec | 424.02 kOp/s | 16.96 kOps/MHz | 4 Mb
08_2_crypt : 11.677 sec | 856.39 Op/s | 34.26 Ops/MHz | 4 Mb
09_json_encode : 2.643 sec | 491.92 kOp/s | 19.68 kOps/MHz | 4 Mb
10_json_decode : 4.259 sec | 305.23 kOp/s | 12.21 kOps/MHz | 4 Mb
11_serialize : 1.771 sec | 734.01 kOp/s | 29.36 kOps/MHz | 4 Mb
12_unserialize : 2.082 sec | 624.36 kOp/s | 24.97 kOps/MHz | 4 Mb
13_array_fill : 4.810 sec | 18.71 MOp/s | 748.48 kOps/MHz | 24 Mb
14_array_range : 2.675 sec | 56.07 kOp/s | 2.24 kOps/MHz | 24 Mb
14_array_unset : 3.555 sec | 25.31 MOp/s | 1.01 MOps/MHz | 24 Mb
15_clean_loops : 1.575 sec | 254.01 MOp/s | 10.16 MOps/MHz | 4 Mb
16_loop_ifelse : 1.721 sec | 58.11 MOp/s | 2.32 MOps/MHz | 4 Mb
17_loop_ternary : 2.595 sec | 38.53 MOp/s | 1.54 MOps/MHz | 4 Mb
18_1_loop_defined_access : 0.851 sec | 58.74 MOp/s | 2.35 MOps/MHz | 4 Mb
18_2_loop_undefined_access : 6.377 sec | 7.84 MOp/s | 313.60 kOps/MHz | 4 Mb
19_type_functions : 1.488 sec | 2.69 MOp/s | 107.56 kOps/MHz | 4 Mb
20_type_casting : 1.483 sec | 2.70 MOp/s | 107.88 kOps/MHz | 4 Mb
21_0_loop_exception_none : 0.139 sec | 71.92 MOp/s | 2.88 MOps/MHz | 4 Mb
21_1_loop_exception_try : 0.153 sec | 65.28 MOp/s | 2.61 MOps/MHz | 4 Mb
21_2_loop_exception_catch : 4.312 sec | 2.32 MOp/s | 92.75 kOps/MHz | 4 Mb
22_loop_null_op : 1.268 sec | 47.31 MOp/s | 1.89 MOps/MHz | 4 Mb
23_loop_spaceship_op : 1.126 sec | 53.28 MOp/s | 2.13 MOps/MHz | 4 Mb
26_1_class_public_properties : 0.173 sec | 57.75 MOp/s | 2.31 MOps/MHz | 4 Mb
26_2_class_getter_setter : 0.557 sec | 17.95 MOp/s | 717.96 kOps/MHz | 4 Mb
26_3_class_magic_methods : 1.707 sec | 5.86 MOp/s | 234.37 kOps/MHz | 4 Mb
27_simplexml : 4.476 sec | 11.17 kOp/s | 446.80 Ops/MHz | 4 Mb
28_domxml : 4.627 sec | 10.81 kOp/s | 432.27 Ops/MHz | 4 Mb
29_datetime : 0.679 sec | 736.80 kOp/s | 29.47 kOps/MHz | 4 Mb
30_intl_number_format : -.--- sec | -.-- Op/s | -.-- Ops/MHz | 0
31_intl_message_format : -.--- sec | -.-- Op/s | -.-- Ops/MHz | 0
32_intl_calendar : -.--- sec | -.-- Op/s | -.-- Ops/MHz | 0
33_phpinfo_generate : 4.580 sec | 2.18 kOp/s | 87.33 Ops/MHz | 4 Mb
34_gd_qrcode : 1.130 sec | 885.27 Op/s | 35.41 Ops/MHz | 4 Mb
-------------------------------------------------------------------------------------------
Total: : 97.391 sec | 11.46 MOp/s | 458.48 kOps/MHz |
Current PHP memory usage: : 4 Mb
Peak PHP memory usage: : 86.72 Mb
-------------------------------------------------------------------------------------------
End : 2024-06-27 04:03:56
# PHP v8.2
-------------------------------------------------------------------------------------------
| PHP BENCHMARK SCRIPT |
-------------------------------------------------------------------------------------------
Start : 2024-06-27 04:05:27
Server name : intech
Server system : Linux/5.14.0-162.12.1.el9_1.0.2.aarch64 aarch64
Platform : Linux
System : Rocky Linux 9.4 (Blue Onyx)
CPU :
model : Neoverse-N1
cores : 4
available : 4
MHz : 25 MHz
Benchmark version : 1.0.57
PHP version : 8.2.20
PHP time limit : 600 sec
Setup time limit : 600 sec
PHP memory limit : 130M
Setup memory limit : 130 Mb
Crypt hash algo : MD5
Loaded modules
-useful->
json : yes
mbstring : yes
pcre : yes; version: 10.40 2022-04-14
simplexml : yes; libxml version: 2.9.13
dom : yes
intl : no
-optional->
gd : yes: version: 2.3.3
imagick : no: version: -.-.-
-alternative->
igbinary : no
msgpack : no
jsond : no
jsond as json >> : no
-compression->
zlib : yes
gzip : yes
bz2 : yes
lz4 : no
zstd : no
brotli : no
-affecting->
opcache : yes; enabled: 0
xcache : no; enabled: 0
apc : no; enabled: 1
eaccelerator : no; enabled: 0
xdebug : no, enabled: 0, mode: ''
PHP parameters
open_basedir : is empty? yes
mb.func_overload : 0
-------------------------------------------------------------------------------------------
TEST NAME : SECONDS | OP/SEC | OP/SEC/MHz | MEMORY
-------------------------------------------------------------------------------------------
01_math : 3.854 sec | 518.94 kOp/s | 20.76 kOps/MHz | 4 Mb
02_string_concat : 1.725 sec | 14.49 MOp/s | 579.64 kOps/MHz | 89.83 Mb
03_1_string_number_concat : 1.673 sec | 2.99 MOp/s | 119.57 kOps/MHz | 4 Mb
03_2_string_number_format : 1.510 sec | 3.31 MOp/s | 132.46 kOps/MHz | 4 Mb
04_string_simple_functions : 2.082 sec | 624.42 kOp/s | 24.98 kOps/MHz | 4 Mb
05_string_multibyte : 1.043 sec | 124.66 kOp/s | 4.99 kOps/MHz | 4 Mb
06_string_manipulation : 3.204 sec | 405.78 kOp/s | 16.23 kOps/MHz | 4 Mb
07_regex : 4.906 sec | 264.99 kOp/s | 10.60 kOps/MHz | 4 Mb
08_1_hashing : 3.095 sec | 420.00 kOp/s | 16.80 kOps/MHz | 4 Mb
08_2_crypt : 11.678 sec | 856.34 Op/s | 34.25 Ops/MHz | 4 Mb
09_json_encode : 2.793 sec | 465.37 kOp/s | 18.61 kOps/MHz | 4 Mb
10_json_decode : 4.197 sec | 309.74 kOp/s | 12.39 kOps/MHz | 4 Mb
11_serialize : 1.915 sec | 678.98 kOp/s | 27.16 kOps/MHz | 4 Mb
12_unserialize : 2.097 sec | 619.92 kOp/s | 24.80 kOps/MHz | 4 Mb
13_array_fill : 3.854 sec | 23.35 MOp/s | 934.08 kOps/MHz | 14 Mb
14_array_range : 1.520 sec | 98.68 kOp/s | 3.95 kOps/MHz | 14 Mb
14_array_unset : 3.304 sec | 27.24 MOp/s | 1.09 MOps/MHz | 14 Mb
15_clean_loops : 1.550 sec | 257.99 MOp/s | 10.32 MOps/MHz | 4 Mb
16_loop_ifelse : 1.831 sec | 54.61 MOp/s | 2.18 MOps/MHz | 4 Mb
17_loop_ternary : 2.570 sec | 38.91 MOp/s | 1.56 MOps/MHz | 4 Mb
18_1_loop_defined_access : 0.852 sec | 58.68 MOp/s | 2.35 MOps/MHz | 4 Mb
18_2_loop_undefined_access : 6.734 sec | 7.42 MOp/s | 296.99 kOps/MHz | 4 Mb
19_type_functions : 1.504 sec | 2.66 MOp/s | 106.42 kOps/MHz | 4 Mb
20_type_casting : 1.512 sec | 2.65 MOp/s | 105.85 kOps/MHz | 4 Mb
21_0_loop_exception_none : 0.141 sec | 70.81 MOp/s | 2.83 MOps/MHz | 4 Mb
21_1_loop_exception_try : 0.154 sec | 64.87 MOp/s | 2.59 MOps/MHz | 4 Mb
21_2_loop_exception_catch : 4.656 sec | 2.15 MOp/s | 85.91 kOps/MHz | 4 Mb
22_loop_null_op : 1.274 sec | 47.08 MOp/s | 1.88 MOps/MHz | 4 Mb
23_loop_spaceship_op : 1.128 sec | 53.20 MOp/s | 2.13 MOps/MHz | 4 Mb
26_1_class_public_properties : 0.173 sec | 57.89 MOp/s | 2.32 MOps/MHz | 4 Mb
26_2_class_getter_setter : 0.558 sec | 17.93 MOp/s | 717.39 kOps/MHz | 4 Mb
26_3_class_magic_methods : 1.713 sec | 5.84 MOp/s | 233.55 kOps/MHz | 4 Mb
27_simplexml : 4.437 sec | 11.27 kOp/s | 450.78 Ops/MHz | 4 Mb
28_domxml : 4.614 sec | 10.84 kOp/s | 433.48 Ops/MHz | 4 Mb
29_datetime : 0.638 sec | 783.69 kOp/s | 31.35 kOps/MHz | 4 Mb
30_intl_number_format : -.--- sec | -.-- Op/s | -.-- Ops/MHz | 0
31_intl_message_format : -.--- sec | -.-- Op/s | -.-- Ops/MHz | 0
32_intl_calendar : -.--- sec | -.-- Op/s | -.-- Ops/MHz | 0
33_phpinfo_generate : 4.640 sec | 2.16 kOp/s | 86.21 Ops/MHz | 4 Mb
34_gd_qrcode : 1.133 sec | 882.75 Op/s | 35.31 Ops/MHz | 4 Mb
-------------------------------------------------------------------------------------------
Total: : 96.260 sec | 11.60 MOp/s | 463.87 kOps/MHz |
Current PHP memory usage: : 4 Mb
Peak PHP memory usage: : 86.68 Mb
-------------------------------------------------------------------------------------------
End : 2024-06-27 04:07:03
PHP 8.2 가 빠른것 같긴한데 그렇게 압도적으로 빠르진 않는것 같습니다.
참고로 제온 L5639 테스트용 서버 Proxmox 8.1 환경에서 Rocky 컨테이너 4Core 할당해서 테스트한 결과입니다.
-------------------------------------------------------------------------------------------
| PHP BENCHMARK SCRIPT |
-------------------------------------------------------------------------------------------
Start : 2024-06-27 11:22:41
Server name : rocky
Server system : Linux/6.5.11-8-pve x86_64
Platform : Linux
System : Rocky Linux 9.4 (Blue Onyx)
CPU :
model : Intel(R) Xeon(R) CPU L5639 @ 2.13GHz
cores : 6
available : 10
MHz : 2401.386 MHz
Benchmark version : 1.0.57
PHP version : 8.2.20
PHP time limit : 600 sec
Setup time limit : 600 sec
PHP memory limit : 130M
Setup memory limit : 130 Mb
Crypt hash algo : MD5
Loaded modules
-useful->
json : yes
mbstring : yes
pcre : yes; version: 10.40 2022-04-14
simplexml : yes; libxml version: 2.9.13
dom : yes
intl : no
-optional->
gd : yes: version: 2.3.3
imagick : no: version: -.-.-
-alternative->
igbinary : no
msgpack : no
jsond : no
jsond as json >> : no
-compression->
zlib : yes
gzip : yes
bz2 : yes
lz4 : no
zstd : no
brotli : no
-affecting->
opcache : yes; enabled: 0
xcache : no; enabled: 0
apc : no; enabled: 1
eaccelerator : no; enabled: 0
xdebug : no, enabled: 0, mode: ''
PHP parameters
open_basedir : is empty? yes
mb.func_overload : 0
-------------------------------------------------------------------------------------------
TEST NAME : SECONDS | OP/SEC | OP/SEC/MHz | MEMORY
-------------------------------------------------------------------------------------------
01_math : 6.163 sec | 324.50 kOp/s | 135.13 Ops/MHz | 4 Mb
02_string_concat : 3.527 sec | 7.09 MOp/s | 2.95 kOps/MHz | 89.83 Mb
03_1_string_number_concat : 2.549 sec | 1.96 MOp/s | 816.97 Ops/MHz | 4 Mb
03_2_string_number_format : 2.212 sec | 2.26 MOp/s | 941.26 Ops/MHz | 4 Mb
04_string_simple_functions : 2.043 sec | 636.35 kOp/s | 264.99 Ops/MHz | 4 Mb
05_string_multibyte : 1.829 sec | 71.09 kOp/s | 29.60 Ops/MHz | 4 Mb
06_string_manipulation : 6.937 sec | 187.40 kOp/s | 78.04 Ops/MHz | 4 Mb
07_regex : 10.412 sec | 124.85 kOp/s | 51.99 Ops/MHz | 4 Mb
08_1_hashing : 3.770 sec | 344.80 kOp/s | 143.59 Ops/MHz | 4 Mb
08_2_crypt : 13.329 sec | 750.22 Op/s | 0.31 Ops/MHz | 4 Mb
09_json_encode : 5.817 sec | 223.46 kOp/s | 93.06 Ops/MHz | 4 Mb
10_json_decode : 8.762 sec | 148.37 kOp/s | 61.79 Ops/MHz | 4 Mb
11_serialize : 3.601 sec | 361.02 kOp/s | 150.34 Ops/MHz | 4 Mb
12_unserialize : 3.513 sec | 370.05 kOp/s | 154.10 Ops/MHz | 4 Mb
13_array_fill : 6.150 sec | 14.63 MOp/s | 6.09 kOps/MHz | 14 Mb
14_array_range : 2.293 sec | 65.41 kOp/s | 27.24 Ops/MHz | 14 Mb
14_array_unset : 5.064 sec | 17.77 MOp/s | 7.40 kOps/MHz | 14 Mb
15_clean_loops : 2.605 sec | 153.53 MOp/s | 63.94 kOps/MHz | 4 Mb
16_loop_ifelse : 6.008 sec | 16.65 MOp/s | 6.93 kOps/MHz | 4 Mb
17_loop_ternary : 7.397 sec | 13.52 MOp/s | 5.63 kOps/MHz | 4 Mb
18_1_loop_defined_access : 2.058 sec | 24.29 MOp/s | 10.12 kOps/MHz | 4 Mb
18_2_loop_undefined_access : 9.134 sec | 5.47 MOp/s | 2.28 kOps/MHz | 4 Mb
19_type_functions : 2.997 sec | 1.33 MOp/s | 555.80 Ops/MHz | 4 Mb
20_type_casting : 3.047 sec | 1.31 MOp/s | 546.70 Ops/MHz | 4 Mb
21_0_loop_exception_none : 0.364 sec | 27.46 MOp/s | 11.44 kOps/MHz | 4 Mb
21_1_loop_exception_try : 0.363 sec | 27.56 MOp/s | 11.48 kOps/MHz | 4 Mb
21_2_loop_exception_catch : 8.905 sec | 1.12 MOp/s | 467.61 Ops/MHz | 4 Mb
22_loop_null_op : 2.690 sec | 22.30 MOp/s | 9.29 kOps/MHz | 4 Mb
23_loop_spaceship_op : 2.688 sec | 22.32 MOp/s | 9.30 kOps/MHz | 4 Mb
26_1_class_public_properties : 0.297 sec | 33.67 MOp/s | 14.02 kOps/MHz | 4 Mb
26_2_class_getter_setter : 0.847 sec | 11.81 MOp/s | 4.92 kOps/MHz | 4 Mb
26_3_class_magic_methods : 2.883 sec | 3.47 MOp/s | 1.44 kOps/MHz | 4 Mb
27_simplexml : 9.135 sec | 5.47 kOp/s | 2.28 Ops/MHz | 4 Mb
28_domxml : 9.674 sec | 5.17 kOp/s | 2.15 Ops/MHz | 4 Mb
29_datetime : 1.200 sec | 416.69 kOp/s | 173.52 Ops/MHz | 4 Mb
30_intl_number_format : -.--- sec | -.-- Op/s | -.-- Ops/MHz | 0
31_intl_message_format : -.--- sec | -.-- Op/s | -.-- Ops/MHz | 0
32_intl_calendar : -.--- sec | -.-- Op/s | -.-- Ops/MHz | 0
33_phpinfo_generate : 7.949 sec | 1.26 kOp/s | 0.52 Ops/MHz | 4 Mb
34_gd_qrcode : 1.907 sec | 524.28 Op/s | 0.22 Ops/MHz | 4 Mb
-------------------------------------------------------------------------------------------
Total: : 170.119 sec | 6.56 MOp/s | 2.73 kOps/MHz |
Current PHP memory usage: : 4 Mb
Peak PHP memory usage: : 86.68 Mb
-------------------------------------------------------------------------------------------
End : 2024-06-27 11:25:31
결과를 보니 구형 제온 CPU L5639 이긴 하지만 오라클 클라우드 Ampere® Altra™ ARM 서버 성능이 더 좋네요~
비교 하려고 i7-7700 에서도 테스트해봤습니다.
i7-7700 PHP 5.4 : 194.606 sec
i7-7700 PHP 8.2 : 76.513 sec
E5-2650v4 PHP 8.2 : 103.575 sec
728x90
반응형
'LAMP' 카테고리의 다른 글
[Rocky] 아파치 index.html 다운로드 현상 (0) | 2024.06.25 |
---|---|
[CentOS] Apache 재시작 오류 (0) | 2023.07.17 |
[CentOS] 8 Stream APACHE + PHP-FPM PHP Multiple 설치 방법 (0) | 2023.01.31 |
[CentOS] 7.x 아파치2.4 + PHP-FPM + PHP Multiple 설치 방법 (0) | 2023.01.13 |
Invalid command SSLPassPhraseDialog 에러 (0) | 2021.06.15 |
Trackback : | Comments :