hig.sePublications
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • harvard-cite-them-right
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • sv-SE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • de-DE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Runtime-påverkan på pre- och post-processing i JVM-baserad objektdetektering
University of Gävle, Faculty of Engineering and Sustainable Development, Department of Computer and Geospatial Sciences, Computer Science.
2026 (Swedish)Independent thesis Basic level (professional degree), 10 credits / 15 HE creditsStudent thesis
Sustainable development
The essay/thesis is partially on sustainable development according to the University's criteria
Abstract [sv]

I samband med att artificiell intelligens och maskininlärning får en allt mer central roll i datavetenskapen, integreras inferens med maskininlärning i ett växande antal system. Latensen för inferens med maskininlärning i praktiska scenarier utgörs inte enbart av den faktiska modellexekveringen utan påverkas även av faktorer som för- behandling och efterbehandling av data. När en inferenspipeline introduceras i en Javabaserad applikation exekveras vanligen dessa steg i samma runtime-miljö som övrig affärslogik: Java Virtual Machine (JVM). Denna studie analyserar de effekter på latens i för- och efterbehandlingsstegen som uppkommer genom JVM-specifika runtime-mekanismer såsom just-in-time-optimeringar (JIT) och garbage collection (GC). Studien genomförs som en experimentell systemanalys med latensmätningar som empiriskt underlag.Visuell analys av JIT-uppvärmning visar att för- och efterbehandlingsalgoritmerna optimeras tidigt i programexekveringen, men att optimeringen sammanfaller med initiering av modellexekveringen. Spearman-test och Point-Biserial-test påvisar ett statistiskt signifikant samband mellan GC-händelser och latenser i den 95:e percentilen och den deskriptiva analysen påvisar att GC-aktivitet är överrepresenterad med en faktor om 17-20x mot vad dess frekvens indikerar. Dessa fynd kan vara relevanta vid design av latenskänsliga system

Abstract [en]

In a time where artificial intelligence and machine learning is becoming increasingly central in computer science, inference is being integrated in a growing number of systems. Latency related to inference in practical scenarios are not isolated to execution of the model, but is also affected by preprocessing and postprocessing of the data surrounding the inference. When a pipeline for ML-inference is introduced in a Java-based system, preprocessing and postprocessing is commonly executed in the same runtime as other business logic: Java Virtual Machine (JVM). This thesis aims to analyze the effects on latency for pre- and post-processing introduced by runtime mechanisms introduced by JVM, such as Just-In-Time-optimizations and Garbage Collection. This study is an experimental system analysis which uses measurements of latencies as empirical evidence.

Visual analysis of JIT-warmup shows that pre and postprocessing algorithms are optimized early in the experiments, but the JIT-optimization usually occurs simultaneously as the model is being initiated. Spearman-tests and Point-Biserial-tests indicate that there is a statistically significant connection between GC-activity and P95-latencies, and descriptive analysis points out that GC-activities are 17-20x more represented in P95-latencies than their overall frequency would indicate. These findings can be relevant when designing systems sensitive to tail latency.

Place, publisher, year, edition, pages
2026. , p. 30
Keywords [en]
Machine learning systems, Java Virtual Machine, ONNX Runtime, Performance analysis, Experimental evaluation.
Keywords [sv]
Maskininlärningssystem, Java Virtual Machine, ONNX Runtime, Prestandaanalys, Experimentell utvärdering
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:hig:diva-50086OAI: oai:DiVA.org:hig-50086DiVA, id: diva2:2070238
External cooperation
Sogeti
Subject / course
Computer science
Educational program
Högskoleingenjör
Supervisors
Examiners
Available from: 2026-06-23 Created: 2026-06-11 Last updated: 2026-06-23Bibliographically approved

Open Access in DiVA

fulltext(777 kB)9 downloads
File information
File name FULLTEXT01.pdfFile size 777 kBChecksum SHA-512
aca57f4ec49a5ee54e7a28f84027e57cf1d9a5def34072ef2b319aecf72a9765c969b2bb1e05290edaef0c05348b4f929e7b30649f16c494c3fa28e6d532d4ea
Type fulltextMimetype application/pdf

By organisation
Computer Science
Computer and Information Sciences

Search outside of DiVA

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

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