SlideShare a Scribd company logo
1 of 13
Download to read offline
Android Benchmarking and
Optimization Opportunities
● Talk about what was planned in Hong Kong and give a
summary
● Present current benchmark methodology and hotspot
benchmark results
● Discuss methodology
● Suggest specific optimization opportunities and
additional measurements and benchmarks
● Explore additional benchmarks
Recap
● Linaro Android as a Benchmarking Platform
● Integrate ARM's system benchmarks into LAVA
● Perform hotspot analysis of benchmarking APKs and
browser benchmarks
Benchmarks Integrated
● AndEBench
● Antutu
● Linpack
● CaffeineMark
● GLBenchmark
● GeekBench 2
● Quadrant
● Vellamo
● NBench
● Methanol
Benchmark methodology
For Low Variance:
● Governance policy to performance.
● Disable data syncing for other apps.
● Kill Background processes.
● Avoid installing other apps.
● Wifi enabled for network access.
Characterization:
● DS-5 streamline.
Benchmark Gains
AOSP + Linaro Patches build on Panda 4460 Measured
with 3.2 TILT stable kernel vs AOSP build with 3.2 kernel:
● Antutu RAM 21 %
● CaffeineMark String 24 %
● Quadrant Mem 81 %
● Antutu Float 10 %
● 0xBench Sunspider 10 %
● 0xBench DrawArc,DrawCircle,DrawRect >40 %
● 0xBench Garbage Collection 11 %
● Vellamo Sunspider 14 %
● Vellamo V8 Benchmark 8 %
Benchmarks Compiler libc JIT libdvm libskia libm kernel webkit V8 Engine Other
libraries
AndEBench Native High None None None None None None None None None
AndEBench Java None None High Low None None None None None None
Linpack None None High None None None None None None None
Caffeinemark None None High Low None None None None None None
Antutu CPU & Memory High Medium None None None Low Low None None None
Antutu 2D Graphics None Medium None None Low None Medium None None None
Antutu 3D Graphics Low Low None None None None Low None None None
Antutu DB IO None Medium None None None None Medium None None None
nbench High Low None None None None None None None None
Quadrant CPU Benchmark None None High None None None None None None None
Quadrant Memory
Benchmark
None None High None None Medium None None None
Quadrant IO Benchmark None None None None None None Low None None None
High(>50%) Medium(50%>x>30%) Low(<10%)Benchmark
Characterization
Benchmarks Compiler libc JIT libdvm libskia libm kernel webkit V8
Engine
Other
libraries
Quadrant 2D
Benchmark
None None None Low Medium None Medium None None None
Quadrant 3D
Benchmark
None None None Low None None Low None None Low
(libgfx)
Vellamo None Low None None Low None None Medium Medium None
Geekbench High Low None None None None None None None None
GlBenchmark Low None None None None None Low None None Low
(libgfx)
Bbench Low Low None Low Low None Medium High Very
Low
Low
(libgfx)
Benchmarks >50% 30%< X <50% 10%< X < 30% <10% <10% <10%
AndEBench
Native
libcore_ARM 86% (ndk
Toolchain)
AndEBench Java Dalvik-jit-cache-code
(52%)
libdvm(11%)
Linpack Dalvik-jit-cache-code
(90%)
Caffeinemark Dalvik-jit-cache-code
(40%)
libdvm(4.5%)
Antutu CPU &
Memory
libabenchmark 53%(NDK
Toolchain)
libc(memcpy 14.25,bcopy
10.8)
kernel(10%) Libm(6.25%)
Antutu 2D
Graphics
kernel(30.9%) libc(memcpy 12.28) libskia(3.75%)
Antutu 3D
Graphics
libabenchmark(7.3%) libc(7.7%) kernel(7.3%)
Antutu DB IO kernel(31.5%) libc(memcpy 21.5)
nbench nbench(40%) libc(bcopy3.9%, memcpy
1.19%)
Quadrant CPU
Benchmark
Dalvik-jit-cache-code
(94.11)
Quadrant
Memory
Benchmark
libc(memcpy 38%) kernel(13%)
Quadrant IO
Benchmark
kernel(6.28%)
Quadrant 2D
Benchmark
Libskia(22.3%),kernel(15%) libdvm(7%)
Quadrant 3D
Benchmark
libgfx(9%) kernel(7.11%) libdvm(5.78%)
Vellamo libwebcore(12.44%) Unresolved(8.50%) Libskia(8.33%)
Geekbench Libgeekbench(58%) Libc(1.54%)
GlBenchmark Kernel(3.35%) Libglbenchmark(3.01%) Libgfx (2.74%)
Optimization Opportunities
● Some of the gains already achieved from
libc,libm optimization which reflect in
benchmark gains.
● Scope for more optimizations in bionic.
● A15 optimization for the same routines.
● Scope for Dalvik JIT,V8 optimizations.
● Add real world use cases for analysis.

More Related Content

More from Linaro

HPC network stack on ARM - Linaro HPC Workshop 2018
HPC network stack on ARM - Linaro HPC Workshop 2018HPC network stack on ARM - Linaro HPC Workshop 2018
HPC network stack on ARM - Linaro HPC Workshop 2018
Linaro
 
Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...
Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...
Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...
Linaro
 
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
Linaro
 
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainlineHKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
Linaro
 
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainlineHKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
Linaro
 
HKG18- 115 - Partitioning ARM Systems with the Jailhouse Hypervisor
HKG18- 115 - Partitioning ARM Systems with the Jailhouse HypervisorHKG18- 115 - Partitioning ARM Systems with the Jailhouse Hypervisor
HKG18- 115 - Partitioning ARM Systems with the Jailhouse Hypervisor
Linaro
 
HKG18-TR08 - Upstreaming SVE in QEMU
HKG18-TR08 - Upstreaming SVE in QEMUHKG18-TR08 - Upstreaming SVE in QEMU
HKG18-TR08 - Upstreaming SVE in QEMU
Linaro
 
HKG18-120 - Devicetree Schema Documentation and Validation
HKG18-120 - Devicetree Schema Documentation and Validation HKG18-120 - Devicetree Schema Documentation and Validation
HKG18-120 - Devicetree Schema Documentation and Validation
Linaro
 
HKG18-223 - Trusted FirmwareM: Trusted boot
HKG18-223 - Trusted FirmwareM: Trusted bootHKG18-223 - Trusted FirmwareM: Trusted boot
HKG18-223 - Trusted FirmwareM: Trusted boot
Linaro
 
HKG18-500K1 - Keynote: Dileep Bhandarkar - Emerging Computing Trends in the D...
HKG18-500K1 - Keynote: Dileep Bhandarkar - Emerging Computing Trends in the D...HKG18-500K1 - Keynote: Dileep Bhandarkar - Emerging Computing Trends in the D...
HKG18-500K1 - Keynote: Dileep Bhandarkar - Emerging Computing Trends in the D...
Linaro
 
HKG18-317 - Arm Server Ready Program
HKG18-317 - Arm Server Ready ProgramHKG18-317 - Arm Server Ready Program
HKG18-317 - Arm Server Ready Program
Linaro
 

More from Linaro (20)

Huawei’s requirements for the ARM based HPC solution readiness - Joshua Mora
Huawei’s requirements for the ARM based HPC solution readiness - Joshua MoraHuawei’s requirements for the ARM based HPC solution readiness - Joshua Mora
Huawei’s requirements for the ARM based HPC solution readiness - Joshua Mora
 
Bud17 113: distribution ci using qemu and open qa
Bud17 113: distribution ci using qemu and open qaBud17 113: distribution ci using qemu and open qa
Bud17 113: distribution ci using qemu and open qa
 
OpenHPC Automation with Ansible - Renato Golin - Linaro Arm HPC Workshop 2018
OpenHPC Automation with Ansible - Renato Golin - Linaro Arm HPC Workshop 2018OpenHPC Automation with Ansible - Renato Golin - Linaro Arm HPC Workshop 2018
OpenHPC Automation with Ansible - Renato Golin - Linaro Arm HPC Workshop 2018
 
HPC network stack on ARM - Linaro HPC Workshop 2018
HPC network stack on ARM - Linaro HPC Workshop 2018HPC network stack on ARM - Linaro HPC Workshop 2018
HPC network stack on ARM - Linaro HPC Workshop 2018
 
It just keeps getting better - SUSE enablement for Arm - Linaro HPC Workshop ...
It just keeps getting better - SUSE enablement for Arm - Linaro HPC Workshop ...It just keeps getting better - SUSE enablement for Arm - Linaro HPC Workshop ...
It just keeps getting better - SUSE enablement for Arm - Linaro HPC Workshop ...
 
Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...
Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...
Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...
 
Yutaka Ishikawa - Post-K and Arm HPC Ecosystem - Linaro Arm HPC Workshop Sant...
Yutaka Ishikawa - Post-K and Arm HPC Ecosystem - Linaro Arm HPC Workshop Sant...Yutaka Ishikawa - Post-K and Arm HPC Ecosystem - Linaro Arm HPC Workshop Sant...
Yutaka Ishikawa - Post-K and Arm HPC Ecosystem - Linaro Arm HPC Workshop Sant...
 
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
 
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainlineHKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
 
HKG18-100K1 - George Grey: Opening Keynote
HKG18-100K1 - George Grey: Opening KeynoteHKG18-100K1 - George Grey: Opening Keynote
HKG18-100K1 - George Grey: Opening Keynote
 
HKG18-318 - OpenAMP Workshop
HKG18-318 - OpenAMP WorkshopHKG18-318 - OpenAMP Workshop
HKG18-318 - OpenAMP Workshop
 
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainlineHKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
 
HKG18-315 - Why the ecosystem is a wonderful thing, warts and all
HKG18-315 - Why the ecosystem is a wonderful thing, warts and allHKG18-315 - Why the ecosystem is a wonderful thing, warts and all
HKG18-315 - Why the ecosystem is a wonderful thing, warts and all
 
HKG18- 115 - Partitioning ARM Systems with the Jailhouse Hypervisor
HKG18- 115 - Partitioning ARM Systems with the Jailhouse HypervisorHKG18- 115 - Partitioning ARM Systems with the Jailhouse Hypervisor
HKG18- 115 - Partitioning ARM Systems with the Jailhouse Hypervisor
 
HKG18-TR08 - Upstreaming SVE in QEMU
HKG18-TR08 - Upstreaming SVE in QEMUHKG18-TR08 - Upstreaming SVE in QEMU
HKG18-TR08 - Upstreaming SVE in QEMU
 
HKG18-113- Secure Data Path work with i.MX8M
HKG18-113- Secure Data Path work with i.MX8MHKG18-113- Secure Data Path work with i.MX8M
HKG18-113- Secure Data Path work with i.MX8M
 
HKG18-120 - Devicetree Schema Documentation and Validation
HKG18-120 - Devicetree Schema Documentation and Validation HKG18-120 - Devicetree Schema Documentation and Validation
HKG18-120 - Devicetree Schema Documentation and Validation
 
HKG18-223 - Trusted FirmwareM: Trusted boot
HKG18-223 - Trusted FirmwareM: Trusted bootHKG18-223 - Trusted FirmwareM: Trusted boot
HKG18-223 - Trusted FirmwareM: Trusted boot
 
HKG18-500K1 - Keynote: Dileep Bhandarkar - Emerging Computing Trends in the D...
HKG18-500K1 - Keynote: Dileep Bhandarkar - Emerging Computing Trends in the D...HKG18-500K1 - Keynote: Dileep Bhandarkar - Emerging Computing Trends in the D...
HKG18-500K1 - Keynote: Dileep Bhandarkar - Emerging Computing Trends in the D...
 
HKG18-317 - Arm Server Ready Program
HKG18-317 - Arm Server Ready ProgramHKG18-317 - Arm Server Ready Program
HKG18-317 - Arm Server Ready Program
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 

LCE12: Android Mini-Summit (Benchmarking and Optimization Opportunities)

  • 1. Android Benchmarking and Optimization Opportunities ● Talk about what was planned in Hong Kong and give a summary ● Present current benchmark methodology and hotspot benchmark results ● Discuss methodology ● Suggest specific optimization opportunities and additional measurements and benchmarks ● Explore additional benchmarks
  • 2. Recap ● Linaro Android as a Benchmarking Platform ● Integrate ARM's system benchmarks into LAVA ● Perform hotspot analysis of benchmarking APKs and browser benchmarks
  • 3. Benchmarks Integrated ● AndEBench ● Antutu ● Linpack ● CaffeineMark ● GLBenchmark ● GeekBench 2 ● Quadrant ● Vellamo ● NBench ● Methanol
  • 4. Benchmark methodology For Low Variance: ● Governance policy to performance. ● Disable data syncing for other apps. ● Kill Background processes. ● Avoid installing other apps. ● Wifi enabled for network access. Characterization: ● DS-5 streamline.
  • 5.
  • 6.
  • 7.
  • 8. Benchmark Gains AOSP + Linaro Patches build on Panda 4460 Measured with 3.2 TILT stable kernel vs AOSP build with 3.2 kernel: ● Antutu RAM 21 % ● CaffeineMark String 24 % ● Quadrant Mem 81 % ● Antutu Float 10 % ● 0xBench Sunspider 10 % ● 0xBench DrawArc,DrawCircle,DrawRect >40 % ● 0xBench Garbage Collection 11 % ● Vellamo Sunspider 14 % ● Vellamo V8 Benchmark 8 %
  • 9. Benchmarks Compiler libc JIT libdvm libskia libm kernel webkit V8 Engine Other libraries AndEBench Native High None None None None None None None None None AndEBench Java None None High Low None None None None None None Linpack None None High None None None None None None None Caffeinemark None None High Low None None None None None None Antutu CPU & Memory High Medium None None None Low Low None None None Antutu 2D Graphics None Medium None None Low None Medium None None None Antutu 3D Graphics Low Low None None None None Low None None None Antutu DB IO None Medium None None None None Medium None None None nbench High Low None None None None None None None None Quadrant CPU Benchmark None None High None None None None None None None Quadrant Memory Benchmark None None High None None Medium None None None Quadrant IO Benchmark None None None None None None Low None None None High(>50%) Medium(50%>x>30%) Low(<10%)Benchmark Characterization
  • 10. Benchmarks Compiler libc JIT libdvm libskia libm kernel webkit V8 Engine Other libraries Quadrant 2D Benchmark None None None Low Medium None Medium None None None Quadrant 3D Benchmark None None None Low None None Low None None Low (libgfx) Vellamo None Low None None Low None None Medium Medium None Geekbench High Low None None None None None None None None GlBenchmark Low None None None None None Low None None Low (libgfx) Bbench Low Low None Low Low None Medium High Very Low Low (libgfx)
  • 11. Benchmarks >50% 30%< X <50% 10%< X < 30% <10% <10% <10% AndEBench Native libcore_ARM 86% (ndk Toolchain) AndEBench Java Dalvik-jit-cache-code (52%) libdvm(11%) Linpack Dalvik-jit-cache-code (90%) Caffeinemark Dalvik-jit-cache-code (40%) libdvm(4.5%) Antutu CPU & Memory libabenchmark 53%(NDK Toolchain) libc(memcpy 14.25,bcopy 10.8) kernel(10%) Libm(6.25%) Antutu 2D Graphics kernel(30.9%) libc(memcpy 12.28) libskia(3.75%) Antutu 3D Graphics libabenchmark(7.3%) libc(7.7%) kernel(7.3%) Antutu DB IO kernel(31.5%) libc(memcpy 21.5) nbench nbench(40%) libc(bcopy3.9%, memcpy 1.19%) Quadrant CPU Benchmark Dalvik-jit-cache-code (94.11)
  • 12. Quadrant Memory Benchmark libc(memcpy 38%) kernel(13%) Quadrant IO Benchmark kernel(6.28%) Quadrant 2D Benchmark Libskia(22.3%),kernel(15%) libdvm(7%) Quadrant 3D Benchmark libgfx(9%) kernel(7.11%) libdvm(5.78%) Vellamo libwebcore(12.44%) Unresolved(8.50%) Libskia(8.33%) Geekbench Libgeekbench(58%) Libc(1.54%) GlBenchmark Kernel(3.35%) Libglbenchmark(3.01%) Libgfx (2.74%)
  • 13. Optimization Opportunities ● Some of the gains already achieved from libc,libm optimization which reflect in benchmark gains. ● Scope for more optimizations in bionic. ● A15 optimization for the same routines. ● Scope for Dalvik JIT,V8 optimizations. ● Add real world use cases for analysis.