File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Performance and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark ""Knowing" isn Watch ""Knowing" isn New topic

"Knowing" isn't the same as measuring

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

We often advise people in this forum not to waste time in prematurely optimizing the parts of their apps that they "know" need optimizing. Here's a real-world example of why:

An IDE is no substitute for an Intelligent Developer.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
The methodology doesn't convince me. Using a mix of handsets -and not even saying which ones in the case of iOS- just muddles the numbers.

The Nexus S and the Galaxy S have 1 GHz ARM Cortex A8 CPUs.

iPhone 4.2 and 4.3 are not actual devices but OS versions that run on a) the iPhone 3 on a 412 MHz ARM 1176, b) the iPhone 3GS on a 600 MHz ARM Cortex-A8, and c) the iPhone 4 on a 800 MHz ARM Cortex-A8 (

So at least 25% difference (800MHz vs. 1GHz) can be chalked up to the CPU, if not 66% (600MHz vs. 1GHz), assuming that the iPhone 3 wasn't actually used. The latter case would negate the "findings" of this comparison. So while a comparison of a single device running iOS vs. a single device running Android might make sense, this test says nothing about iOS performance vs. Android performance.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

I think rather than the merits of hardware or OS, the paragraph of note in this article is the final one. And, there's at least some reason to believe that the real bottleneck wasn't the devices, but the efficiency of the pipes feeding the devices.

My own experience, BTW, has been that the overhead of downloading an extensive AJAX support package can easily dwarf everything else. In my case, simply bundling the AJAX libraries into a single unit and enabling client-side caching meant a full order of magnitude in speed improvement.
I agree. Here's the link:
subject: "Knowing" isn't the same as measuring
It's not a secret anymore!