Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Comparison of Energy Usage and Response Time for Web Frameworks
Blekinge Institute of Technology, Faculty of Computing, Department of Software Engineering.
Blekinge Institute of Technology, Faculty of Computing, Department of Computer Science.
2023 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesis
Abstract [en]

Background. Environmental sustainability and reducing energy consumption are important and relevant topics today. Energy consumption by data centres is constantly increasing. One factor that could be affecting this is what web frameworks are being used.

Objectives. We wanted to investigate whether there is a difference in energy consumption depending on the selected web framework for an API web server. An improvement should not come with overhanging negative side effects. Therefore, energy usage was to be contrasted with response time. In addition, we wanted to see how the choice of response format affects these metrics. In the case of finding any considerable impact on energy usage, without compromising the response time, the goal was to communicate this in order to increase the awareness among software developers.

Methods. A literature review was done in order to gather existing information on how to conduct an experiment measuring software energy consumption. We evaluated available tools for measuring consumed application energy. An experiment then compared four popular web frameworks in regard to both energy usage, and response time. Django, Express, Laravel, and Spring Boot were selected for the experiment. Metrics measured were energy usage and response time. The experiment was executed with three different amounts of concurrent requests vusers = {10, 100, 250}.

Results. The literature study resulted in a selection of software tools for measuring software energy consumption to choose from. The tool perf was chosen for the experiment. In the experiment, the response format was shown to affect the response time, but not the energy consumption. Increasing the amount of concurrent users made for larger differences between frameworks, both regarding energy usage and response time. Express and Spring Boot show the best performance in both regards for all amounts of concurrent requests.

Conclusions. Express and Spring Boot are the clear winners out of the four compared frameworks. Both in terms of energy usage and response time, they had the best results. Django is not a web framework to recommend if response time is of importance.

Place, publisher, year, edition, pages
2023. , p. 33
Keywords [en]
web framework, server, energy usage, response time, response format
National Category
Software Engineering
Identifiers
URN: urn:nbn:se:bth-24759OAI: oai:DiVA.org:bth-24759DiVA, id: diva2:1769430
Subject / course
PA1445 Kandidatkurs i Programvaruteknik; PA1445 Kandidatkurs i Programvaruteknik
Educational program
PAGPT Software Engineering; PAGWE Web Programming
Supervisors
Examiners
Available from: 2023-06-27 Created: 2023-06-16 Last updated: 2023-06-27Bibliographically approved

Open Access in DiVA

fulltext(981 kB)332 downloads
File information
File name FULLTEXT01.pdfFile size 981 kBChecksum SHA-512
10e1f27cad5fe17e1273b6b12ade67b9feeaefd104589e46c1e4eb7bcb6679eda257243389ee708345d8df5d7e34dbfac59c029bf5b9a44fa261fab2d3cdfca3
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
de Mander, FeliciaGren, Wilhelm
By organisation
Department of Software EngineeringDepartment of Computer Science
Software Engineering

Search outside of DiVA

GoogleGoogle Scholar
Total: 332 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 457 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf