stargeek
PHP news website logo.
home    PHP scripts    articles    seo tools    links    search    contact    shop    realtors


Benchmarking PHP with no BS







Benchmarking PHP with no BS

Benchmarking PHP with no BS 04/09/2004 03:58 PM

After I posted my XML benchmarks in February 2004, I was approached by Indu Britto to convert a discussion of the full benchmarks into an article for PHP Magazine. I kept on postponing him (correction, 2 Apr 2004: Indu is a her, apologies for the goof), but in a way, Prophet Mohammed helped me write the article. I'm not muslim, but the prophet's birthday is a public holiday in Malaysia. That gave me the breathing room to write the article.

I tried to make the article interesting by not focusing on the mechanics of the benchmark (yawn), but on useful results that everyone can use to improve their code. I was very pleased (and surprised - no one told me beforehand) to hear that the editors decided to feature it as the main article of the March 2004 issue.

Now that it has been published, i can announce that the source code of the benchmarking suite and results are available at http://ormestech.com/benchmark_suite/ . The results are static html pages to prevent enthusiatic testers from bringing our server to its knees. You should download the source code to try out all its functionality. The benchmarks are easily extensible also. You just need to add new benchmarking files and the benchmarking suite will auto-detect the files.

The nice thing about the benchmarks is that it measures relative performance between algorithms, so you can make meaningful conclusions across disparate hardware platforms. And if you need more clarification, you can read it (shameless plug) in PHP-Mag.




This is a GrokNews Entry: (what is grok?)





Similar Items

Benchmarking PHP with no BS

Grok Headline matches for Benchmarking PHP with no BS

Going the whole hog: benchmarking MDB


Going the whole hog: benchmarking MDB 02/06/2003 11:53 AM
Well since I just benchmarked dbx, I decided to go the whole hog and benchmark MDB also. This gives us a good idea of the performance of all the modern database abstraction classes available for PHP:
        Average	 Overhead
MySQL	 1.14	  -
dbx      1.37     20% (index only)
ADODB	 1.45	  27%
dbx      1.53     34% (index/assoc/info)
PhpLib	 1.60	  40%
MDB      1.75	  54%
PEAR DB  2.87	 152% (fetchInto)
PEAR DB  3.15	 176% (fetchRow)
M'base	 2.52	 296% (numeric cols)
M'base	 4.77	 318% (assoc cols)

More information and source code: http://phplens.com/lens/adodb/

"zeldman.gldys"

Benchmarking Blues


Benchmarking Blues 08/09/2004 01:31 PM
Notes from the Lab: We benchmark. Our competitors benchmark. We post results. They post results. Sometimes they conflict. Sometimes they don't. But what does it really mean, and why do we do it at all?

Benchmarking and Baselines in SEM


Benchmarking and Baselines in SEM 08/06/2004 02:46 PM
Source: ClickZ - Use internal benchmarking, or baselining. Beating your own baseline numbers is as satisfying as beating the competition because much of the lift comes from the competition. When you run smart, efficient campaigns, you take orders away from...

Doom 3 benchmarking


Doom 3 benchmarking 08/04/2004 03:11 PM

PHP Everywhere: Benchmarking with WAST


PHP Everywhere: Benchmarking with WAST 03/17/2005 02:48 AM
New from PHP Everywhere today is a new posting discussing the use of a web server benchmarking tool - Web Application Stress Tool.

PHPEverywhere: PHP Benchmarking Suite


PHPEverywhere: PHP Benchmarking Suite 02/12/2004 10:10 AM
John Lim from PHPEverywhere, there's a new posting about his PHP Benchmarking Suite making it easier to test your code and extend to conform to your testing needs.

John's PHP Benchmarking Suite (ZIP)


John's PHP Benchmarking Suite (ZIP) 02/11/2004 12:26 PM
My benchmarking suite. Apart from XML, it also benchmarks string handling, looping (foreach vs for), output buffering, etc. And it's easily extensible too.

I wrote it when i was thinking about writing a book on optimizing PHP, and realized i would need a benchmarking suite to test various performance hypotheses. Its not OOP, but i think it demonstrates how far you can make procedural programming extensible in PHP.

The benchmarking engine scans sub-directories, and each sub-directory is treated as a test suite. A .php file in a sub-directory is one test. Every .php file in a sub-directory can be run stand-alone, and when running stand-alone debugging output is generated so you can verify the correctness of the code you are measuring.

To install, just unpack in a web server directory, and open up index.php from your web browser.

Requires PHP 4.3 or later.


Benchmarking 64 Bit Video Workstations


Benchmarking 64 Bit Video Workstations 05/21/2004 11:34 AM

A case for software benchmarking


A case for software benchmarking 03/29/2005 11:18 AM
Comment Wheat and chaff

Benchmarking dbx, preliminary results


Benchmarking dbx, preliminary results 02/05/2003 11:18 AM
Yesterday, I benchmarked dbx, native MySQL and ADOdb. The results might be interesting to some of you:
                Average  Overhead
MySQL native	 1.14	  -
dbx              1.37     20% (flags=DBX_RESULT_INDEX)
ADOdb	         1.45	  27% (numeric indexes)
dbx              1.53     34% (default flags)
This reveals that dbx using default settings will provide no speedup over ADOdb because it also queries the field information and generates both associative and numeric indexes. The speedup of dbx over ADOdb is minimal when the dbx flags is set to DBX_RESULT_INDEX.

The benchmark algorithm used is the same one as that found at http://phplens.com/lens/adodb/ and if i have the time, i will upload the dbx benchmark source. Test system was a 800Mhz PIII running Win2000 with IIS and MySQL installed.

"zeldman.bbl"

Benchmarking Java XML processors


Benchmarking Java XML processors 07/01/2002 04:40 PM
Pankaj Kumar has announced XPB4J, a tool for measuring and comparing XML parsing/processing performance.

Benchmarking Perl scripts with
Benchmark.pm


Benchmarking Perl scripts with
Benchmark.pm
08/09/2004 05:42 AM
CNET Aug 9 2004 10:10AM GMT

Benchmarking Java XML processors
(xmlhack)


Benchmarking Java XML processors
(xmlhack)
07/02/2002 11:03 PM

Chaos Theory Benchmarking Scripts @
3DPulpit


Chaos Theory Benchmarking Scripts @
3DPulpit
04/18/2005 02:02 PM

DOOM 3 Cheats, Hacks, benchmarking and
Mods


DOOM 3 Cheats, Hacks, benchmarking and
Mods
08/05/2004 10:50 AM

Intel Dual Core: Multi-Tasking
Benchmarking


Intel Dual Core: Multi-Tasking
Benchmarking
04/11/2005 08:28 PM
Legit Reviews Apr 12 2005 12:23AM GMT

Socitm extends ICT benchmarking service
to education sector


Socitm extends ICT benchmarking service
to education sector
06/16/2004 03:41 AM
PublicTechnology.net Jun 16 2004 7:55AM GMT

Website Benchmarking Tool: US Healthcare
Professional Targeted Websites


Website Benchmarking Tool: US Healthcare
Professional Targeted Websites
04/19/2005 02:35 AM
Datamonitor Apr 19 2005 3:31AM GMT

Information Mosaic Wins Gold at
CityCompass Corporate Action
Benchmarking Competition


Information Mosaic Wins Gold at
CityCompass Corporate Action
Benchmarking Competition
09/09/2004 03:46 AM
Information Mosaic’s corporate actions automation application, CAMA™, has received the accolade of the GOLD AWARD in all three Industry sectors: asset manager, broker/dealer and custodian, in the CityCompass benchmarking competition B.I.S.S. (Benchmarking International Software Systems) Gold Awards, judged by Bloor research. The CityCompass event is recognized as the only international competition for corporate action solutions. [PRWEB Sep 9, 2004]

World first service - independent
telecommunications price benchmarking
service via web


World first service - independent
telecommunications price benchmarking
service via web
08/14/2004 02:56 AM
Telsyte’s new Instant Benchmark service is an online service that provides instant web access to information from Telsyte's exhaustive pricing information database. Telsyte produces research that tracks the actual prices paid for Australian wholesale, business and residential telecommunications services. [PRWEB Aug 14, 2004]
Grok Description matches for Benchmarking PHP with no BS
GrokA matches for Benchmarking PHP with no BS

Benchmarking PHP with no BS

The following phrases have been identified by the grok system as matching this entry:

















Also check out:


Grok

Ipod Porn on the
Rise

Brief Abstract of
Wikipedia's
Mesothelioma Cancer
page

Get first aid
instructions in your
cell phone

IE is crap
JSPWiki gains
podcasting support

Review: Advanced PHP
Programming

Chernobyl Rider
Don't Wait
Miss Otis Regrets
IronPython: A fast
Python
implementation for
.NET and Mono

Ronco Spray-On
Usability

Xen
New post to Global
Guerrillas:
Terrorist Social
Networks

Are supergiant oil
fields declining
faster than
replacement?

Corporate
Mercenaries Create
Sharing Network

Forms Processing
Emergence -
JavaScripted

The Hidden Power of
Photoshop CS:
Chapter 2: Color
Separations. Pt. 2

Use JavaScript to
Create a Scrolling
Grid

Mastering Digital
Photography and
Imaging, Chapter 1:
Essential Digital
Imaging Equipment.
Pt. 1.

Mastering Digital
Photography and
Imaging, Chapter 1:
Essential Digital
Imaging Equipment.
Pt. 2.

Book Review: Getting
a Job in CG: Real
Advice from Reel
People

Perl Medic:
Transforming Legacy
Code. Chapter 3. Pt.
1

How to Use a Content
Management System
for Search Engine
Positioning

Creating a Textbox
with JavaScript
Auto-Complete

Mac OS X Attacked by
Trojan Horse
(NewsFactor)

IBM Calls Daksh Buy
Strategic Move
(NewsFactor)

Microsoft Partners
on Mainframe
Migration
(NewsFactor)

Sun's Microsoft
Mistake (Ziff Davis)

Study: S.F. Area Has
Most Wi-Fi Hot Spots
(AP)

Dell Sees Rise in
Corporate Spending
(NewsFactor)

Appeals Court Stays
Cable Internet
Ruling (Reuters)

Engineers' eBay
auction yields
encouraging response
(SiliconValley.com)

Electronic Filing of
Taxes Sets Record
(AP)

Compliance Law May
Boost Software
Demand (AP)

AOL Offering
Non-Subscribers Some
Content (AP)

System Can Detect
Fraudulent Passports
(AP)

Lockergnome: Daily
Newsletter Excerpt

Northwind and pubs
Sample Databases

BizTalk Server 2004
Rollup Package 1

MSDN TV: Using High
Performance Features
in Visual C++

The ISV Show:
Mobility

Beware of Fully
Trusted Code

Google: omnipresent,
omniscient, on the
heels of Microsoft

A fresh start for
Microsoft and Sun

How Microsoft Is
Clipping Longhorn

hacks.oreilly.com:
Removing Your
Materials from
Google [Mar. 17,
2003]

Time for Change.....
A Day in the Life of
an Information
Security
Investigator: Case
Of the Heartless
Husband - Part I

grsecurity
GNU Screen: an
introduction and
beginner's tutorial
|| kuro5hin.org

TechTV | Windows
Tip: Change Start
Button in XP

The Lost Olive: USA
LugRadio Mirror

TechTV | The Linux
Operator Guide to
Women

Friday Funnies...
Easy Automated
Snapshot-Style
Backups with Rsync

what is grok?