SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Downloaden Sie, um offline zu lesen
Analyzing Programming
Languages’ Energy
Consumption: An Empirical
Study
Stefanos Georgiou,1,2 Maria Kechagia,1,3 Diomidis Spinellis 1
Department of Management Science and Technology,
1 Athens University of Economics and Business
2 SingularLogic S.A.
3 Delft University of Technology
30 Sep 2017
Larissa, Greece
SENECA
Outline
• Introduction
• Motivation
• Existing Work and Research Gap
• Methodology
• Test-Bed
• Results
• Conclusions
• Future research
2
Introduction
3
Motivation
4
Existing Work and
Research Gap
• Comparative study on Programming Languages in
Rosetta Code, 2015 [Nanz and Furia].
• Android App Energy Efficiency: The Impact of
Language, Runtime, Compiler, and Implementation,
2016 [Chen and Zong].
• Program energy efficiency: The impact of language,
compiler and implementation choices, 2014
[Abdulsalam and Lakomski]
5
Selected Programming Languages
Methodology
7
Data-Set
Programming
Languages
Extracting most
popular tasks
Tasks
Array-Concat., Classes,
Bubble- ,Insertion-, Merge-,
Quick-, Selection- Sort, URL-
Encoding and Decoding
860 Tasks
670 Languages
Test-Bed
8
Experiment’s Steps
9
1
2
3
4
5
6
Results – Interpreted
Languages
10
Results – Compiled
Languages
11
Results – All in a Basket
12
Results – Compiler
Optimization Effects
13
• Energy usage decreased for most of tasks
• Java’s JIT reduced energy usage for all tasks
• C#’s energy usage increase from 1-10% on 4 of the selected
tasks
• VB.NET’s energy gains where the least
• C, C++, Go, and Rust compiler optimizations offer the most gains
(6-98%)
Conclusion
• Energy Consumption varies in large scales for both interpreted
and compiled languages.
• Compiler optimization apart from performance offers energy
usage optimizations too, in most of cases.
• C, C++, GO, and Java most energy efficient
• JavaScript, PHP, and Ruby most energy efficient
• Not a single winner for all cases
14
Future Work
• Adding functional programming languages and tasks
in our dataset
• Catalogue with top solutions of different tasks in
terms of Energy Delay Product
• Compare on different platforms (e.g., RPi)
• Languages features that makes them more energy
efficient/consuming
15
Contact details: sgeorgiou@aueb.gr
sgeorgiou@singularlogic.eu
https://github.com/stefanos1316
SENECA
Thank
you!
16
Results – Compiler
Optimization Effect
C C++ C# Go Java Rust VB.NET
ArrayCon
43.3-99.6% 0.9-98.4%
1-10%
14-31.5%
6-98.4%
15-97.7%
<10%
Class
3.8-36.6%
15.4%
Merge
15-97.7%
Selection
Bubble
1-10%Quick
Insertion
15.3-62%
URL-Enc. 3.8-36.6%
URL-Deco 14.7% 33.33% 1-10% 14-31.5%
17
Energy usage Compiled
Languages
18
Performance of Compiled
Languages
19

Weitere ähnliche Inhalte

Ähnlich wie Programming Languages Energy Consumption: An Empirical Study

A scoring rubric for automatic short answer grading system
A scoring rubric for automatic short answer grading systemA scoring rubric for automatic short answer grading system
A scoring rubric for automatic short answer grading system
TELKOMNIKA JOURNAL
 
ghortelano-resume v02SEP16
ghortelano-resume v02SEP16ghortelano-resume v02SEP16
ghortelano-resume v02SEP16
Gabe Hortelano
 
A Large Scale Study of Multiple Programming Languages and Code Quality
A Large Scale Study of Multiple Programming Languages and Code QualityA Large Scale Study of Multiple Programming Languages and Code Quality
A Large Scale Study of Multiple Programming Languages and Code Quality
Pavneet Singh Kochhar
 
software development methodologies
software development methodologiessoftware development methodologies
software development methodologies
UTeM
 

Ähnlich wie Programming Languages Energy Consumption: An Empirical Study (20)

Software Engineering education and teaching
Software Engineering education and teachingSoftware Engineering education and teaching
Software Engineering education and teaching
 
Software Engineering Education and Teaching
Software Engineering Education and TeachingSoftware Engineering Education and Teaching
Software Engineering Education and Teaching
 
C04622028
C04622028C04622028
C04622028
 
A scoring rubric for automatic short answer grading system
A scoring rubric for automatic short answer grading systemA scoring rubric for automatic short answer grading system
A scoring rubric for automatic short answer grading system
 
Assisting Tool For Essay Grading For Turkish Language Instructors
Assisting Tool For Essay Grading For Turkish Language InstructorsAssisting Tool For Essay Grading For Turkish Language Instructors
Assisting Tool For Essay Grading For Turkish Language Instructors
 
ghortelano-resume v02SEP16
ghortelano-resume v02SEP16ghortelano-resume v02SEP16
ghortelano-resume v02SEP16
 
A Flowchart-based Programming Environment for Improving Problem Solving Skill...
A Flowchart-based Programming Environment for Improving Problem Solving Skill...A Flowchart-based Programming Environment for Improving Problem Solving Skill...
A Flowchart-based Programming Environment for Improving Problem Solving Skill...
 
Dr Daniel J Clouse Resume
Dr Daniel J Clouse ResumeDr Daniel J Clouse Resume
Dr Daniel J Clouse Resume
 
Dr DanielJ Clouse resumeobf
Dr DanielJ Clouse resumeobfDr DanielJ Clouse resumeobf
Dr DanielJ Clouse resumeobf
 
A Large Scale Study of Multiple Programming Languages and Code Quality
A Large Scale Study of Multiple Programming Languages and Code QualityA Large Scale Study of Multiple Programming Languages and Code Quality
A Large Scale Study of Multiple Programming Languages and Code Quality
 
SCHEDULING AND INSPECTION PLANNING IN SOFTWARE DEVELOPMENT PROJECTS USING MUL...
SCHEDULING AND INSPECTION PLANNING IN SOFTWARE DEVELOPMENT PROJECTS USING MUL...SCHEDULING AND INSPECTION PLANNING IN SOFTWARE DEVELOPMENT PROJECTS USING MUL...
SCHEDULING AND INSPECTION PLANNING IN SOFTWARE DEVELOPMENT PROJECTS USING MUL...
 
Resume
ResumeResume
Resume
 
Text Summarization and Conversion of Speech to Text
Text Summarization and Conversion of Speech to TextText Summarization and Conversion of Speech to Text
Text Summarization and Conversion of Speech to Text
 
50120130405029
5012013040502950120130405029
50120130405029
 
Conventional and Object Oriented Software Engineering
Conventional and Object Oriented Software EngineeringConventional and Object Oriented Software Engineering
Conventional and Object Oriented Software Engineering
 
Predicting More from Less: Synergies of Learning
Predicting More from Less: Synergies of LearningPredicting More from Less: Synergies of Learning
Predicting More from Less: Synergies of Learning
 
Test-Driven Development in the Corporate Workplace
Test-Driven Development in the Corporate WorkplaceTest-Driven Development in the Corporate Workplace
Test-Driven Development in the Corporate Workplace
 
10.1.1.124.4940
10.1.1.124.494010.1.1.124.4940
10.1.1.124.4940
 
Trends and Innovations in Introductory CS Course
Trends and Innovations in Introductory CS CourseTrends and Innovations in Introductory CS Course
Trends and Innovations in Introductory CS Course
 
software development methodologies
software development methodologiessoftware development methodologies
software development methodologies
 

Kürzlich hochgeladen

Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learning
levieagacer
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Sérgio Sacani
 
Bacterial Identification and Classifications
Bacterial Identification and ClassificationsBacterial Identification and Classifications
Bacterial Identification and Classifications
Areesha Ahmad
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Sérgio Sacani
 
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
ssuser79fe74
 
Seismic Method Estimate velocity from seismic data.pptx
Seismic Method Estimate velocity from seismic  data.pptxSeismic Method Estimate velocity from seismic  data.pptx
Seismic Method Estimate velocity from seismic data.pptx
AlMamun560346
 
Formation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksFormation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disks
Sérgio Sacani
 

Kürzlich hochgeladen (20)

Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learning
 
module for grade 9 for distance learning
module for grade 9 for distance learningmodule for grade 9 for distance learning
module for grade 9 for distance learning
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
 
Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)
Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)
Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)
 
Bacterial Identification and Classifications
Bacterial Identification and ClassificationsBacterial Identification and Classifications
Bacterial Identification and Classifications
 
Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.
 
COMPUTING ANTI-DERIVATIVES (Integration by SUBSTITUTION)
COMPUTING ANTI-DERIVATIVES(Integration by SUBSTITUTION)COMPUTING ANTI-DERIVATIVES(Integration by SUBSTITUTION)
COMPUTING ANTI-DERIVATIVES (Integration by SUBSTITUTION)
 
Justdial Call Girls In Indirapuram, Ghaziabad, 8800357707 Escorts Service
Justdial Call Girls In Indirapuram, Ghaziabad, 8800357707 Escorts ServiceJustdial Call Girls In Indirapuram, Ghaziabad, 8800357707 Escorts Service
Justdial Call Girls In Indirapuram, Ghaziabad, 8800357707 Escorts Service
 
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRLKochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
 
COST ESTIMATION FOR A RESEARCH PROJECT.pptx
COST ESTIMATION FOR A RESEARCH PROJECT.pptxCOST ESTIMATION FOR A RESEARCH PROJECT.pptx
COST ESTIMATION FOR A RESEARCH PROJECT.pptx
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
 
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
 
Seismic Method Estimate velocity from seismic data.pptx
Seismic Method Estimate velocity from seismic  data.pptxSeismic Method Estimate velocity from seismic  data.pptx
Seismic Method Estimate velocity from seismic data.pptx
 
GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)
 
Dopamine neurotransmitter determination using graphite sheet- graphene nano-s...
Dopamine neurotransmitter determination using graphite sheet- graphene nano-s...Dopamine neurotransmitter determination using graphite sheet- graphene nano-s...
Dopamine neurotransmitter determination using graphite sheet- graphene nano-s...
 
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
 
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticsPulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
 
Formation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksFormation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disks
 
Clean In Place(CIP).pptx .
Clean In Place(CIP).pptx                 .Clean In Place(CIP).pptx                 .
Clean In Place(CIP).pptx .
 
Unit5-Cloud.pptx for lpu course cse121 o
Unit5-Cloud.pptx for lpu course cse121 oUnit5-Cloud.pptx for lpu course cse121 o
Unit5-Cloud.pptx for lpu course cse121 o
 

Programming Languages Energy Consumption: An Empirical Study