Quantcast
Channel: Forums, Blogs, Wikis » benchmarking
Browsing latest articles
Browse All 5 View Live

Script for benchmarking PHP functions

Often I find myself needing to know which way of performing a task in PHP is the fastest. The code below let's you easily test snippets of code to see how long it takes to run. PLAIN TEXT PHP: /*  Set...

View Article



Benchmarking single vs. double quotes in PHP

PHP allows you to define a string using either a single quote (’) or a double quote (”). Why? Is one better? Faster? Why should you use one over the other. In this article, I am going to benchmark both...

View Article

Comparing MySQL search speed for different column types

Starting work on a new website I wanted to know which type of MySQL column was the fastest to search on. I assume it's a numeric column, but I really want to know how much of a difference it makes....

View Article

phpSpeedy claims seem exaggerated

A web buddy of mine sent me a link to phpSpeedy via StumbleUpon, and asked me what I thought of it. It seems like a good idea for a topic, and a waste if I just replied in email, so I figured I'd write...

View Article

SQL_CALC_FOUND_ROWS – Is it faster?

Reading through a post on SQL_CALC_FOUND_ROWS actually being slower that running one query followed by a count query I decided I needed to do a little benchmarking on my own. Creating the sample data...

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images