The Need for Speed of AI Applications: Performance Comparison of Native vs. Browser-based Algorithm Implementations

02/11/2018
by   Bernd Malle, et al.
0

AI applications pose increasing demands on performance, so it is not surprising that the era of client-side distributed software is becoming important. On top of many AI applications already using mobile hardware, and even browsers for computationally demanding AI applications, we are already witnessing the emergence of client-side (federated) machine learning algorithms, driven by the interests of large corporations and startups alike. Apart from mathematical and algorithmic concerns, this trend especially demands new levels of computational efficiency from client environments. Consequently, this paper deals with the question of state-of-the-art performance by presenting a comparison study between native code and different browser-based implementations: JavaScript, ASM.js as well as WebAssembly on a representative mix of algorithms. Our results show that current efforts in runtime optimization push the boundaries well towards (and even beyond) native binary performance. We analyze the results obtained and speculate on the reasons behind some surprises, rounding the paper off by outlining future possibilities as well as some of our own research efforts.

READ FULL TEXT

page 13

page 16

page 17

research
05/14/2020

Developing Accessible Mobile Applications with Cross-Platform Development Frameworks

This contribution investigates how cross-platform development frameworks...
research
04/12/2022

Single-Purpose Algorithms vs. a Generic Graph Summarizer for Computing k-Bisimulations on Large Graphs

We investigate whether a generic graph summarization approach BRS can ou...
research
06/05/2019

Nail Polish Try-On: Realtime Semantic Segmentation of Small Objects for Native and Browser Smartphone AR Applications

We provide a system for semantic segmentation of small objects that enab...
research
06/04/2023

Prompt Sapper: LLM-Empowered Software Engineering Infrastructure for AI-Native Services

Foundation models, such as GPT-4, DALL-E have brought unprecedented AI "...
research
03/01/2018

The Effect of Instruction Padding on SFI Overhead

Software-based fault isolation (SFI) is a technique to isolate a potenti...
research
12/04/2019

Gobi: WebAssembly as a Practical Path to Library Sandboxing

Software based fault isolation (SFI) is a powerful approach to reduce th...
research
01/09/2023

AI2: The next leap toward native language based and explainable machine learning framework

The machine learning frameworks flourished in the last decades, allowing...

Please sign up or login with your details

Forgot password? Click here to reset