aspose file tools*
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
Author

"Knowing" isn't the same as measuring

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

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:

http://www.wired.com/epicenter/2011/03/android-iphone-web/


Customer surveys are for companies who didn't pay proper attention to begin with.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39550
    
  27
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 (http://en.wikipedia.org/wiki/IPhone#Model_Comparison).

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.


Ping & DNS - updated with new look and Ping home screen widget
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

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.
 
 
subject: "Knowing" isn't the same as measuring
 
Similar Threads
Optimizing XSL documents
Best IDE
database query taking too long
can't get this one:
For loop performance in windows vs linux