Tech geek. Life geek.

Tag: benchmark (Page 1 of 2)

PHP Benchmark of php 7.4.3 on a VPS

It is a performance test for PHP Benchmark on a VPS at a DigitalOcean droplet.
The server is located at San Francisco Datacenter 2.
Here is the system information:
Operating system Ubuntu Linux 20.04
Webmin version 1.941
Time on system Sun Apr 26 18:41:34 2020
Kernel and CPU Linux 5.4.0-26-generic on x86_64
Processor information Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz, 1 cores

The VPS has 1 CPU, 1GB RAM, 25GB Storage.

The php I installed on the VPS is just from the Ubuntu 20.04. It is php 7.4.3.

phpinfo of php v7.4.3

How To test the PHP benchmark.

I tested 7 times. So get rid of the highest one, and the lowest one. Get the average of the rest five scores.

|        PHP BENCHMARK SCRIPT        |
Start : 2020-04-26 18:36:58
Server :
PHP version : 7.4.3
Platform : Linux
test_math                 : 0.505 sec.
test_stringmanipulation   : 0.503 sec.
test_loops                : 0.223 sec.
test_ifelse               : 0.130 sec.
Total time:               : 1.361 sec.

The average results are 1.375sec.

AS SSD Benchmark Test on Samsung 970 EVO Plus NVMe M.2 SSD

I did a little bit test on my new Samsung  970 EVO Plus  NVMe 250GB SSD.

After I installed the new Samsung SSD and migrate the system disk to it. The default NVMe driver is Windows 10 builtin driver.

Microsoft Standard NVM Express Controller

Driver version: 10.0.18362.1

Driver date: 6/21/2006

Standard NVM Express Controller


It can be confirmed on the Samsung Magician software. Under NVMe Driver, it shows Microsoft.

Samsung Magician


The test result based on AS SSD Benchmark 1.8.5636.37293.

Stornvme driver Score on AS SSD Benchmark 1.8

The score is 3178.

Later I found AS SSD Benchmark has a new version. V2.0.6812.41776.

Then I run the test on the new AS SSD Benchmark software.

Continue reading

php Benchmark test on php 7.2

Now it is a php 7.2. Included in the Ubuntu 18.04.

My site is running on this platform. I also want to try to run the php Benchmark test, and see how fast it is.


|        PHP BENCHMARK SCRIPT        |
Start : 2018-06-07 11:38:41
Server :
PHP version : 7.2.5-0ubuntu0.18.04.1
Platform : Linux
test_ifelse               : 0.159 sec.
test_loops                : 0.249 sec.
test_stringmanipulation   : 0.394 sec.
test_math                 : 0.284 sec.
Total time:               : 1.086 sec.

I ran five times and the average time is 1.113 second.

Compare with the previous PHP.

  • php 7.0, 2.342 seconds
  • HHVM 5.6.99,  1.4 seconds
  • php 5.5, 5.646 seconds
  • php 5.4, 5.417 seconds
  • php 5.3, 6.567 seconds

Continue reading

AS SSD Benchmark Test on Crucial MX300 275GB

It is a quick test based on my Windows 10 Pro. It is just a new installation on my new desktop PC.


The testing tool is AS SSD Benchmark 1.9.5986.35387. It is latest one when I download it from the official site.

The result is not as good as I thought. I will check it later and see if it is any way can improve the performance.

Upgrade Curcial BX100 SSD Firmware

It is almost two years old of my Crucial BX100 256GB SSD. Now, I upgraded its firmware from MU01 to MU02. Then I did the benchmark test. The result is very clear that new firmware improve the performance.

The original test I did in 2014 shown as below:

sata3 ssd benchmark

AS SSD Benchmark test Result on Crucial BX100 256GB SSD with MU02 Firmware

The new test I did ten minutes ago.

ssd mu02 new firmware benchmark test

All test results are better than before. Same PC, Same SATA driver. Just different firmware.

Continue reading

PHP Benchmark on HHVM, Nginx Web Server

The test is almost same as I did before on php 5.5, php5.4 and php5.3, or php-fpm. It is running on the HHVM and Nginx.

The installation of Ubuntu 14.04, Nginx, MariaDB, HHVM is posted yesterday.

Using default HHVM settings. The HHVM is version 3.5.0, Nginx is v1.6.2.

|        PHP BENCHMARK SCRIPT        |
Start : 2015-02-12 00:03:25
Server :
PHP version : 5.6.99-hhvm
Platform : Linux
test_ifelse               : 1.541 sec.
test_math                 : 0.935 sec.
test_stringmanipulation   : 1.153 sec.
test_loops                : 2.262 sec.
Total time:               : 5.891 sec.

It took more time than any other php version. I am confused and try to repeat the test, by refreshing the page.
The first ten times, are all around 5.8 seconds. Lower 5.788, higher 6.162. The eleventh gave me a shot, it is only 1.44 seconds. I kept refresh the page and saw similar results, around 1.4 seconds.
php-bench-1second-hhvm Continue reading


My desktop PC motherboard just support up to SATA II. You know I have a SATA III SSD drive. I would like to see more improvement on speed.

The specs of my PC:

SATA II is 3Gbits/s – 300M/s

SATA III is 6Gbits/s – 600M/s

1) I installed the SSD on my Desktop with the onboard SATA II connection.

See the report below:


SSD is connected as a second drive.


SSD is connected as a primary drive. System is installed on it.


Testing result by CrystalDiskMark.

Continue reading

PHP bench test results of PHP 5.3, PHP 5.4, and PHP 5.5

It is a bench test. Testing on the testing machine I just installed in the previous post.

Including PHP 5.3.28, PHP 5.4.28, and PHP 5.5.12, installed with fastcgi running on Apache and mod_fcgid.

PHP 5.3 is 6.567 seconds.

|        PHP BENCHMARK SCRIPT        |
Start : 2014-05-24 16:27:00
Server :
PHP version : 5.3.28
Platform : Linux
test_math                 : 1.724 sec.
test_stringmanipulation   : 1.741 sec.
test_loops                : 1.852 sec.
test_ifelse               : 1.250 sec.
Total time:               : 6.567 sec.

PHP 5.4 is 5.417 seconds.

|        PHP BENCHMARK SCRIPT        |
Start : 2014-05-24 23:27:23
Server :
PHP version : 5.4.28
Platform : Linux
test_math                 : 1.556 sec.
test_stringmanipulation   : 1.664 sec.
test_loops                : 1.328 sec.
test_ifelse               : 0.869 sec.
Total time:               : 5.417 sec.


PHP 5.5 is 5.646 seconds.

|        PHP BENCHMARK SCRIPT        |
Start : 2014-05-24 23:27:15
Server :
PHP version : 5.5.12
Platform : Linux
test_math                 : 1.618 sec.
test_stringmanipulation   : 1.723 sec.
test_loops                : 1.363 sec.
test_ifelse               : 0.942 sec.
Total time:               : 5.646 sec.


I Repeated the test many times and in different order. The results is consistent.

PHP 5.4 is a little bit faster than PHP 5.5. Both PHP 5.5 and PHP 5.4 are almost 1 second faster than PHP 5.3.

Performance between PHP5.3.3 and PHP5.5.12

I installed PHP5.3.3 and PHP5.4.28 at the same time in one VirtualBox guest OS.

Basic information.

  • Host OS: Windows 7 Ultimate 64bit
  • VirtualBox 4.3.12
  • Guest OS: CentOS 6.5 64bit with 512MB base memory
  • PHP5.3.3 is installed as mod_php
  • PHP5.5.12 is installed as php-fpm with mod_fastcgi


Run PHP BENCHMARK SCRIPT to get the total time.


The total time of PHP 5.3.3 is 6.746 seconds.


The total time of PHP 5.5.12 is 5.628 seconds.

I  repeated the test many times. The average difference is 85%. On the other words, PHP 5.5 spend 1 second less than PHP 5.3.



« Older posts

© 2020 David Yin's Blog

Theme by Anders NorenUp ↑