首页> 外文会议>International Conference on Control, Automation and Systems;ICCAS 2012 >Benchmarking Java application using JNI and native C application on Android
【24h】

Benchmarking Java application using JNI and native C application on Android

机译:在Android上使用JNI和本机C应用程序对Java应用程序进行基准测试

获取原文

摘要

Android is one of the most widely spread mobile platform. Many people are using Android mobile devices and many developers are creating Android applications at this moment. When developing applications, the differences in performance between Java and C/C++ are a well-known issue. Because this is also true in Android, many Android application developers prefer to use the Android NDK along with Java compared to using only Java language. However, there are certain performance gaps in not only using different programming languages but also in using glibc of a native cross-compiler and bionic libc of the Android NDK. In this paper, we show the difference in performance between Android applications compiled by using a native cross-compiler for ARM and a native shared library through the JNI of the Android NDK. We used Mibench, a representative embedded benchmark suite that can be used freely with no restrictions. As a result, it was found that using the native shared library through the JNI of the Android NDK is faster compared to using the native cross-compiler for ARM in five of six cases.
机译:Android是应用最广泛的移动平台之一。此刻,许多人正在使用Android移动设备,并且许多开发人员正在创建Android应用程序。在开发应用程序时,Java和C / C ++之间的性能差异是一个众所周知的问题。因为在Android中也是如此,所以与仅使用Java语言相比,许多Android应用程序开发人员更喜欢将Android NDK与Java一起使用。但是,不仅使用不同的编程语言,而且使用本机交叉编译器的glibc和Android NDK的仿生libc也存在一定的性能差距。在本文中,我们展示了使用ARM的本机交叉编译器和通过Android NDK的JNI的本机共享库编译的Android应用程序之间的性能差异。我们使用了Mibench,这是一个具有代表性的嵌入式基准测试套件,可以不受限制地自由使用。结果,发现在六种情况中的五种情况下,通过Android NDK的JNI使用本机共享库比使用针对ARM的本机交叉编译器更快。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号