Go Back   MacRumors Forums > News and Article Discussion > iOS Blog Discussion

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 2, 2007, 12:05 PM   #1
MacRumors
macrumors bot
 
Join Date: Apr 2001
iPhone Javascript Benchmarks



JohnMuch.com posted some Javascript benchmarks of the 8GB iPhone compared to his 2.4GHz Intel Core 2 Duo with 4GB of RAM. He ran a number of different online benchmarks including JSSpeed:

Quote:
iPhone

Try/Catch with errors 378
Layer movement 3078
Random number engine (Did not compute)
Math engine 3474
DOM speed Testing… (998/1000)
Array functions 1739
String functions 535
Ajax declaration 1089
Total Duration: 10293 ms

Macbook Pro

Try/Catch with errors 5
Layer movement 33
Random number engine 28
Math engine 43
DOM speed 21
Array functions 10
String functions 11
Ajax declaration 8
Total Duration 159 ms
More benchmark results are available with links to tools to try yourself. [via Ajaxian]
MacRumors is offline   0 Reply With Quote
Old Jul 2, 2007, 01:08 PM   #2
notsofatjames
macrumors 6502a
 
notsofatjames's Avatar
 
Join Date: Jan 2007
Location: Wales, UK
dammit! i was expecting my iPhone to keep up with my 8 core mac pro!! (by the way i have neither)

seriously, why didn't they compare this to another phone that can run javascript?
__________________
Search before you post: MRoogle

Last edited by notsofatjames; Jul 2, 2007 at 01:09 PM. Reason: typos!
notsofatjames is offline   0 Reply With Quote
Old Jul 2, 2007, 01:31 PM   #3
jettredmont
macrumors 68020
 
Join Date: Jul 2002
Quote:
Originally Posted by notsofatjames View Post
dammit! i was expecting my iPhone to keep up with my 8 core mac pro!! (by the way i have neither)

seriously, why didn't they compare this to another phone that can run javascript?
In the comments there is a test run against a Nokia running Opera 4 (beta), which is a small factor slower than the MacBook but nowhere near the several-orders-of-magnitude slowageness of the iPhone Safari. Specifically, he got 420 ms on the Noki, vs 159 on the Macbook Pro, and vs 10,293 ms on the iPhone.

Seems like something is majorly broken in either this guy's iPhone/Safari or in the Safari/iPhone software in general. There is NO WAY that it should be operating this slowly on things like layer movement (3 seconds alone) and AJAX initialization (another second). I can understand the math result, although it is highly disappointing (another three seconds there), as a function of the relatively anemic processor in there. But the rest is just plain sickening.
jettredmont is offline   0 Reply With Quote
Old Jul 2, 2007, 01:52 PM   #4
dashiel
macrumors 6502a
 
Join Date: Nov 2003
so much for "web 2.0" being the SDK. what a joke. crap javascript performance, doesn't interpret mouse events properly, no flash, no SVG support. we all know a true SDK is probably coming; jobs would have done better not to mention the web 2.0 thing at all.
dashiel is offline   0 Reply With Quote
Old Jul 2, 2007, 02:35 PM   #5
elppa
macrumors 68040
 
elppa's Avatar
 
Join Date: Nov 2003
That does seem very sluggish. Wonder what real world performance is like?
elppa is offline   0 Reply With Quote
Old Jul 2, 2007, 02:37 PM   #6
Yankees 4 Life
macrumors 6502a
 
Join Date: Jun 2007
Location: College Station, Tx
Send a message via AIM to Yankees 4 Life
Quote:
Originally Posted by elppa View Post
That does seem very sluggish. Wonder what real world performance is like?
i dont know if he was using dialup, but my iphone has no problem running these tests in about a quarter of the time...
__________________
That thing is the most expensive phone out there! $599 for a phone? It won’t even sell enough to break even!-Steve Balmer
“An A-Bomb, From A-Rod”
Yankees 4 Life is offline   0 Reply With Quote
Old Jul 2, 2007, 02:55 PM   #7
bignumbers
macrumors regular
 
Join Date: May 2002
Quote:
Originally Posted by Yankees 4 Life View Post
i dont know if he was using dialup, but my iphone has no problem running these tests in about a quarter of the time...
That's just one test, but it is slower on my iPhone than even his tests. I ran it three times - 16172ms, 15581ms, 15745ms.

I'm not fretting by any means. I mean, it's a handheld.

Interestingly my MacBook Pro was in the 550ms range - much slower than his MBP tests.
bignumbers is offline   0 Reply With Quote
Old Jul 2, 2007, 03:20 PM   #8
Tofaha
macrumors 6502
 
Join Date: Jun 2007
Location: MI
i have no idea what any of those numbers mean..lol
Tofaha is offline   0 Reply With Quote
Old Jul 2, 2007, 03:31 PM   #9
plinden
macrumors 68040
 
plinden's Avatar
 
Join Date: Apr 2004
Quote:
Originally Posted by Yankees 4 Life View Post
i dont know if he was using dialup, but my iphone has no problem running these tests in about a quarter of the time...
That wouldn't make any difference. This is javascript, and runs in your browser.
plinden is offline   0 Reply With Quote
Old Jul 2, 2007, 03:43 PM   #10
bignumbers
macrumors regular
 
Join Date: May 2002
Quote:
Originally Posted by Tofaha View Post
i have no idea what any of those numbers mean..lol
ms = milliseconds (thousandths of a second). The numbers represent how many milliseconds it took to perform a specific operation. The bottom number is the total amount of time to perform all operations within the test.
bignumbers is offline   0 Reply With Quote
Old Jul 2, 2007, 04:54 PM   #11
notsofatjames
macrumors 6502a
 
notsofatjames's Avatar
 
Join Date: Jan 2007
Location: Wales, UK
Quote:
Originally Posted by plinden View Post
That wouldn't make any difference. This is javascript, and runs in your browser.
but the javascript needs to be downloaded. Im not sure on how these things work, but how about someone try it with edge, and then try it with wifi and see if theres a difference for you.
__________________
Search before you post: MRoogle
notsofatjames is offline   0 Reply With Quote
Old Jul 2, 2007, 05:06 PM   #12
123
macrumors regular
 
Join Date: Mar 2002
Quote:
Originally Posted by notsofatjames View Post
Im not sure on how these things work,
So, how about you listen to those who are sure then?

The "Run Tests" button is on the very same page as the javascript, in fact it is even loaded after the js.
123 is offline   0 Reply With Quote
Old Jul 2, 2007, 06:02 PM   #13
humera
macrumors newbie
 
Join Date: Jul 2007
159ms on a Macbook Pro?

I ran these tests on my 3.0ghz quad core Mac Pro:

Firefox 2.0.0.4: 540ms avg
Safari 2.0.4: 256ms avg
iPhone: 9452ms avg
humera is offline   0 Reply With Quote
Old Jul 2, 2007, 06:15 PM   #14
WildCowboy
Administrator/Editor
 
WildCowboy's Avatar
 
Join Date: Jan 2005
Er, my PowerBook takes 14-15,000 ms on Safari...that's embarrassing. Firefox is more like 2300 ms.
__________________
Editor in Chief, MacRumors
WildCowboy is offline   0 Reply With Quote
Old Jul 2, 2007, 08:41 PM   #15
dashiel
macrumors 6502a
 
Join Date: Nov 2003
Quote:
Originally Posted by bignumbers View Post
That's just one test, but it is slower on my iPhone than even his tests. I ran it three times - 16172ms, 15581ms, 15745ms.

I'm not fretting by any means. I mean, it's a handheld.

Interestingly my MacBook Pro was in the 550ms range - much slower than his MBP tests.
were you running safari 3? he was. safari 3 is an order of magnitude faster than safari 2 at executing javascript. long the achilles heal of safari (terrible javascript performance), it looks life safari3 is going leap in front of the competition, or at least on par with opera.

5397 ms in safari 2 (dual 2Ghz G5)
0442 ms in safari 3 (dual 2Ghz G5)
dashiel is offline   0 Reply With Quote
Old Jul 2, 2007, 10:20 PM   #16
Andrmgic
macrumors 6502a
 
Join Date: Jun 2007
In Safari 3 under windows Xp SP2, I get 266ms

Firefox 2.0.0.4 is somewhere around 900ish ms

IE 7 is around 1547ms

My rig:

Athlon 64 X2 4400+ @ 2.2ghz
2048mb pc3200 ddr
A8N-SLI Premium Motherboard
Andrmgic is offline   0 Reply With Quote
Old Jul 3, 2007, 09:15 AM   #17
Yankees 4 Life
macrumors 6502a
 
Join Date: Jun 2007
Location: College Station, Tx
Send a message via AIM to Yankees 4 Life
166ms on my macbook pro too
__________________
That thing is the most expensive phone out there! $599 for a phone? It won’t even sell enough to break even!-Steve Balmer
“An A-Bomb, From A-Rod”
Yankees 4 Life is offline   0 Reply With Quote
Old Jul 3, 2007, 09:47 AM   #18
jellomizer
macrumors 6502
 
Join Date: Sep 2006
Location: Upstate NY
Real World vs. Benchmark Tests.

The problem with benchmark tests is they can be easilly cheated. Many Internet Explorer Oddities are from the fact they tweeked the system to handle benchmarks better so they can say they were faster then netscape. This lead to a bunch of security problems. Odd Designes which slowed down real world work because you needed to do twice as much code to do something the Standards say it should work that way. Also bearly noticable vs. hardly noticeable. These benchmarks show a near full usage of the system. Most Javascripts just run for a split second after data is entered. The Order of Magintude of 10x may be the difference from a unnoticed changed in data to a flash and a change in data. You are not going to loose productivity from it. Unless you are doing 3D rendering on your Iphone over Javascript you will not notice the speed difference for most Ajax Apps. (Being the bandwith is normally the Major bottleneck)
__________________
17" Core 2 Duo MacBook Pro
3GB of RAM, 100GB 7200 RPM, Glossy
jellomizer is offline   0 Reply With Quote
Old Jul 5, 2007, 08:51 PM   #19
MacD
macrumors member
 
Join Date: Feb 2005
300ms on a Mac Mini Intel Core Duo 1.8, and 10530ms on the iPhone.

So... my iPhone is a little over 35 times slower than my Mac Mini?.... OMG! What crap did Apple sell me?

Oh, and they cost me the same amount of $599.
MacD is offline   0 Reply With Quote

Reply
MacRumors Forums > News and Article Discussion > iOS Blog Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Any iphone 5s benchmarks yet? zergslayer69 iPhone 3 Sep 20, 2013 01:09 PM
iPhone 5 Javascript Benchmarks Over Twice as Fast MacRumors MacRumors.com News Discussion 339 Sep 23, 2012 10:38 PM
iPhone 5 benchmarks HJ24 Wasteland 1 Sep 16, 2012 03:39 PM
iPhone 5 Benchmarks Wreckie iPhone 7 Sep 16, 2012 03:33 PM

Forum Jump

All times are GMT -5. The time now is 01:33 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC