Student: Remo Scolati
Thesis: Measuring the responsiveness of WebAssembly in edge network applications
University: KTH, School of Electrical Engineering and Computer Science (EECS)
Year: 2023
Now at: CanaryBit, Sweden
Links
About the thesis
Programme: Master's Programme in Software Engineering of Distributed Systems, KTH (30 credits), June 2023
Supervisors: Viktoria Fodor (KTH) and Ian Marsh (RISE) · Examiner: Amir H. Payberah (KTH)
Host: RISE, within the CELTIC-NEXT ANIARA project
Edge computing moves compute and storage close to machines so that cyber-physical systems, such as factory robots, get fast responses. But edge devices are a mixed bag: different CPUs, operating systems and capacities. Code that must run on a Raspberry Pi beside the robot today and a server at the operator's edge tomorrow needs to be portable, fast and safe.
WebAssembly (Wasm) promises all three: compile once to a compact binary, run it in a sandbox on any platform. The thesis asks two research questions: is Wasm usable in an edge-network cyber-physical system, and what does it cost in responsiveness compared with native code?
Method
The workload. Robot control needs inverse kinematics: given where the tool should be, compute the joint angles. The thesis implemented this for two robot models, a five-degree-of-freedom arm and a more complex torso, and tested thousands of target points, reachable and unreachable.

Runtimes. Wasm modules ran under Wasmer 3.1.1 and Wasmtime 6.0.0, both using the Cranelift code generator in ahead-of-time (AOT) and just-in-time (JIT) modes, and compared with a native binary of the same task. The Wasm3 interpreter was tried in preliminary tests but was too slow for the use case and dropped.
Placement. End-to-end benchmarks placed the computation at different points of a networked factory: on the robot's own controller, at a far edge, a near edge and in the cloud.

Requirement. Industrial robots are commonly polled about every 100 ms, so that is the end-to-end budget.
Results
Locally, Wasm is slower. Executing the kinematics on its own, Wasm roughly doubled the execution latency compared with native code.

End to end, the gap shrinks. Once network delay is included, Wasm's share of the total falls. Relative to native, mean response times were about 1.33–1.69× at the far edge, 1.38–1.40× at the near edge, and only 1.03–1.04× from the cloud, where network delay dominates.

All placements stayed well within the 100 ms requirement for this task.
Conclusions and future work
Wasm satisfies the portability requirement of edge networks, and its overhead is not prohibitive for the industrial use case: Wasm could enable many edge applications thanks to its security model, performance and flexibility.
The thesis lists extensions:
- More complex workloads (computer vision, federated learning) and a whole factory floor rather than one arm.
- More of the Wasm ecosystem: compiler back-ends and optimisation options. Results hint at a trade-off between JIT performance and binary size.
- A complete control loop including robot motion, errors and actual actuation.
- A closer look at unexplained outliers, especially on one near-edge device.
The work is written up with the ANIARA project in Network Edge Applications, and the code is on GitHub.
Thesis
Original entry
Remo Scolati, Measuring the responsiveness of WebAssembly in edge network applications, 2023, now at CanaryBit, Sweden, thesis page.
Project
Related publications
- Network Edge Applications
- Evolving 5G: ANIARA, an Edge-Cloud perspective (SNCNW workshop)
- Evolving 5G: ANIARA, an Edge Cloud Perspective (Computing Frontiers)
- Evolving 5G: ANIARA, an Edge-Cloud perspective (SNCNW paper)
BibTeX
@mastersthesis{Scolati1783251,
author = {Scolati, Remo},
title = {Measuring the responsiveness of WebAssembly in edge network applications},
school = {KTH, School of Electrical Engineering and Computer Science (EECS)},
series = {TRITA-EECS-EX},
number = {2023:513},
pages = {49},
year = {2023},
url = {http://www.diva-portal.org/smash/record.jsf?pid=diva2:1783251},
keywords = {Cloud Computing, Edge Computing, Internet of Things, WebAssembly}
}
Source: DiVA record diva2:1783251
More in Masters theses: ← Victor Stenmark (2025) | Hongyi Luo (2022) →