Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 13d60c0

Browse files
Версия 1.0.43
- обновлены базовые времена отработки скрипта - поправлена проверка на загрузку xdebug
1 parent 3db7d0c commit 13d60c0

File tree

3 files changed

+40
-32
lines changed

3 files changed

+40
-32
lines changed

‎CHANGELOG.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# ChangeLog
22

3+
@ 2021年11月26日, v1.0.43
4+
5+
* Добавлена поддержка php-8.1
6+
* Исправлен тест 14-array-unset - php-8.1 ругался на несуществующие индексы
7+
* Обновлены кол-ва итераций в тестах и времена выполнения
8+
* Исправлена проверка на загрузку xdebug
9+
310
@ 2021年11月21日, v1.0.42
411

512
* Добавлены тесты xml обработчиков: simplexml, dom

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Простой скрипт проверки быстродействия PHP
22

3-
Работает со всеми версиями ПХП: от 4.3 до 8.0
3+
Работает со всеми версиями ПХП: от 4.3 до 8.1
44

55
## Зависимости
66

‎bench.php‎

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
# Company : Code24 BV, The Netherlands #
1010
# Author : Sergey Dryabzhinsky #
1111
# Company : Rusoft Ltd, Russia #
12-
# Date : Jun 21, 2021 #
13-
# Version : 1.0.43-dev #
12+
# Date : Nov 26, 2021 #
13+
# Version : 1.0.43 #
1414
# License : Creative Commons CC-BY license #
1515
# Website : https://github.com/rusoft/php-simple-benchmark-script #
1616
# Website : https://git.rusoft.ru/open-source/php-simple-benchmark-script #
@@ -32,7 +32,7 @@ function print_pre($msg) {
3232
flush();
3333
}
3434

35-
$scriptVersion = '1.0.43-dev';
35+
$scriptVersion = '1.0.43';
3636

3737
// Special striing to flush buffers, nginx for example
3838
$flushStr = '<!-- '.str_repeat("", 4096).' -->';
@@ -354,35 +354,35 @@ function print_pre($msg) {
354354
$loopMaxPhpTimesMHz = 3800;
355355
// How much time needed for tests on this machine
356356
$loopMaxPhpTimes = array(
357-
'4.4' => 308,
358-
'5.2' => 226,
359-
'5.3' => 195,
360-
'5.4' => 174,
361-
'5.5' => 173,
362-
'5.6' => 170,
363-
'7.0' => 93,
364-
'7.1' => 92,
365-
'7.2' => 87,
366-
'7.3' => 78,
367-
'7.4' => 78,
368-
'8.0' => 73,
369-
'8.1' => 71,
357+
'4.4' => 322,
358+
'5.2' => 243,
359+
'5.3' => 207,
360+
'5.4' => 181,
361+
'5.5' => 177,
362+
'5.6' => 174,
363+
'7.0' => 97,
364+
'7.1' => 96,
365+
'7.2' => 92,
366+
'7.3' => 83,
367+
'7.4' => 79,
368+
'8.0' => 75,
369+
'8.1' => 74,
370370
);
371371
// Simple and fast test times, used to adjust all test times and limits
372372
$dumbTestMaxPhpTimes = array(
373-
'4.4' => 0.983,
374-
'5.2' => 0.721,
375-
'5.3' => 0.659,
376-
'5.4' => 0.720,
377-
'5.5' => 0.723,
378-
'5.6' => 0.723,
379-
'7.0' => 0.401,
380-
'7.1' => 0.393,
381-
'7.2' => 0.387,
382-
'7.3' => 0.311,
383-
'7.4' => 0.315,
384-
'8.0' => 0.298,
385-
'8.1' => 0.298,
373+
'4.4' => 1.041,
374+
'5.2' => 0.771,
375+
'5.3' => 0.737,
376+
'5.4' => 0.769,
377+
'5.5' => 0.770,
378+
'5.6' => 0.781,
379+
'7.0' => 0.425,
380+
'7.1' => 0.425,
381+
'7.2' => 0.412,
382+
'7.3' => 0.339,
383+
'7.4' => 0.340,
384+
'8.0' => 0.324,
385+
'8.1' => 0.323,
386386
);
387387
// Nice dice roll
388388
// Should be passed into 600 seconds
@@ -1016,10 +1016,11 @@ function format_result_test($diffSeconds, $opCount, $memory = 0)
10161016
}
10171017
$has_xdebug = "no";
10181018
if (extension_loaded('xdebug')) {
1019-
$has_debug = "yes";
1019+
print_pre("Extenstion 'xdebug' loaded! It will affect results and slow things greatly! Even if not enabled!");
1020+
$has_xdebug = "yes";
10201021
}
10211022
$has_dom = "no";
1022-
if (extension_loaded('dom') || extension_loaded('domxml')) {
1023+
if (extension_loaded('dom')) {
10231024
$has_dom = "yes";
10241025
}
10251026
$has_simplexml = "no";

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /