Performance and energy-efficiency of scala on mobile devices

Mattia Denti, Jukka K. Nurminen

Research output: Chapter in Book/Report/Conference proceedingConference article in proceedingsScientificpeer-review

Abstract

The objective of this study was to compare how new languages like Scala perform on mobile environments compared to the classical languages. Since Scala also runs on the Java Virtual Machine (JVM), it is possible to run the code on Android devices and compare it with Java. After analysing the existing literature about Scala-Java comparisons, and after finding what constitutes a good benchmark for our subject of study, we found and adapted two benchmarks for both Scala and Java and ran them on an Android device. We measured the power consumption and the execution time of the benchmarks, as well as the memory usage and the size of the application. The results show that using Scala in mobile devices is feasible. Scala performs faster or slower than Java, depending on the task, and on average it consumes more energy than Java on the Android device, while using less memory. The size of the application written in Scala is also larger due to the presence of the Scala libraries.
Original languageEnglish
Title of host publicationInternational Conference on Next Generation Mobile Applications, Services, and Technologies
Pages50-55
ISBN (Electronic)978-1-4799-2010-5
DOIs
Publication statusPublished - 7 Nov 2013
MoE publication typeA4 Article in a conference publication

Fingerprint

Mobile devices
Energy efficiency
Data storage equipment
Electric power utilization
Virtual machine

Keywords

  • Android
  • Benchmark
  • Comparison
  • Java
  • Performance
  • Scala

Cite this

Denti, M., & Nurminen, J. K. (2013). Performance and energy-efficiency of scala on mobile devices. In International Conference on Next Generation Mobile Applications, Services, and Technologies (pp. 50-55) https://doi.org/10.1109/NGMAST.2013.18
Denti, Mattia ; Nurminen, Jukka K. / Performance and energy-efficiency of scala on mobile devices. International Conference on Next Generation Mobile Applications, Services, and Technologies. 2013. pp. 50-55
@inproceedings{a52009ba57564c87a0d28c191684d17e,
title = "Performance and energy-efficiency of scala on mobile devices",
abstract = "The objective of this study was to compare how new languages like Scala perform on mobile environments compared to the classical languages. Since Scala also runs on the Java Virtual Machine (JVM), it is possible to run the code on Android devices and compare it with Java. After analysing the existing literature about Scala-Java comparisons, and after finding what constitutes a good benchmark for our subject of study, we found and adapted two benchmarks for both Scala and Java and ran them on an Android device. We measured the power consumption and the execution time of the benchmarks, as well as the memory usage and the size of the application. The results show that using Scala in mobile devices is feasible. Scala performs faster or slower than Java, depending on the task, and on average it consumes more energy than Java on the Android device, while using less memory. The size of the application written in Scala is also larger due to the presence of the Scala libraries.",
keywords = "Android, Benchmark, Comparison, Java, Performance, Scala",
author = "Mattia Denti and Nurminen, {Jukka K.}",
year = "2013",
month = "11",
day = "7",
doi = "10.1109/NGMAST.2013.18",
language = "English",
pages = "50--55",
booktitle = "International Conference on Next Generation Mobile Applications, Services, and Technologies",

}

Denti, M & Nurminen, JK 2013, Performance and energy-efficiency of scala on mobile devices. in International Conference on Next Generation Mobile Applications, Services, and Technologies. pp. 50-55. https://doi.org/10.1109/NGMAST.2013.18

Performance and energy-efficiency of scala on mobile devices. / Denti, Mattia; Nurminen, Jukka K.

International Conference on Next Generation Mobile Applications, Services, and Technologies. 2013. p. 50-55.

Research output: Chapter in Book/Report/Conference proceedingConference article in proceedingsScientificpeer-review

TY - GEN

T1 - Performance and energy-efficiency of scala on mobile devices

AU - Denti, Mattia

AU - Nurminen, Jukka K.

PY - 2013/11/7

Y1 - 2013/11/7

N2 - The objective of this study was to compare how new languages like Scala perform on mobile environments compared to the classical languages. Since Scala also runs on the Java Virtual Machine (JVM), it is possible to run the code on Android devices and compare it with Java. After analysing the existing literature about Scala-Java comparisons, and after finding what constitutes a good benchmark for our subject of study, we found and adapted two benchmarks for both Scala and Java and ran them on an Android device. We measured the power consumption and the execution time of the benchmarks, as well as the memory usage and the size of the application. The results show that using Scala in mobile devices is feasible. Scala performs faster or slower than Java, depending on the task, and on average it consumes more energy than Java on the Android device, while using less memory. The size of the application written in Scala is also larger due to the presence of the Scala libraries.

AB - The objective of this study was to compare how new languages like Scala perform on mobile environments compared to the classical languages. Since Scala also runs on the Java Virtual Machine (JVM), it is possible to run the code on Android devices and compare it with Java. After analysing the existing literature about Scala-Java comparisons, and after finding what constitutes a good benchmark for our subject of study, we found and adapted two benchmarks for both Scala and Java and ran them on an Android device. We measured the power consumption and the execution time of the benchmarks, as well as the memory usage and the size of the application. The results show that using Scala in mobile devices is feasible. Scala performs faster or slower than Java, depending on the task, and on average it consumes more energy than Java on the Android device, while using less memory. The size of the application written in Scala is also larger due to the presence of the Scala libraries.

KW - Android

KW - Benchmark

KW - Comparison

KW - Java

KW - Performance

KW - Scala

U2 - 10.1109/NGMAST.2013.18

DO - 10.1109/NGMAST.2013.18

M3 - Conference article in proceedings

SP - 50

EP - 55

BT - International Conference on Next Generation Mobile Applications, Services, and Technologies

ER -

Denti M, Nurminen JK. Performance and energy-efficiency of scala on mobile devices. In International Conference on Next Generation Mobile Applications, Services, and Technologies. 2013. p. 50-55 https://doi.org/10.1109/NGMAST.2013.18