search
Homephp教程php手册Yaf 2.1性能测试(Yaf 2.1 Benchmark)

  Thanks to Ruilog agian for his work of second benchmark of Yaf 2.1.

  Yaf 2.1 (docs) did a lot of work to improve performance and reduce memory usage, so let’s take a look at the result(Yaf 2.1重写了很多逻辑来提升性能, 并且降低内存使用率, 改进结果见测试对比):

  First of all, I have to say, I am not saying the fastest is the best. every framework list blew is outstanding, and has particular situation to deploy. (首先, 我要申明, 不一定最快的就是最好的, 下面的每一个框架都是优秀的框架, 都有它们适用的场景)

  Case

  Test Simple “Hello World” page output, Simple MVC logic(Router -> Controller -> Viewer), No Database Connections, No complex logic. Test scripts can be found here.

  Hardware platform

  CPU: Intel Core i5 750 (2.67GHz x4)

  RAM: 4GB

  Software Environment

  Debian 6.0.3 x86_64 (2.6.32-39)

  apache 2.2.16 (mpm-prefork,mod-php5)

  php 5.3.8

  php-apc 3.1.9 (Optimization for include/require)

  Copy all projects to /dev/shm/* (Optimization for files read/write)

  1. Apache Benchmark

  Requests pre second (-c 100 -n 30000), the bigger is better

  

 

  ab -c100 -n30000

  Requests pre second (-c 200 -n 50000), the bigger is better

  

 

  ab -c200 -n50000

  2. System LoadAvg

  System LoadAvg in 1 Minute when Apache Benchmark Complete, the smaller is better (-c 100 -n 30000)

  

 

  System LoadAvg (ab -c100 -n30000)

  3. Memory usage

  How many memory usage in one “hello world” page. the smaller is better.

  

 

  Memory usage

  4. Response time

  The time of page request to response.

  

 

  Response time

  5.Number of function calls (Facebook XHProf)

  The number of functions calls in one “hello world” page.

  

 

  Number of function calls

  6. Number of included files

  The number of files included or required in one “hello world” page. the fewer is better.

  

 

  Number of included files

  –EOF–



Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.