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
Jämförelse av Python-ramverk: Prestanda, inlärningshastighet och Kodstorlek
University West, Department of Engineering Science.
University West, Department of Engineering Science.
2024 (Swedish)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesisAlternative title
Comparison of Python Frameworks : Performance, Learning Curve and Code Size (English)
Abstract [en]

One of the most important parts of building a website is frameworks that communicate with servers. With the development of web applications today and their widespread use, it has also become necessary for the website to have fast response times. This study compares the performance, code usage, and user-friendliness of five different Python frameworks for web development: Flask, Django, FastAPI, Tornado, and Web2py.

The purpose is to identify the framework that stands out with the best performance, least code usage, and high user-friendliness to help developers choose the most suitable framework for their web applications. The study uses a quantitative method to collect data for comparison and conducts a literature review to understand the frameworks functionalities. Performance was assessed using Autocannon, capable of measuring frameworks.

To compare the frameworks' user-friendliness, the time taken to build a web application with similar features will be measured. The final comparison among frameworks will focus on code volume and file size. The number of lines used will be measured, followed by a comparison of file sizes.

The results show that Flask is the framework with the fastest response time. The framework that required the fewest lines of code for the selected functions was also Flask, it had the smallest file size as well, but Django was the framework that took the least time to develop the desired functions.

Abstract [sv]

Ett utav de viktigaste delarna för att bygga upp en webbsida är ett ramverk som kommunicerar med en server. Med utvecklingen av webbapplikationer idag och dess stora användning så krävs det även att webbsidan har snabba svarstider. Denna studie jämför prestanda, kodanvändning och inlärningshastigheten hos fem olika Python-ramverk för webbutveckling: Flask, Django, FastAPI, Tornado och Web2py.

Syftet är att identifiera det ramverk som utmärker sig med bäst prestanda, minst kodanvändning och hög inlärningshastighetför att hjälpa utvecklare att välja det mest lämpliga ramverket för sina webbapplikationer. Studien använder en kvantitativ metod för att samla in data för jämförelse och genomför en litteraturstudie för att förstå ramverkens funktioner. Prestanda bedömningen sker med Autocannon som kan mäta prestandan för alla ramverk. För jämförelse av ramverkens inlärningshastighet kommer tiden mätas över hur lång tid det tog att bygga en webbapplikation med liknande funktioner. Sista jämförelsen mellan ramverken kommer vara antal rader och fil-storlek. Mängden använda rader kommer att mätas, därefter kommer filernas storlekar jämföras.

Resultatet visar att flask är ramverket med den snabbaste svarstiden. Flask krävde även minst antal rader för de valda funktionerna. Det ramverk med minsta fil-storleken blev Flask också, men Django var det ramverk som tog kortast tid att utveckla de önskade funktionerna.

Place, publisher, year, edition, pages
2024. , p. 47
Keywords [en]
Flask, Django, FastApi, Tornado, Web2py, Autocannon, Flask, Django, FastApi, Tornado, Web2py, Autocannon
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:hv:diva-22136Local ID: EHD500OAI: oai:DiVA.org:hv-22136DiVA, id: diva2:1886550
Subject / course
Computer engineering
Educational program
Datateknik - högskoleingenjör
Supervisors
Examiners
Available from: 2024-08-21 Created: 2024-08-02 Last updated: 2024-08-21Bibliographically approved

Open Access in DiVA

No full text in DiVA

By organisation
Department of Engineering Science
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar

urn-nbn

Altmetric score

urn-nbn
Total: 367 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