Archive for the ‘Web’ Category

Sunspider Benchmark in C++

The Sunspider JavaScript Benchmark is a popular test of Web Browser performance.

As great as the newest browsers are I though it would be interesting to take a random test and port it to C++ for the sake of comparison.

I decided the rather short fannkuch test was a good candidate. The results:

Not surprisingly the C++ version is 18x faster than Firefox and 8x faster than Chrome. For the curious, the ported C++ code is after the jump.

I should mention one thing changed from the stock Sunspider site (e.g., the link above), is the number of iterations was upped from 8 to 10. At 8 iterations the C++ version was sub-millisecond, meaning I’d have had to roll a custom assembly timer to get a benchmark value. That said, when we lower the iterations down to 9, the stack heavy algorithm starts to benefit the browsers more, with Chrome coming in only 3 times slower and Firefox 11.

Lower the iteration count to the “stock” 8 and Firefox actually catches up to Chrome, with both browsers reporting ~21ms. Interesting.

Read More

A New Way To Think About The MVC Design Pattern

One of the gripes I have with implementing an MVC design pattern in PHP development is lack of tools to efficiently work on the model, view, and controller at the same time. Taking the MVC path means, like it or not, traversing three times as many windows and editors. It’s just not efficient for the way I want to work. And so, I’ve got an idea…

Read More

Five Times 2 – HTML 5 For Safari 5

Apple released Safari 5 on June 9th, the fastest and most advanced browser from Apple yet. It’s loaded with new features and enhancements, and from a cursory look, this is an intriguing release indeed.

Thing is though, if your a non-techie all this talk of HTML 5 probably makes you say “Wah?” — While  those of us in the development community are left wondering when we’ll get to implement this cool stuff as the giant elephant in the room sits docilely in the corner.

It’s a confusing release really, filled with more promise and hope than tangible benefit–or is it?

Read More