Lune

OOPSLA2024顶会

Wasm-R3: Record-Reduce-Replay for Realistic and Standalone WebAssembly Benchmarks

Doehyun Baek, Jakob Getz, Yusung Sim, Daniel Lehmann, Ben L. Titzer, Sukyoung Ryu, Michael Pradel

摘要

WebAssembly (Wasm for short) brings a new, powerful capability to the web as well as Edge, IoT, and embedded systems. Wasm is a portable, compact binary code format with high performance and robust sandboxing properties. As Wasm applications grow in size and importance, the complex performance characteristics of diverse Wasm engines demand robust, representative benchmarks for proper tuning. Stopgap benchmark suites, such as PolyBenchC and libsodium, continue to be used in the literature, though they are known to be unrepresentative. Porting of more complex suites remains difficult because Wasm lacks many system APIs and extracting real-world Wasm benchmarks from the web is difficult due to complex host interactions. To address this challenge, we introduce Wasm-R3, the first record and replay technique for Wasm. Wasm-R3 transparently injects instrumentation into Wasm modules to record an execution trace from inside the module, then reduces the execution trace via several optimizations, and finally produces a replay module that is executable standalone without any host environment-on any engine. The benchmarks created by our approach are (i) realistic, because the approach records real-world web applications, (ii) faithful to the original execution, because the replay benchmark includes the unmodified original code, only adding emulation of host interactions, and (iii) standalone, because the replay benchmarks run on any engine. Applying Wasm-R3 to web-based Wasm applications in the wild demonstrates the correctness of our approach as well as the effectiveness of our optimizations, which reduce the recorded traces by 99.53% and the size of the replay benchmark by 9.98%. We release the resulting benchmark suite of 27 applications, called Wasm-R3-Bench, to the community, to inspire a new generation of realistic and standalone Wasm benchmarks.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 1 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Finding the dwarf: recovering precise types from WebAssembly binaries 引用了 An Empirical Study of Real-World WebAssembly Binaries: Security, Languages, Use Cases
  • Finding the dwarf: recovering precise types from WebAssembly binaries 引用了 Wobfuscator: Obfuscating JavaScript Malware via Opportunistic Translation to WebAssembly
  • Execution-Aware Program Reduction for WebAssembly via Record and Replay 引用了 A fast in-place interpreter for WebAssembly
  • Automated WebAssembly Function Purpose Identification With Semantics-Aware Analysis 引用了 An Empirical Study of Real-World WebAssembly Binaries: Security, Languages, Use Cases
  • Wobfuscator: Obfuscating JavaScript Malware via Opportunistic Translation to WebAssembly 引用了 An Empirical Study of Real-World WebAssembly Binaries: Security, Languages, Use Cases
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper1

  1. Execution-Aware Program Reduction for WebAssembly via Record and ReplayDoehyun Baek, Daniel Lehmann, Ben L. Titzer, Sukyoung Ryu 等ASE 2025

它引用的 Paper7

  1. An Empirical Study of Real-World WebAssembly Binaries: Security, Languages, Use CasesAaron Hilbig, Daniel Lehmann, Michael PradelWWW 2021 · 114 次引用
  2. A fast in-place interpreter for WebAssemblyBen L. TitzerOOPSLA 2022 · 44 次引用
  3. Wobfuscator: Obfuscating JavaScript Malware via Opportunistic Translation to WebAssemblyAlan Romano, Daniel Lehmann, Michael Pradel, Weihang WangS&P 2022 · 40 次引用
  4. Finding the dwarf: recovering precise types from WebAssembly binariesDaniel Lehmann, Michael PradelPLDI 2022 · 29 次引用
  5. Automated WebAssembly Function Purpose Identification With Semantics-Aware AnalysisAlan Romano, Weihang WangWWW 2023 · 14 次引用

相关 Paper

  1. Flexible Non-intrusive Dynamic Instrumentation for WebAssemblyBen L. Titzer, Elizabeth Gilbert, Bradley Wei Jie Teo, Yash Anand 等ASPLOS 2024 · 7 次引用
  2. Revealing Performance Issues in Server-Side WebAssembly Runtimes Via Differential TestingShuyao Jiang, Ruiying Zeng, Zihao Rao, Jiazhen Gu 等ASE 2023 · 12 次引用
  3. Indexed Types for a Statically Safe WebAssemblyAdam T. Geller, Justin Frank, William J. BowmanPOPL 2024 · 4 次引用
  4. Debugging WebAssembly? Put Some Whamm on It!Elizabeth Gilbert, Matthew Schneider, Zixi An, Suhas Thalanki 等OOPSLA 2025 · 2 次引用
  5. That's a Tough Call: Studying the Challenges of Call Graph Construction for WebAssemblyDaniel Lehmann, Michelle Thalakottur, Frank Tip, Michael PradelISSTA 2023 · 11 次引用
黄昏的海面,两侧是细线勾勒的悬崖