Högskolan i Skövde

his.sePublications
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • apa-cv
  • 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
JavaScript mot TypeScript: Prestanda för JavaScript mot TypeScript med formulärhantering
University of Skövde, School of Informatics.
2024 (Swedish)Independent thesis Basic level (degree of Bachelor), 20 credits / 30 HE creditsStudent thesisAlternative title
JavaScript vs TypeScript : Performance of JavaScript against TypeScript with form handling (English)
Abstract [sv]

Arbetet syftar till att jämföra exekveringstiden mellan JavaScript och TypeScript vid hantering av formulär. För att uppnå detta genomfördes ett experiment där identiska formulär skapades och hanterades med både JavaScript och TypeScript. Formulären innehåller vanliga element som textfält, radioknappar och dropdown-menyer.

Mätningar av exekveringstiden gjordes för olika operationer, inklusive validering av användarinmatning, dynamisk uppdatering av formulärens innehåll och inskickning av formulärdata till en server. Resultaten analyserades för att avgöra om det finns signifikanta skillnader i prestanda mellan de två språken.

Sammanfattningsvis visade resultaten att exekveringstiderna för JavaScript och TypeScript är mycket lika, med endast marginella skillnader som kan tillskrivas kompileringsöverhuvudet i TypeScript. Den största fördelen med TypeScript visade sig ligga i utvecklingsprocessen, där dess statiska typkontroll bidrar till bättre kodunderhåll och färre fel, snarare än i exekveringstiden. Slutsatsen är att valet mellan JavaScript och TypeScript bör baseras mer på projektspecifika krav på kodkvalitet och underhållbarhet snarare än på prestandaskillnader.

Abstract [en]

This study aims to compare the execution time between JavaScript and TypeScript in form handling. Identical forms, including text fields, radio buttons, and dropdown menus, were created and managed using both languages. Execution time measurements were taken for various operations such as user input validation, dynamic form content updates, and form data submission to a server. The results were analyzed to determine if there were significant performance differences between the two languages. 

The findings indicate that the execution times for JavaScript and TypeScript are very similar, with only marginal differences attributable to TypeScript's compilation overhead. The primary advantage of TypeScript was found in the development process, where its static type checking contributes to better code maintenance and fewer errors, rather than in execution time. The conclusion is that the choice between JavaScript and TypeScript should be based more on project-specific requirements for code quality and maintainability rather than performance differences.  

Place, publisher, year, edition, pages
2024. , p. 37
National Category
Information Systems, Social aspects
Identifiers
URN: urn:nbn:se:his:diva-24084OAI: oai:DiVA.org:his-24084DiVA, id: diva2:1879907
Subject / course
Informationsteknologi
Educational program
Web Developer - Programming
Supervisors
Examiners
Available from: 2024-06-29 Created: 2024-06-29 Last updated: 2024-06-29Bibliographically approved

Open Access in DiVA

fulltext(724 kB)34 downloads
File information
File name FULLTEXT01.pdfFile size 724 kBChecksum SHA-512
64c24a37c4db235b165361fe98f105c96bc4b54652040af507ff494c5673f91da21dd1aef05ccbcc4fbb7a4380071a90a4c03e9fb8b62b99f3ce734dd96f8225
Type fulltextMimetype application/pdf

By organisation
School of Informatics
Information Systems, Social aspects

Search outside of DiVA

GoogleGoogle Scholar
Total: 34 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: 857 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • apa-cv
  • 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