9
9
# Company : Code24 BV, The Netherlands #
10
10
# Author : Sergey Dryabzhinsky #
11
11
# Company : Rusoft Ltd, Russia #
12
- # Date : Jun 6 , 2025 #
13
- # Version : 1.0.64 #
12
+ # Date : Jun 7 , 2025 #
13
+ # Version : 1.0.65 #
14
14
# License : Creative Commons CC-BY license #
15
15
# Website : https://github.com/rusoft/php-simple-benchmark-script #
16
16
# Website : https://gitea.rusoft.ru/open-source/php-simple-benchmark-script #
20
20
21
21
include_once ("php-options.php " );
22
22
23
- $ scriptVersion = '1.0.64 ' ;
23
+ $ scriptVersion = '1.0.65 ' ;
24
24
25
25
// Special string to flush buffers, nginx for example
26
26
$ flushStr = '<!-- ' .str_repeat (" " , 8192 ).' --> ' ;
105
105
if (extension_loaded ('ctype ' )) {
106
106
@include_once ("mod-ctype-isdigit.inc " );
107
107
}
108
+ if (extension_loaded ('iconv ' )) {
109
+ @include_once ("mod-iconv.inc " );
110
+ }
111
+ if (extension_loaded ('session ' )) {
112
+ @include_once ("mod-session.inc " );
113
+ }
108
114
if (file_exists ('UUID.php ' ) && PHP_VERSION >= '5.0.0 ' ) {
109
115
@include_once ("php-uuid.inc " );
110
116
}
@@ -728,7 +734,7 @@ function gethostname() {
728
734
$ loopMaxPhpTimesMHz = 3500 ;
729
735
// How much time needed for tests on this machine
730
736
$ loopMaxPhpTimes = array (
731
- '4.4 ' => 1456 ,
737
+ '4.4 ' => 2099 ,
732
738
'5.2 ' => 839 ,
733
739
'5.3 ' => 1235 ,
734
740
'5.4 ' => 1510 ,
@@ -743,7 +749,7 @@ function gethostname() {
743
749
'8.1 ' => 450 ,
744
750
'8.2 ' => 427 ,
745
751
'8.3 ' => 582 ,
746
- '8.4 ' => 736
752
+ '8.4 ' => 529
747
753
);
748
754
// Simple and fast test times, used to adjust all test times and limits
749
755
$ dumbTestMaxPhpTimes = array (
@@ -838,6 +844,8 @@ function gethostname() {
838
844
'41_01_sodium_string_num_int ' => 10000000 ,
839
845
'41_02_sodium_string_num_float ' => 10000000 ,
840
846
'42_ctype_isdigit ' => 10000000 ,
847
+ '43_iconv_translit ' => 10000000 ,
848
+ '44_session_time ' => 100000 ,
841
849
);
842
850
// Should not be more than X Mb
843
851
// Different PHP could use different amount of memory
@@ -913,6 +921,8 @@ function gethostname() {
913
921
'41_01_sodium_string_num_int ' => 4 ,
914
922
'41_02_sodium_string_num_float ' => 4 ,
915
923
'42_ctype_isdigit ' => 4 ,
924
+ '43_iconv_translit ' => 4 ,
925
+ '44_session_time ' => 4 ,
916
926
);
917
927
918
928
/** ---------------------------------- Common functions -------------------------------------------- */
@@ -1820,6 +1830,14 @@ function filter_out_name_by_pattern($key)
1820
1830
if (extension_loaded ('ctype ' )) {
1821
1831
$ has_ctype = "{$ colorGreen }yes {$ colorReset }" ;
1822
1832
}
1833
+ $ has_iconv = "{$ colorYellow }no {$ colorReset }" ;
1834
+ if (extension_loaded ('iconv ' )) {
1835
+ $ has_iconv = "{$ colorGreen }yes {$ colorReset }" ;
1836
+ }
1837
+ $ has_session = "{$ colorYellow }no {$ colorReset }" ;
1838
+ if (extension_loaded ('session ' )) {
1839
+ $ has_session = "{$ colorGreen }yes {$ colorReset }" ;
1840
+ }
1823
1841
$ has_zlib = "{$ colorYellow }no {$ colorReset }" ;
1824
1842
$ has_gzip = "{$ colorYellow }no {$ colorReset }" ;
1825
1843
if (extension_loaded ('zlib ' )) {
@@ -1864,10 +1882,10 @@ function filter_out_name_by_pattern($key)
1864
1882
}
1865
1883
1866
1884
if (!defined ('PCRE_VERSION ' )) define ('PCRE_VERSION ' , '-.-- ' );
1867
- if (!defined ('ZLIB_VERSION ' )) define ('ZLIB_VERSION ' , '-.-- ' );
1868
- if (!defined ('MEMCACHE_VERSION ' )) define ('MEMCACHE_VERSION ' , '-.-- ' );
1869
- if (!defined ('REDIS_VERSION ' )) define ('REDIS_VERSION ' , '-.-- ' );
1870
- if (!defined ('SQLITE3_VERSION ' )) define ('SQLITE3_VERSION ' , '-.-- ' );
1885
+ if (!defined ('ZLIB_VERSION ' )) define ('ZLIB_VERSION ' , '-.-. - ' );
1886
+ if (!defined ('MEMCACHE_VERSION ' )) define ('MEMCACHE_VERSION ' , '-.-. - ' );
1887
+ if (!defined ('REDIS_VERSION ' )) define ('REDIS_VERSION ' , '-.-. - ' );
1888
+ if (!defined ('SQLITE3_VERSION ' )) define ('SQLITE3_VERSION ' , '-.-. - ' );
1871
1889
if (!defined ('LIBXML_DOTTED_VERSION ' )) define ('LIBXML_DOTTED_VERSION ' , '-.-.- ' );
1872
1890
if (!defined ('SODIUM_LIBRARY_VERSION ' )) define ('SODIUM_LIBRARY_VERSION ' , '-.-.- ' );
1873
1891
if (!defined ('INTL_ICU_VERSION ' )) define ('INTL_ICU_VERSION ' , '-.- ' );
@@ -1881,7 +1899,7 @@ function print_results_common()
1881
1899
global $ line , $ padHeader , $ cpuInfo , $ padInfo , $ scriptVersion , $ maxTime , $ originTimeLimit , $ originMemoryLimit , $ cryptAlgoName , $ memoryLimitMb ;
1882
1900
global $ flushStr , $ has_apc , $ has_pcre , $ has_intl , $ has_json , $ has_simplexml , $ has_dom , $ has_mbstring , $ has_opcache , $ has_xcache ;
1883
1901
global $ has_gd , $ has_gdgif , $ has_gdpng , $ has_gdjpg , $ has_gdwebp , $ has_gdavif ;
1884
- global $ has_imagick , $ has_igb , $ has_msg , $ has_jsond , $ has_jsond_as_json , $ has_ctype ;
1902
+ global $ has_imagick , $ has_igb , $ has_msg , $ has_jsond , $ has_jsond_as_json , $ has_ctype, $ has_iconv , $ has_session ;
1885
1903
global $ has_zlib , $ has_uuid , $ has_gzip , $ has_bz2 , $ has_lz4 , $ has_snappy , $ has_zstd , $ has_brotli ;
1886
1904
global $ has_apcu , $ has_shmop , $ has_memcache , $ has_redis , $ has_sodium , $ has_sqlite3 , $ opcache , $ has_eacc , $ has_xdebug , $ xcache , $ apcache , $ eaccel , $ xdebug , $ xdbg_mode , $ obd_set , $ mbover ;
1887
1905
global $ showOnlySystemInfo , $ padLabel , $ functions , $ runOnlySelectedTests , $ selectedTests , $ totalOps ;
@@ -1916,6 +1934,8 @@ function print_results_common()
1916
1934
. str_pad ("simplexml " , $ padInfo , ' ' , STR_PAD_LEFT ) . " : $ has_simplexml; libxml version: " .LIBXML_DOTTED_VERSION ."\n"
1917
1935
. str_pad ("dom " , $ padInfo , ' ' , STR_PAD_LEFT ) . " : $ has_dom \n"
1918
1936
. str_pad ("ctype " , $ padInfo , ' ' , STR_PAD_LEFT ) . " : $ has_ctype \n"
1937
+ . str_pad ("iconv " , $ padInfo , ' ' , STR_PAD_LEFT ) . " : $ has_iconv \n"
1938
+ . str_pad ("session " , $ padInfo , ' ' , STR_PAD_LEFT ) . " : $ has_session \n"
1919
1939
. str_pad ("intl " , $ padInfo , ' ' , STR_PAD_LEFT ) . " : $ has_intl " . ($ has_intl == "{$ colorGreen }yes {$ colorReset }" ? '; icu version: ' . INTL_ICU_VERSION : '' )."\n"
1920
1940
. str_pad ("-optional-> " , $ padInfo , ' ' , STR_PAD_LEFT ) . "\n"
1921
1941
. str_pad ("gd " , $ padInfo , ' ' , STR_PAD_LEFT ) . " : $ has_gd: version: " . GD_VERSION ."\n"
@@ -1926,7 +1946,7 @@ function print_results_common()
1926
1946
. str_pad ("\t- AVIF " , $ padInfo , ' ' , STR_PAD_LEFT ) . " : $ has_gdavif " ."\n"
1927
1947
. str_pad ("imagick " , $ padInfo , ' ' , STR_PAD_LEFT ) . " : $ has_imagick: version: " .IMG_VERSION ."\n"
1928
1948
. str_pad ("apcu " , $ padInfo , ' ' , STR_PAD_LEFT ) . " : $ has_apcu; \n"
1929
- . str_pad ("shmop " , $ padInfo , ' ' , STR_PAD_LEFT ) . " : $ has_shmop; \n"
1949
+ . str_pad ("shmop " , $ padInfo , ' ' , STR_PAD_LEFT ) . " : $ has_shmop \n"
1930
1950
. str_pad ("memcache " , $ padInfo , ' ' , STR_PAD_LEFT ) . " : $ has_memcache, version: " .MEMCACHE_VERSION ."; \n"
1931
1951
. str_pad ("redis " , $ padInfo , ' ' , STR_PAD_LEFT ) . " : $ has_redis, version: " .REDIS_VERSION ."; \n"
1932
1952
. str_pad ("sqlite3 " , $ padInfo , ' ' , STR_PAD_LEFT ) . " : $ has_sqlite3, version: " .SQLITE3_VERSION ."; \n"
0 commit comments