четверг, 1 апреля 2010 г.

Как обычно, благими намерениями устлана дорога сами знаете куда.
А посему сравнение эмуляторов-симуляторов снова откладывается, но на сладкое и вкусное у нас есть интересное сравнение быстродействия iPhone 3G и 3GS, а стало быть и iPod Touch 2G и 3G.

Первоисточник: http://aussiebloke.blogspot.com/2010/01/micro-benchmarking-2nd-3rd-gen-iphones.html

iPhone 3G

ARM1176 ~412MHz / 2.4ns per cycle

NameIterationsTotal time (sec)Time per (ns)
IMP-cached message send1000000003.938.6
C++ virtual method call1000000005.049.9
Floating-point division100000000.881.3
Float division with int conversion100000000.881.4
16 byte memcpy100000001.4136.0
Objective-C message send10000000014.9148.6
Integer division10000000016.2162.2
CF CFArrayGetValueAtIndex100000002.0201.7
Objective-C objectAtIndex:100000004.2418.3
NSInvocation message send1000000.21833.2
16 byte malloc/free1000000027.32729.8
NSObject alloc/init/release1000001.414179.1
NSAutoreleasePool alloc/init/release1000001.918956.7
16MB malloc/free10000.047811.3
Zero-second delayed perform10000.8803419.3
pthread create/join1000.11085830.0
1MB memcpy1001.09902796.7

iPhone 3GS (ARMv7 binary)

ARM Cortex A8 ~600MHz / 1.66 ns per cycle

NameIterationsTotal time (sec)Time per (ns)
IMP-cached message send1000000001.211.8
C++ virtual method call1000000004.342.9
Objective-C message send1000000005.959.2
CF CFArrayGetValueAtIndex100000001.097.9
Integer division1000000009.898.4
16 byte memcpy100000001.1109.3
Floating-point division100000001.2118.5
Objective-C objectAtIndex:100000001.3129.0
Float division with int conversion100000001.4142.6
16 byte malloc/free100000007.5748.6
NSInvocation message send1000000.1806.0
NSObject alloc/init/release1000000.54793.1
NSAutoreleasePool alloc/init/release1000000.54953.1
16MB malloc/free10000.017969.2
Zero-second delayed perform10000.2211840.4
pthread create/join1000.0214742.5
1MB memcpy1000.33162774.6

Пропускная способность памяти:

iPhone 3G - 200MB/s
iPhone 3GS - 800Mb/s

Комментариев нет:

Отправить комментарий