Tests
Suites
Latest Results
Search
Register
Login
Popular Tests
Timed Linux Kernel Compilation
Blender
7-Zip Compression
SVT-AV1
FFmpeg
Newest Tests
OpenVINO GenAI
Rustls
LiteRT
WarpX
Epoch
Valkey
Recently Updated Tests
x265
RELION
Llama.cpp
OpenVINO
Renaissance
Blender
New & Recently Updated Tests
Recently Updated Suites
Machine Learning
Server Motherboard
HPC - High Performance Computing
New & Recently Updated Suites
Component Benchmarks
CPUs / Processors
GPUs / Graphics
OpenGL
Disks / Storage
Motherboards
File-Systems
Operating Systems
OpenBenchmarking.org
Corporate / Organization Info
Bug Reports / Feature Requests
PHPBench 1.1.2
pts/phpbench-1.1.2
- 12 November 2017 -
Updated handling of $PHP_BIN
downloads.xml
<?xml version="1.0"?> <!--Phoronix Test Suite v7.6.0m2--> <PhoronixTestSuite> <Downloads> <Package> <URL>http://download.pureftpd.org/pub/phpbench/phpbench-0.8.1.tar.gz, ftp://ftp.pureftpd.org/pub/pure-ftpd/misc/phpbench/phpbench-0.8.1.tar.gz</URL> <MD5>9ee2e4305e320c7f20a3d81978c8d0dc</MD5> <FileSize>9482</FileSize> </Package> </Downloads> </PhoronixTestSuite>
install.sh
#!/bin/sh tar -zxvf phpbench-0.8.1.tar.gz cd phpbench-0.8.1 patch -p1 << 'EOF' --- a/phpbench.php +++ b/phpbench.php @@ -1,6 +1,6 @@ #! /usr/bin/env php <?php - +error_reporting(0); ignore_user_abort(TRUE); error_reporting(E_ALL); set_time_limit(0); --- a/tests/test_arithmetic.php +++ b/tests/test_arithmetic.php @@ -10,12 +10,13 @@ function test_arithmetic($base) { $b = $a - $b; $a = $a * $b; $c = $a; + $a = 1; // avoid divide by zero warning @$b = $b / $a; $a = $a % $b; } while (--$t !== 0); if (!(empty($a) && empty($b)) || $c !== 0) { - test_regression(__FUNCTION__); +// test_regression(__FUNCTION__); } return test_end(__FUNCTION__); } --- a/tests/test_casting.php +++ b/tests/test_casting.php @@ -1,5 +1,5 @@ <?php - +error_reporting(0); function test_casting($base) { $t = $base; test_start(__FUNCTION__); --- a/tests/test_ereg.php +++ b/tests/test_ereg.php @@ -12,9 +12,9 @@ function test_ereg($base) { $matches = array(); do { foreach ($strings as $string) { - if (eregi('^[a-z0-9]+([_\\.-][a-z0-9]+)*' . - '@([a-z0-9]+([\.-][a-z0-9]{1,})+)*$', - $string, $matches) <= 0 || + if (preg_match('/^[a-z0-9]+([_\\.-][a-z0-9]+)*' . + '@([a-z0-9]+([\.-][a-z0-9]{1,})+)*$/i', + $string, $matches) <= 0 || empty($matches[2])) { test_regression(__FUNCTION__); } EOF cd ~ echo "#!/bin/sh cd phpbench-0.8.1/ \$PHP_BIN phpbench.php \$@ > \$LOG_FILE 2> /dev/null" > phpbench chmod +x phpbench
results-definition.xml
<?xml version="1.0"?> <!--Phoronix Test Suite v7.6.0m2--> <PhoronixTestSuite> <ResultsParser> <OutputTemplate>Score : #_RESULT_# (higher is better)</OutputTemplate> </ResultsParser> </PhoronixTestSuite>
test-definition.xml
<?xml version="1.0"?> <!--Phoronix Test Suite v7.6.0m2--> <PhoronixTestSuite> <TestInformation> <Title>PHPBench</Title> <AppVersion>0.8.1</AppVersion> <Description>PHPBench is a benchmark suite for PHP. It performs a large number of simple tests in order to bench various aspects of the PHP interpreter. PHPBench can be used to compare hardware, operating systems, PHP versions, PHP accelerators and caches, compiler options, etc. The number of iterations used is 1,000,000.</Description> <ResultScale>Score</ResultScale> <Proportion>HIB</Proportion> <SubTitle>PHP Benchmark Suite</SubTitle> <TimesToRun>3</TimesToRun> </TestInformation> <TestProfile> <Version>1.1.2</Version> <SupportedPlatforms>Linux, BSD</SupportedPlatforms> <SoftwareType>Utility</SoftwareType> <TestType>System</TestType> <License>Free</License> <Status>Verified</Status> <EnvironmentSize>1</EnvironmentSize> <ProjectURL>http://www.pureftpd.org/project/phpbench</ProjectURL> <Maintainer>Michael Larabel</Maintainer> </TestProfile> <TestSettings> <Default> <Arguments>-i 1000000</Arguments> </Default> </TestSettings> </PhoronixTestSuite>