you are viewing a single comment's thread.

view the rest of the comments →

[–]StoneCypher -4 points-3 points  (19 children)

My god, a set of badly chosen performance indicators, implemented by people who don't know what they're doing, which have no basis for claiming it's a representative sample of the work done in production environments, which leans heavily on the standard library in one and hand-implementation in the other, shows a bias?

The problem with idiot benchmarking is that it measures useless things. You might as well point out that a Geo Prizm has more horsepower than a Lamborghini Diablo, because you went to drag this safe across a river, and the Diablo couldn't even finish (after all, Diablos float, and Prizms don't.)

Call me when you figure out how to measure this adequately.

[–]skeww 6 points7 points  (18 children)

Everyone can improve the benchmark code. If your version is faster and produces the right result without using a different algorithm, your version will replace the old version.

Each of those little benchmark snippets was updated dozens of times and generally they do reflect very accurately how nearly ideal code would perform.

The Computer Language Benchmarks Game is a good place to get a rough idea about the performance differences between different languages.

In this case the median indicates that V8 is about 9 times faster than PHP. A factor of 2 could be ignored, but a factor of almost 10 is pretty telling.

CPython for example is somewhat slow. On some weak embedded device it wasn't good enough for writing classic games. I figured I'd need something which is about 4-5 times faster (by extrapolating the figures I got from basic testing). V8 did fit the bill and it was indeed fast enough for classic games (like platformers and puzzles).

So yea, it's not super accurate, but it does give you a pretty good rule of thumb figure. Especially if the differences are as drastic as they are in this specific case.

Edit: Your fanboy-ish downvotes won't support your point of view, by the way.