Not So Fast: Analyzing the Performance of WebAssembly vs. Native Code
Paper · 2019 · Abhinav Jangda, Bobby Powers, Emery Berger et al.
Summary
Moving an application into a browser changes more than where its instructions execute. The program must operate within a protected environment, use the facilities that environment supplies, and accept the machine code its browser generates. “Not So Fast: Analyzing the Performance of WebAssembly vs. Native Code” investigates how much those differences matter for substantial applications. Its subject is WebAssembly, the portable low-level compilation target intended to let software written in languages such as C and C++ execute efficiently inside browsers. The paper finds that encouraging measurements on small numerical programs do not describe the whole performance picture.
The initial obstacle was experimental access. Existing Unix applications expect services that a browser does not directly offer: files, process creation, pipes, and input or output that can block until an operation finishes. Changing benchmark source code to avoid those expectations would compromise the comparison. The authors instead developed Browsix-Wasm, extending the browser-based Unix environment Browsix to execute WebAssembly applications without altering their source. They also built Browsix-SPEC, which coordinates benchmark launches, checks results, records elapsed time, and gathers processor-event measurements. Measuring the supporting environment was essential: otherwise, an inefficient compatibility layer could be mistaken for an inefficient execution format.
The resulting experiments use C and C++ workloads from SPEC CPU2006 and CPU2017, alongside the small PolyBenchC kernels used in earlier research. On SPEC, the reported mean execution slowdown relative to native is 1.55× for Chrome and 1.45× for Firefox. The greatest penalties are 2.5× and 2.08×, respectively. These measurements begin after WebAssembly compilation, so they concern execution instead of the full delay of downloading, compiling, and starting an application. WebAssembly still improves on asm.js, a restricted JavaScript compilation target: selecting the fastest observed browser separately for each target yields a mean speedup of 1.3×. Instrumentation of Browsix-Wasm shows average direct overhead of 0.2%, making that layer an insufficient explanation for the larger execution gap.
The diagnosis combines a close examination of matrix multiplication with hardware counters collected across SPEC. Browser-generated execution performs more loads and stores, follows additional branches, and incurs more misses in the nearest instruction cache. The authors connect these observations to register reservations, allocation decisions, instruction selection, loop construction, and safety checks. They distinguish weaknesses that better compiler engineering could address from costs associated with safe execution and integration with JavaScript. Their contribution is therefore both empirical and explanatory: a broader application benchmark changes the performance conclusion, while machine-level evidence identifies specific places to investigate.
Interesting ideas
Choose workloads from the claim. A benchmark supports conclusions about the behavior it exercises. Numerical loops can reveal important compiler properties while saying little about larger applications with indirect calls, substantial code, or operating-system dependencies. The authors choose workloads by comparing them with WebAssembly’s intended uses. This approach applies to evaluation and benchmarks wherever a convenient test risks becoming a substitute for the actual deployment question.
Treat the harness as a suspect. New infrastructure enables an experiment but also introduces possible explanations for its outcome. The authors inspect and time their browser-side Unix support rather than assuming that its contribution is harmless. This is useful for experiments involving adapters, emulators, storage layers, or distributed workers: establish what the surrounding machinery contributes before attributing a result to the component under study.
Preserve the computation during a port. Adapting the runtime beneath an application can retain a clearer connection to its established workload than rewriting the application around a platform’s missing facilities. Browsix-Wasm supplies the required services while leaving benchmark source intact. The same principle helps when comparing execution backends, moving software between environments, or assessing a replacement implementation.
Connect symptoms to mechanisms. A duration tells an engineer that something is slower; it rarely identifies why. Combining processor counters with generated-code inspection narrows the possibilities. The paper moves between an inspectable example and application-wide observations, using each to qualify the other. This strategy transfers to interpreters, database engines, language-processing pipelines, and other systems where distinct internal problems produce similar overall delays.
Share the comparison infrastructure. The authors run asm.js through their improved environment instead of comparing it through an older, slower support layer. A common execution harness reduces the chance that differences in launch procedures, data access, or result handling decide the apparent winner. This is especially valuable when comparing implementations developed at different times.
Keep counterexamples in the explanation. Some WebAssembly programs execute more instructions yet finish faster than their native counterparts. Those cases prevent an explanation based solely on instruction totals. Anomalies can distinguish a useful mechanism from an overgeneralized rule, whether the subject is processor performance, parsing errors, retrieval behavior, or statistical evaluation.
Distinguish obligations from avoidable work. An unnecessary temporary register suggests a different intervention from a check that protects an execution boundary. The paper separates implementation shortcomings, compilation-speed tradeoffs, and safety-related requirements. That classification helps engineers choose whether to improve an algorithm, change a representation, revise an interface, or retain a necessary cost.
Deep dive: Not So Fast: Analyzing the Performance of WebAssembly vs. Native Code
Why WebAssembly falls behind native execution on larger programs, and how browser benchmarks uncover the causes of that slowdown. · about 39 minutes to read
How Mova uses it
Mova is a transparent language system implemented in Rust. Its documented core turns text into dependency structure, interprets that structure as frames, and maintains contextual worlds. Its surrounding tools include storage, bounded workers, benchmarking facilities, and a WASI host for untrusted modules. These provide concrete connections to the paper, but they do not establish a completed browser port or a measured WebAssembly performance result. The status marks below indicate proposed correspondence with documented mechanisms. They do not mean that a transfer from this paper has been evaluated.
Idea: Select benchmarks that resemble useful work. Where: Introduction, “The Challenge of Benchmarking WebAssembly.” Area: eval. Mova: частково є (README.md, “Measured”; docs/architecture.md, “The students”). Mova already evaluates parsing, school tasks, mathematical problems, and narrative readers instead of relying on an isolated arithmetic test. A backend comparison could preserve that breadth and include the complete language path from sentence input to justified output. The paper supports the selection principle; suitable workload coverage for a Mova WebAssembly experiment remains unknown.
Idea: Measure the machinery surrounding the computation. Where: Evaluation, “Browsix-Wasm Overhead.” Area: performance evaluation. Mova: частково є (tools/jobs and tools/twin, described in docs/architecture.md). Mova documents execution-cost tracking and comparisons between predictions and measured runs. The proposed extension is explicit accounting for time spent in a sandbox host, serialization boundary, worker transport, or data adapter. That would help distinguish slow linguistic processing from slow orchestration without assuming that the wrapper is negligible.
Idea: Retain application behavior when changing execution environments. Where: Introduction and “From Browsix to Browsix-Wasm.” Area: software portability. Mova: частково є (docs/gpu-exec.md as characterized in README.md; vfs and wasi-host in docs/architecture.md). Mova distinguishes exact execution stages from measured approximations. A native-to-sandbox comparison could similarly preserve inputs, result structures, and failure behavior while adapting the host interface. No such WebAssembly conformance result is established by the digest.
Idea: Combine elapsed time with lower-level evidence. Where: “Performance Analysis.” Area: performance diagnosis. Mova: частково є (tools/twin and tools/bench in docs/architecture.md). Existing timing and cost facilities provide a starting point. Processor-event measurements could investigate whether expensive parsing or graph traversal reflects memory traffic, control flow, or instruction delivery. This would be an additional diagnostic path, not a claim that Mova currently collects the counters used in the paper.
Idea: Use a shared harness for competing implementations. Where: Evaluation, “Comparison of WebAssembly and asm.js.” Area: eval. Mova: частково є (README.md, “Two execution modes”; docs/architecture.md, “Execution modes”). Mova already names a CPU reference and requires explicit GPU activation. The transferable proposal is to keep input loading, output validation, and measurement boundaries common when comparing backends, so that differing support code does not masquerade as a computational improvement.
Idea: Investigate exceptions rather than hiding them in aggregates. Where: “Performance Analysis,” “Increased Code Size.” Area: analysis. Mova: частково є (world/src/knowledge/retention/fastread.rs; en rules-audit applications in the digest). Mova already retains individual reading failures and exposes tagging and attachment diagnostics. Performance reports could similarly retain cases where the expected relation between instructions, memory work, and runtime fails. Those cases could reveal an incorrect explanation or a workload-specific advantage.
Idea: Classify costs by the contract they satisfy. Where: “Performance Analysis,” “Discussion.” Area: architecture. Mova: частково є (docs/hybrid-system.md; docs/groupants.md as characterized in the digest). Mova’s explicit interfaces and evidence boundaries already distinguish different operational responsibilities. A performance investigation could label costs as required validation, representation overhead, implementation weakness, or scheduling choice. That would prevent an optimization proposal from quietly removing a condition needed for trustworthy execution.
Idea: Compare runnable coverage as well as speed. Where: Evaluation, “SPEC Benchmarks.” Area: eval. Mova: частково є (docs/hybrid-system.md, “A request becomes a bounded plan”). The native deputy already preserves unsupported and ambiguous requests as failures. A backend report could likewise list tasks that cannot compile, cannot load their resources, or exceed execution limits before summarizing successful timings. Fast execution on admitted cases would then remain separate from the breadth of admitted work.
Idea: State the timing boundary explicitly. Where: Evaluation, experimental setup. Area: measurement. Mova: частково є (tools/dictindex/README.md, “Storage and limits”). Dictionary-index measurements already distinguish startup and cache scope. The same discipline could cover parser loading, first-use initialization, and recurring inference in a sandbox. This would make a warm execution measurement interpretable without presenting it as the complete cost seen by a user.
Idea: Separate compilation effort from execution efficiency. Where: Evaluation, “SPEC Benchmarks,” compilation discussion. Area: compiler evaluation. Mova: частково є (README.md, “How it works”; docs/architecture.md, “Compilation into classes”). Mova compiles curated knowledge into Rust tables and comparisons. A deployment study could report preparation and build costs separately from runtime costs, preserving the distinction between a representation that is cheap to execute and one that is cheap to produce.
Idea: Validate results before accepting a timing. Where: “Browsix-SPEC Benchmark Execution.” Area: correctness and eval. Mova: вже є (README.md, deterministic and measured principles; docs/hybrid-system.md, “Models and checks in the loop”). Mova already treats a successful process exit as weaker evidence than an admitted result. The paper reinforces applying that rule to performance work: a faster backend must still preserve the required outputs, explanations, and failure conditions.
Idea: Attach measurements to exact configurations. Where: Evaluation, experimental setup. Area: reproducibility. Mova: вже є (docs/hybrid-system.md, recursive calls retaining configuration identity; tools/dictindex/README.md, versioned sources and epochs). Mova already binds operational evidence to source and configuration identities. Performance receipts could use the same principle for compiler options, execution mode, host version, and data identity. A headline speed claim would then remain connected to the conditions that produced it.
Idea: Use an inspectable example before generalizing. Where: “Case Study: Matrix Multiplication,” followed by “Performance Analysis.” Area: analysis. Mova: частково є (README.md story-world examples; en rules-audit and French grammar-example checks in the digest). Mova already provides compact examples with visible reasoning. An optimization study could choose a small parsing or graph operation whose execution can be inspected, then test the proposed mechanism across real documents instead of allowing the small example to stand in for application evidence.
Idea: Control an unavailable capability in a focused comparison. Where: “Case Study: Matrix Multiplication.” Area: experimental controls. Mova: частково є (README.md, CPU reference and GPU approximants). The authors disable automatic vectorization to examine scalar code-generation differences. For Mova, a similarly focused comparison could hold optional acceleration or approximation constant while investigating a particular representation. The control would answer a narrower question than a complete deployment benchmark, and should be described accordingly.
Idea: Keep application memory separate from exchange memory. Where: “From Browsix to Browsix-Wasm,” “Emscripten Runtime Modifications.” Area: runtime interfaces. Mova: нове. A sandboxed Mova component might benefit from a dedicated request-and-response region rather than exposing its entire working memory to its host. This is a proposal about interface structure; whether Mova’s existing WASI host needs such an arrangement is unknown. Why Mova: a bounded exchange region could make data ownership and host interaction easier to inspect.
Idea: Divide transfers according to an explicit capacity. Where: “Emscripten Runtime Modifications.” Area: bounded data processing. Mova: частково є (tools/dictindex/README.md, bounded imports and compressed blocks; tools/enrich/README.md, bounded packets). Existing tools already process bounded units. The paper suggests preserving a separate distinction between the size of a logical operation and the size of each physical transfer, useful if document or graph exchanges must cross a restricted host boundary.
Idea: Grow storage without repeatedly copying everything. Where: “From Browsix to Browsix-Wasm,” “Performance Optimization.” Area: storage. Mova: нове. A focused audit could look for repeated buffer replacement when constructing explanations, serializing graphs, or accumulating worker output. The paper’s filesystem example motivates the question but does not establish that Mova contains the same defect. Why Mova: avoiding repeated copies could reduce infrastructure work while preserving the language computation exactly.
Idea: Inspect allocations and copying in communication paths. Where: “Performance Optimization,” pipe improvements. Area: systems performance. Mova: частково є (tools/dictindex/README.md, prepared storage and shared compressed blocks; pack in docs/architecture.md). Mova already reduces duplication in stored representations. The proposed extension is to inspect live worker exchanges and host calls with equal care, because efficient durable storage does not establish efficient transient communication.
Idea: Distinguish the component from its surrounding process. Where: “Browsix-SPEC Benchmark Execution,” attaching perf to the benchmark worker thread. Area: instrumentation. Mova: нове. A worker-based profiling setup could identify the execution unit performing the actual task rather than assigning all activity in a coordinator process to that task. The appropriate mechanism depends on Mova’s deployment and remains unknown. Why Mova: precise attribution would make worker-level performance explanations more credible.
Idea: Retain distributional summaries alongside individual cases. Where: Evaluation, SPEC execution discussion and execution-time table caption. Area: stats. Mova: частково є (prag/src/eval.rs confidence groups; tools/dictindex/README.md, coverage reporting). Mova already reports stratified behavior in some evaluations. Backend studies could retain per-task values and clearly label mean, median, and extreme behavior. This would avoid letting a single aggregate determine expectations for every reader or dictionary operation.
Idea: Repeat runs and expose uncertainty. Where: Evaluation, experimental setup. Area: stats. Mova: вже є (README.md, “Principles”; prag/src/eval.rs and wordgraph/src/eval.rs applications in the digest). Mova already requires repeatability and uses uncertainty estimates in documented analyses. The paper supports extending that discipline to runtime evaluation, where stable outputs and variable execution times are distinct observations rather than interchangeable evidence.
Idea: Distinguish static code size from executed work. Where: “Case Study: Matrix Multiplication,” “Increased Code Size”; “Performance Analysis.” Area: compiler analysis. Mova: нове. Compiled rule tables or specialized matching code could be examined through both their generated footprint and the instructions actually executed on representative documents. Neither measurement alone would settle efficiency. Why Mova: generated rules may save interpretation work while increasing the amount of code the processor must keep available.
Idea: Test instruction-cache behavior in compiled rule systems. Where: “Performance Analysis,” “Increased Code Size.” Area: runtime performance. Mova: нове. Mova compiles lexical and global knowledge into its binaries, making instruction delivery a plausible investigation topic when generated code grows. The paper supplies a hypothesis, not evidence that this is currently a bottleneck. Why Mova: a larger compiled rule set could alter runtime behavior even when each individual rule remains cheap.
Idea: Inspect register pressure before blaming the algorithm. Where: “Performance Analysis,” “Increased Register Pressure.” Area: compiler performance. Mova: нове. If a sandboxed graph or parsing operation slows down, examining spills could reveal an execution-backend problem instead of a flaw in the linguistic procedure. No register-pressure measurement for Mova is supplied. Why Mova: this distinction could preserve a sound rule-based algorithm while directing optimization towards its generated implementation.
Idea: Consider host-reserved resources in module budgets. Where: “Increased Register Pressure,” “Reserved Registers.” Area: sandbox architecture. Mova: нове. A host can consume resources that exist physically but are unavailable to a module. Mova’s module evaluations could distinguish hardware capacity from the capacity actually exposed by the execution environment. Why Mova: explicit host constraints would make comparisons between native workers and sandboxed logical modules more realistic.
Idea: Avoid expanding compact operations unnecessarily. Where: “Case Study: Matrix Multiplication,” addressing-mode comparison. Area: representation design. Mova: нове. A proposed audit could identify places where one typed operation becomes several intermediate moves, allocations, or conversions across an interface. The analogy concerns unnecessary expansion, not a claim that semantic operations correspond directly to processor instructions. Why Mova: compact typed interfaces may reduce work while keeping the reason for each operation visible.
Idea: Measure validation costs without weakening validation. Where: “Extra Branch Instructions,” stack and indirect-call checks. Area: safety and performance. Mova: частково є (treeagree validation gates; docs/hybrid-system.md, admitted results). Mova already validates evidence and structural invariants. Profiling those checks could distinguish expensive necessary work from duplicated checking, while retaining the protections that make downstream results admissible.
Idea: Move checks earlier only when evidence permits it. Where: “Performance Analysis,” “Discussion,” richer pointer types. Area: type systems and validation. Mova: частково є (docs/architecture.md, compile-time concept declarations; groupant invariants described in the digest). Mova already rejects undeclared concept links during builds. A related proposal is to identify additional properties that can be established when a module or resource is admitted, without treating dynamic document properties as statically guaranteed.
Idea: Match optimization effort to execution importance. Where: “Performance Analysis,” “Discussion,” further optimization of hot code. Area: optimization policy. Mova: частково є (README.md, gated self-improvement; tools/twin in docs/architecture.md). Mova already tests proposed changes and records cost evidence. A future optimizer could prioritize repeatedly expensive paths using measured use instead of optimizing every rule equally. The paper does not establish that runtime specialization would benefit Mova.
Idea: Distinguish a fair diagnostic from a deployment choice. Where: Evaluation, within-browser and best-browser asm.js comparisons. Area: eval. Mova: частково є (README.md, explicit execution modes; docs/architecture.md, transparent routing). Comparing two backends under fixed conditions answers a different question from choosing the best backend independently for each task. Mova reports could preserve both questions and state which information a selector actually uses.
Idea: Admit operational dependencies explicitly. Where: Introduction, missing Unix services; “Browsix-SPEC.” Area: module interfaces. Mova: частково є (docs/hybrid-system.md, configured capabilities; layers domain interfaces in docs/architecture.md). A logical module’s callable computation is only part of its execution contract. Resource loading, storage access, and permitted host services could be declared alongside it. The digest establishes explicit interfaces but does not establish a complete portable dependency declaration.
Idea: Preserve partial success without claiming full coverage. Where: Evaluation, excluded workloads and alternative datasets. Area: data and evaluation accounting. Mova: вже є (tools/sources/README.md and tools/enrich/README.md). Mova already distinguishes a failed or partial pass from a fully consumed source or completed artifact. The same principle applies to backend benchmarks: successful smaller inputs must not silently replace unsupported reference workloads in a claim of comprehensive coverage.
Idea: Keep portability separate from performance portability. Where: Introduction, WebAssembly goals; Evaluation, browser comparisons. Area: deployment evaluation. Mova: частково є (docs/architecture.md, vfs and wasi-host; README.md, execution-mode boundaries). A module that produces correct results in multiple hosts has demonstrated a different property from one that performs similarly across them. A Mova logical-module evaluation could keep these receipts separate, with host-specific performance remaining an empirical question.
The problem and its context
A portable format does not settle execution speed
WebAssembly appears in the paper as an answer to a longstanding browser problem: how to execute programs from languages other than JavaScript while retaining portability and protection. JavaScript offered widespread availability, but its dynamic behavior complicated efficient compilation. WebAssembly supplied a lower-level representation with static types, designed for validation and translation into machine instructions.
A low-level representation helps, but it does not erase the browser runtime. The module still reaches the processor through a browser compiler. That compiler chooses instructions, assigns registers, and inserts whatever checks the runtime requires. It must also generate executable code quickly enough for online use. Consequently, efficient source compilation and efficient final execution are connected questions, not the same question.
The authors describe a combination of goals: portable execution, compact representation, rapid compilation, good runtime performance, and formal safety properties. These goals explain why native execution is a demanding comparison. A native executable does not necessarily carry the same validation obligations or coexist with the same runtime conventions.
The study belongs to code and programming languages, but its central question is empirical instead of a dispute about language syntax. Given the available browser implementations, how effectively does the complete compilation path execute substantial programs? The answer requires programs large enough to exercise the features that could make the browser path different.
What the earlier evidence established
The introductory WebAssembly work had demonstrated encouraging results. In Chrome, it reported a 34% improvement over asm.js. Its comparison against native execution used PolyBenchC, whose compact numerical kernels made browser benchmarking practical.
That choice was reasonable for its immediate purpose. Numerical kernels expose loop transformations, indexing, arithmetic, and memory access. They can show that a compiler handles important computational patterns well. Their limited dependencies also remove many practical obstacles to running the same computation in different environments.
The concern is the inference from those results to broader applications. PolyBenchC was designed around polyhedral loop optimization, not as a survey of complete browser workloads. Its programs contain roughly 100 lines each. A platform can handle their central patterns successfully while generating less effective code for a larger application’s function calls and control flow.
The paper also documents continuing improvement on this earlier suite. Of its 24 benchmarks, seven were within 1.1× of native in 2017. The count was 11 in April 2018 and 13 in May 2019. The authors therefore recognize progress rather than treating the previous study as a mistake. Their challenge concerns what that progress permits researchers to conclude.
Why SPEC was a relevant next test
The intended uses of WebAssembly included substantially more than numerical kernels. The paper points to media applications, scientific software, interpreters, and POSIX programs. These categories suggest a need for larger executable workloads with varied internal structures.
SPEC CPU offered established applications relevant to that scope. The authors identify scientific programs such as 433.milc and 470.lbm, as well as media-related workloads such as 464.h264ref and 453.povray. The benchmarks also depend on Unix-style facilities. That dependence is part of their relevance and the reason they were difficult to run in browsers.
An established suite has another advantage: it supplies more than source files. Its execution machinery specifies how programs receive arguments and inputs, and its checking procedure determines whether their outputs are acceptable. Preserving those procedures makes the experiment easier to interpret than a collection of independently rewritten browser demonstrations.
However, the suite could not simply be compiled and launched. An application expecting a filesystem needs something that behaves like one. A launcher expecting a shell and process creation needs those facilities too. Missing runtime services prevented the desired performance experiment before machine-code quality could even be measured.
Existing routes left a gap
Emscripten supplied the practical C and C++ compilation path, but its default facilities were insufficient for this workload. The paper’s filesystem example is especially important: loading a complete filesystem image into memory before execution was unsuitable for the SPEC inputs. The barrier was therefore not just an unsupported instruction or a compiler flag.
Browsix provided a more extensive Unix-like environment within a browser. It supported processes, pipes, files, and blocking operations, and had executed substantial applications without source modification. Its original implementation, however, targeted JavaScript and contained expensive operations that could contaminate performance results.
The historical alternatives had different compromises. ActiveX allowed signed native libraries broad access to the Windows interface, unlike WebAssembly’s protected execution. Native Client pursued efficient sandboxed machine code through validation, but tied modules to processor-specific instructions and restricted acceptable generated patterns.
Portable Native Client used LLVM Bitcode to address portability, yet the authors describe remaining exposure of platform and compiler details. asm.js stayed within JavaScript, using explicit coercions to make low-level behavior easier to recognize. Its dependence on the surrounding language constrained the addition of native-style features.
WebAssembly sought a different balance. The paper’s performance question matters precisely because safety and portability are part of that balance. An execution penalty might reflect a weak implementation, an online-compilation decision, or a protection the platform promises to maintain. The experiment is designed to distinguish those possibilities as far as the available evidence permits.
The method, step by step
Establish equivalent work before measuring it
The authors construct an execution environment and a measurement harness before interpreting any slowdown. Their first requirement is that existing applications perform their established tasks inside the browser. Their next requirement is that the enabling environment be efficient enough not to dominate the result.
The native and browser versions share application source and benchmark inputs. They differ in the path from compiled representation to execution. Native code comes from Clang. The browser route passes through Emscripten-based compilation to WebAssembly and then through the browser’s own code generator.
There is no training procedure. The study collects measurements from compiled programs instead of learning a predictor. Its experimental materials are source programs, benchmark inputs, browser releases, compiler settings, and a hardware configuration.
Building and investigating the application comparison
The steps in order.
The final interpretation depends on the entire chain. Correct output establishes that the program did the intended work. Low infrastructure overhead weakens a competing explanation. Counter data and code inspection then support a diagnosis of the remaining difference.
Rework communication between a process and its kernel
Browsix places application processes in Web Workers, separate browser execution contexts. Its kernel runs in the page’s main execution context. For a process to read a file, for instance, it must communicate a request to that kernel and wait for the response.
The original design shared the process’s memory buffer with the kernel. That let system calls access application data directly, but it required advance memory reservation and complicated heap growth. It also interacted poorly with per-context JavaScript memory limits.
The paper describes Chrome’s relevant heap limit as roughly 2.2 GB. Its example of processes reserving 500 MB each illustrates how large reservations restrict concurrency. More importantly for the new system, the studied WebAssembly memory could not simply participate in the same sharing arrangement or provide the atomic operations used for waiting.
Browsix-Wasm introduces a separate communication buffer for every process. Its size is 64MB. This buffer is shared with the kernel, while application memory remains distinct. The runtime can therefore coordinate through the atomic operations supported on the shared buffer without requiring the entire WebAssembly heap to be shared.
A request involving an application string or data buffer copies the required material into the exchange area. The message to the kernel identifies locations in that area. For a returned read result, the kernel writes into exchange memory and the process-side runtime copies the bytes into the application destination.
Large logical operations are split into transfers compatible with the buffer capacity. This design adds copying, but avoids conflating application storage with communication storage. Whether the additional copying matters must then be answered experimentally.
Repair the support layer’s own expensive behavior
The authors encountered a filesystem problem capable of distorting the comparison. BrowserFS, used within the environment, replaced a file’s backing buffer on every append. Appending a small amount could consequently require copying all earlier contents again.
Their revision grows capacity by at least 4 KB when expansion becomes necessary. For 464.h264ref, the time spent in Browsix fell from 25 seconds to under 1.5 seconds after this change. The example demonstrates why measuring an application through a compatibility layer requires investigating that layer first.
Pipe handling received related improvements that reduced allocations and copying. These changes are not WebAssembly compiler optimizations. They improve the conditions under which compiler-generated execution can be studied.
This distinction shapes the paper’s logic. If a support operation is slow because of a poor buffer-growth policy, it says little about WebAssembly instruction generation. Eliminating that confounder makes the subsequent application measurements more informative.
Keep the benchmark launch machinery involved
Browsix-SPEC handles browser automation, benchmark assets, measurement coordination, and result collection. Selenium starts a browser instance. The browser retrieves the relevant page and runtime resources over HTTP, then initializes the in-browser kernel.
The benchmark begins through the usual SPEC launch structure instead of a hand-written replacement for each application. A shell script invokes specinvoke, which reads the benchmark command description and starts the application with its intended arguments.
This matters because equivalent executables are insufficient if they receive different work. Argument selection, input choice, and repeated invocations belong to the benchmark’s definition. Retaining its launch machinery reduces the chance that a browser adaptation changes those details.
Chrome and Firefox are not modified for the experiment. Their normal sandboxing and isolation remain active. The browser-side environment relies on standard platform facilities, while the external harness coordinates the host tools required for measurement.
Attach counters to the relevant worker
Once a WebAssembly module is instantiated, but before the application’s main function starts, the runtime contacts Browsix-SPEC. The harness identifies the browser thread executing the benchmark worker and attaches perf, the host-side measurement facility.
This targeting avoids treating the browser as an undifferentiated process. A browser can perform support work unrelated to the application being measured. The authors seek event counts associated with the worker that executes the benchmark.
A final runtime request ends counter collection. After the launch procedure completes, the browser sends an archive containing the SPEC results. The harness extracts it and applies SPEC’s comparison utility to the output.
The checking step protects the interpretation of speed. Termination alone would not establish that the browser version completed the right computation. Output validation links each accepted timing to a program result that passes the benchmark’s own check.
The native path receives analogous counter instrumentation through a compiler wrapper. During linking, the wrapper arranges for the real executable to run under perf stat. This provides corresponding native measurements without editing the benchmark source.
Specify compilation and repetition
The native compiler is Clang 4.0, and the browser toolchain is based on Emscripten with the same Clang version. Both builds use the optimization level identified as O2 and avoid strict-aliasing assumptions. The WebAssembly configuration permits memory growth.
These shared settings do not make the pipelines identical. The native compiler produces executable machine code directly. The browser compiler receives WebAssembly and must translate it online. The experiment examines the consequences of that remaining difference instead of pretending it has been removed.
Every benchmark executes five times. The authors summarize running times with an average and standard error. Repetition supports an estimate of runtime variability; it does not expand the range of hardware or browser configurations tested.
The clock begins after just-in-time compilation has completed. This boundary isolates the execution question that motivates the code-generation analysis. Compilation timing is investigated separately rather than folded into the primary slowdown.
Make a small computation understandable at instruction level
Matrix multiplication supplies the explanatory case. The function receives input matrices A and B and writes the result into C. The dimensions are fixed by constants in the program.
A: N_I × N_K
A is the left input. N_I identifies its row dimension, and N_K identifies the dimension shared with the other input. The multiplication sign here describes matrix shape, not an operation performed to calculate a benchmark score.
B: N_K × N_J
B is the right input. N_K is its row dimension, matching the shared dimension of A. N_J specifies its column dimension.
C: N_I × N_J
C stores the output. Its rows correspond to N_I and its columns to N_J. The case study uses nested loops over these dimensions, letting the authors examine arithmetic, indexing, and loop control together.
The paper is not proposing a new matrix algorithm. It uses the familiar computation to expose different translations of the same source-level work. Automatic vectorization is disabled because the WebAssembly version under examination does not support vector instructions.
Examine how loop control is represented
The native compiler uses a transformed inner-loop counter. Its initial value is expressed as:
−N_J
N_J is the output-column dimension. The minus sign indicates that the counter starts below zero and advances toward zero. This lets the generated branch use the processor status produced by incrementing the counter, avoiding a separate comparison in that loop structure.
Chrome’s generated sequence follows a different arrangement and includes additional jumps. Some avoid reloads associated with spilled values during initial iterations. The purpose of examining these details is to establish a plausible mechanism before checking whether related effects appear across the application suite.
The study introduces no general optimization formula or learned loss function. Its quantitative argument is built from measured durations, relative event counts, and visible instruction sequences. Those forms of evidence answer complementary questions about the same execution.
Experiments and results
Hardware, software, and workload scope
The machine has a 6-Core Intel Xeon E5-1650 v3 processor, hyperthreading, and 64 GB of memory. It runs Ubuntu 16.04 with kernel v4.4.0. Browser measurements use Chrome 74.0 and Firefox 66.0.
The workload selection includes C and C++ programs from SPEC CPU2006 and CPU2017. For CPU2017, the authors consider the new C and C++ applications and speed workloads described in their setup. PolyBenchC provides continuity with the earlier WebAssembly evaluation.
Not every intended SPEC case is executable. The authors identify compilation failures and memory-limit exclusions, discussed further under limitations. Their application timing statements therefore concern the admitted workload set rather than complete execution of every SPEC program.
This distinction is important when interpreting a platform comparison. Speed describes cases that run successfully. The ability to run them at all is another property, and excluded cases cannot be treated as having inherited the performance of those that completed.
Small kernels remain encouraging
The new infrastructure reproduces most of the earlier PolyBenchC findings. The authors do not claim that the original kernel measurements were false. Instead, they show that those favorable results coexist with a less favorable application-level comparison.
The historical progression also demonstrates real implementation improvement on that suite. More kernels approach native execution over the period the paper examines. The benchmark remains useful for tracking that particular family of computations.
Its lack of system calls makes it convenient for checking whether the new runtime introduces a general penalty even when Unix services are not exercised. The paper reports mean infrastructure overhead of 0.2% and a maximum of 1.2% in its PolyBenchC discussion.
A reader should keep the two roles distinct. PolyBenchC is both a continuity check against prior evaluation and a collection of computational workloads. Neither role makes it a comprehensive test of the platform’s intended applications.
The application results change the overall conclusion
SPEC exposes a substantial execution penalty relative to native. The headline mean slowdown is 1.55× in Chrome and 1.45× in Firefox. These are suite summaries, not predictions for every application.
SPEC CPU workload set, mean WebAssembly execution slowdown against native
The Firefox setting has the smaller reported mean slowdown.
The numbers
| System or setting | relative execution time × |
|---|---|
| Chrome WebAssembly | 1.55 |
| Firefox WebAssembly (this paper) | 1.45 |
The greatest observed slowdown reaches 2.5× in Chrome. Firefox’s corresponding maximum is 2.08×. In each browser, 7 out of 15 benchmark results remain within 1.5× of native duration.
The execution-time table caption also reports medians: 1.53× for Chrome and 1.54× for Firefox. The different ordering illustrates why a ranking needs its metric attached. A middle observation and an aggregate across relative runtimes describe different aspects of a workload distribution.
The two exceptions to native winning are 429.mcf and 433.milc. Their significance extends beyond being favorable WebAssembly cases. They become evidence against reducing the explanation to a simple rule about how many instructions execute.
The paper’s central empirical claim is consequently bounded but consequential. Larger runnable applications exhibit a clear aggregate gap even though some individual programs remain close or improve. Good behavior on small kernels does not determine which outcome a substantial program will have.
The JavaScript comparison still favors WebAssembly
For asm.js, the authors adapt the improved environment to execute that target too. They avoid routing the comparison through original Browsix, whose known inefficiencies could unfairly increase asm.js runtime.
Within Chrome, WebAssembly achieves a mean speedup of 1.54× over asm.js. Within Firefox, its mean speedup is 1.39×. These results concern changing the compilation target while keeping the browser fixed.
SPEC CPU workload set, mean WebAssembly speedup relative to asm.js
WebAssembly improves execution in both browser settings.
The numbers
| System or setting | speedup × |
|---|---|
| Chrome WebAssembly (this paper) | 1.54 |
| Firefox WebAssembly | 1.39 |
A separate comparison permits independent browser selection. For each application, the authors choose the better observed WebAssembly browser and the better observed asm.js browser. Under that rule, WebAssembly’s mean advantage is 1.3×.
That result is not interchangeable with either fixed-browser result. It compares the best available target implementations among the tested choices, instead of the effect of switching targets within a single engine.
The broader conclusion has two parts. WebAssembly delivers a useful improvement over the restricted JavaScript target. That improvement still leaves a gap against native execution on the larger workload collection. Neither finding cancels the other.
Direct compatibility overhead is small
The authors instrument the in-browser system calls to quantify time inside Browsix-Wasm. The detailed SPEC overhead figure concerns Firefox. For 14 of the 15 workloads, the measured share is below 0.5%.
The maximum reported share is 1.2%, and the mean is 0.2%. These observations make direct support-layer execution an implausible explanation for the headline slowdown.
They also qualify what “negligible” means. The result applies to the measured work and the instrumented boundary. It is not a universal claim about browser-host interfaces, nor a promise that communication-heavy applications would exhibit the same cost.
The evidence is nonetheless important because it addresses the study’s most immediate confounder. The infrastructure needed to run the benchmark is measured rather than silently assumed away.
Counters reveal additional work
A retired instruction is one whose effects have become committed processor state, rather than work later discarded as speculation. Counting retired loads and stores therefore measures completed memory operations in the execution path.
Relative to native, load counts rise by 2.02× in Chrome and 1.92× in Firefox. Store counts rise by 2.30× and 2.16×, respectively. The paper interprets the increased memory traffic alongside its register-allocation and instruction-selection evidence.
Total retired instructions increase by 1.80× for Chrome and 1.75× for Firefox. Additional instructions include the effects of expanded arithmetic sequences, spilled values, and extra control flow. These mechanisms overlap, so the counters should not be treated as independent portions of runtime.
Instruction-cache misses provide another view. The L1 instruction cache holds machine instructions near the processor. When required instructions are absent, obtaining them can delay execution.
SPEC CPU workload set, geometric-mean L1 instruction-cache miss increase
Browser-generated execution records more misses than the native reference.
The numbers
| System or setting | relative miss count × |
|---|---|
| Chrome WebAssembly | 2.83 |
| Firefox WebAssembly (this paper) | 2.04 |
The suite-level pattern is consistent with expanded generated code placing greater demand on instruction delivery. It does not establish that every application slows down in proportion to its miss count.
The authors also collect cycle measurements, but no additional numerical cycle result is necessary to understand the argument. The published prose connects instruction expansion and cache behavior to execution delay without requiring every event to become a separate headline.
Compilation has its own result and interpretation
The paper reports compilation timings for Clang and Chrome. Within these long-running benchmark conditions, compilation is small relative to application execution. Chrome’s translation of WebAssembly is much quicker than Clang’s source compilation.
The tasks differ, however. Clang processes C or C++ source; Chrome receives a lower-level representation intended to be straightforward to validate and compile. The authors explicitly caution against treating those times as equivalent compiler workloads.
Firefox compilation timing is absent because the authors could not obtain it through the available mechanism. This does not affect Firefox’s execution measurements, but it limits the compilation comparison.
The combined result illustrates a practical tension: quick generation of usable machine code need not produce the most efficient execution. The paper returns to that tension when considering how more optimization might be applied selectively.
What the ablations show
The study offers no systematic series of compiler-component removals; its explanatory evidence comes from controlled settings, infrastructure instrumentation, generated-code comparisons, and application-level counters.
The matrix case exposes several interacting weaknesses
Across the tested matrix dimensions, browser WebAssembly execution is between 2× and 3.4× slower than native. The native version is compiled without automatic vectorization, so unavailable vector instructions do not explain this particular gap.
The displayed machine-code comparison is especially useful because the source-level computation stays recognizable. The reader can follow how arrays, counters, and temporary values become registers and instructions.
Chrome’s generated function contains 53 instructions when no-operation instructions are counted. The native Clang version contains 28. This is a static description of the illustrated code, not the number of instructions executed during an entire benchmark run.
Longer code can matter in several ways. It can perform more operations, consume more registers, introduce additional branches, and occupy more instruction-cache space. The subsequent analyses investigate those relationships instead of attributing the whole difference to textual code length.
Memory operands can prevent unnecessary intermediate work
The matrix example shows an operation that Clang expresses using an instruction capable of arithmetic with a memory operand. Chrome instead separates the work into loading a value, applying arithmetic, and storing the result.
The paper describes that expansion as requiring 3 instructions where the native sequence needs one. More importantly, the expansion requires a temporary register. Instruction selection can therefore increase register demand even before the allocator makes its choices.
This explains why the identified causes are connected. A missed addressing opportunity creates a longer sequence and another live value. That live value can contribute to a spill, which produces additional memory traffic and expands the code further.
The analysis supports an implementation target: use the processor’s available instruction forms more effectively. It does not demonstrate the performance of a repaired browser code generator, because no replacement implementation is measured.
Spills turn temporary shortages into memory operations
Registers hold values directly available to instructions. When too many values need to remain available at once, the compiler may place some on the stack and reload them later. Those transfers are called spills.
The native matrix function uses 10 registers without spills. Chrome’s version stores values on the stack and subsequently retrieves them. This makes the proposed connection to extra load and store counts tangible.
The paper’s descriptions do not give a fully consistent count for Chrome’s register use: one passage reports 13 general-purpose registers, while the later allocation discussion says 12. The unambiguous observation is the visible spill behavior, not a reconciled total inferred by the reader.
The suite-wide counters then test whether increased memory operations extend beyond this compact example. Their elevated load and store counts are consistent with register pressure being a recurring issue.
That agreement does not isolate allocation as the only source of additional memory accesses. Instruction selection and runtime conventions also contribute. The diagnosis is supported by converging evidence instead of a single counter that uniquely identifies spills.
Physical registers and allocatable registers differ
The browsers reserve registers for their surrounding engines. Chrome uses r13 for garbage-collection roots and treats r10 and xmm13 as dedicated scratch locations. Firefox reserves r15 for the heap base and uses r11 and xmm15 for scratch purposes.
These locations are therefore unavailable for ordinary WebAssembly allocation. The hardware’s complete register set is not the same as the set exposed to the module compiler.
The effect depends on the program. A computation with modest demand might fit comfortably despite the reservations. A function already near the available limit may spill as a result of the combined restrictions and allocation decisions.
The authors relate these reservations to coexistence with JavaScript. This is a useful qualification: the cost is not explained solely by WebAssembly’s instruction format. It also reflects conventions of the engines hosting it.
Allocation quality reflects online-compilation priorities
Both browsers use linear-scan register allocation in the studied implementations. Clang uses a greedy graph-coloring allocator. The authors characterize the browser approach as faster to apply but less effective at producing the native compiler’s code quality.
Allocation must decide where values live and when register contents change. A quick strategy reduces compilation delay, while a more elaborate strategy can spend additional effort finding efficient placements.
The paper does not replace linear scan with another allocator inside either browser. It therefore cannot report the exact execution improvement that a replacement would deliver. It identifies a credible optimization opportunity supported by known implementation choices and observed code.
The tradeoff remains real even if allocation can improve. An engine that spends much longer optimizing every function may impose an unacceptable startup cost. This motivates the authors’ suggestion to focus additional effort on often executed code.
Loop construction adds branches for avoidable reasons
The native matrix loop advances a counter toward zero and uses the resulting processor flags for its termination branch. Chrome uses a more direct arrangement that requires additional tests and jumps.
Some of Chrome’s extra jumps avoid reloading spilled values in the initial iteration. These branches are therefore secondary consequences of register-management choices. The code attempts to work around one cost and acquires another form of work.
Across SPEC, the reported branch-related increases are 1.75× and 1.65× for Chrome’s unconditional and conditional categories. Firefox’s corresponding reported increases are 1.65× and 1.62×.
There is a reporting nuance: the discussion describes the first category as unconditional branches, while the associated figure is named for retired branch instructions more generally. The safe conclusion is that additional control-flow work is observed; the prose does not warrant silently treating every event definition as perfectly resolved.
The authors attribute some of Chrome’s difference to loop generation like that seen in the small example. As elsewhere, this is a mechanism supported by inspection instead of a measured experiment with only that mechanism removed.
Safety obligations introduce additional control flow
Other branches serve protective purposes. The studied stack mechanism tracks usage and checks whether function entry would exceed the permitted stack size. These comparisons and conditional jumps occur as part of preserving safe execution.
Indirect calls require another kind of validation. A target selected during execution must refer to an acceptable function and match the type expected at the call site. C function pointers and C++ virtual functions exercise this mechanism.
The function table supplies the information needed for those checks. The resulting comparisons and jumps are additional work relative to a path without the same runtime validation.
The paper treats these obligations differently from avoidable loop jumps. Removing a redundant instruction may preserve the execution contract straightforwardly. Removing a required check demands another justification that the protected property still holds.
The authors suggest richer pointer typing as a possible route to establishing some properties earlier. They do not implement that redesign or measure its benefit. The proposal identifies where stronger static information might change runtime obligations.
Cache behavior tests the combined explanation
The instruction-cache analysis concerns the accumulated effects of generated-code expansion. Additional instructions occupy space, and movement among more code can make it harder to retain the needed instructions close to execution.
Some application-specific results are much more extreme than the suite aggregate. For 458.sjeng, the miss counts increase by 26.5× in Chrome and 18.6× in Firefox. These are event-count ratios, not execution slowdowns.
For 450.soplex, both browsers show 4.6× as many misses as native. The authors connect the behavior to virtual-function execution and the indirect calls that accompany it.
These cases support attention to application structure. A program’s pattern of calls and code reuse can matter as much as the presence of extra instructions in isolation.
Faster execution despite additional instructions qualifies the story
429.mcf retires 1.6× as many instructions in Chrome and 1.5× as many in Firefox as its native version. Its relative execution times are nonetheless 0.81× and 0.83×.
The authors attribute the favorable runtimes to fewer instruction-cache misses and the behavior of its principal loop. They give a related explanation for 433.milc.
This evidence rules out a direct conversion from instruction count to runtime. Instructions that arrive efficiently from cache can be less costly than a shorter execution stream with poorer delivery.
The paper’s explanation is strongest when understood as a network of mechanisms. Register allocation affects memory traffic; instruction selection affects allocation and code size; code structure affects caching; safety checks affect branches and footprint. The observations support that connected account without determining an independent runtime share for every cause.
Limitations
Boundaries explicitly established by the authors
The experimental target is the initial stable WebAssembly version. The paper acknowledges ongoing extensions, including SIMD and threading, but does not evaluate a future platform containing them. Its claims belong to the implementations and capabilities actually tested.
Compilation excludes named SPEC CPU2006 programs. The authors report that Emscripten could not compile 400.perlbench and 403.gcc, along with 471.omnetpp and 456.hmmer. The measured set therefore omits application behavior that those programs would have contributed.
Memory limits restrict additional CPU2017 cases. The reference inputs for 638.imagick_s and 657.xz_s need more than 4 GB. The authors say their test datasets work, but successful execution on those smaller inputs is not equivalent to completing the reference workloads.
The account contains an ambiguity worth retaining rather than repairing by inference. It refers to excluded data points while separately describing compilation and memory-related omissions. The named reasons are clear enough to establish incomplete coverage, but they do not justify inventing a reconciled count of every exclusion.
Firefox cannot contribute a corresponding compilation-time result through the mechanism available to the authors. The execution comparison includes both browsers, while the browser compilation comparison does not.
The authors also explicitly recognize that offline and online compilation have different budgets. Clang can spend substantial effort before the application executes. A browser must consider the delay caused while generating executable code for an application already being opened.
Additional limits implied by the setup
The measurements come from a particular processor, operating system, compiler generation, and pair of browser releases. That configuration supports a concrete result. It does not establish the speed of other processors or later implementations.
This matters especially for code-generation diagnoses. The usefulness of an instruction form, the effect of register reservations, and the consequences of cache behavior depend on the host architecture and engine conventions. The study examines an x86-64 setting rather than all possible WebAssembly hosts.
The workloads also have a specific purpose. SPEC CPU supplies computational applications and established inputs. It does not measure the complete range of interactive browser behavior, network-dependent tasks, or user-interface responsiveness.
The main execution boundary excludes WebAssembly compilation. That choice is appropriate for investigating generated-code efficiency, but it cannot answer how long a user waits from opening an application to receiving a result. A complete deployment assessment could rank systems differently if startup mattered more than prolonged execution.
Similarly, the native result is tied to the stated Clang build and optimization settings. It is not an exhaustive competition among every native compiler or every application-specific tuning choice. The same applies to the chosen WebAssembly toolchain.
Infrastructure measurements have a defined reach
Timing Browsix-Wasm operations addresses a serious alternative explanation. The small direct overhead strengthens the case that the application penalty is not primarily time spent servicing its Unix requests.
However, that measurement does not isolate every indirect effect of running inside a browser. Code layout, memory placement, engine conventions, and host interactions may influence execution outside the instrumented calls.
The detailed system-call overhead result is presented for Firefox. It is reasonable evidence about the measured configuration, but it should not be broadened into an equally detailed measurement for every browser setting.
The workloads are CPU-oriented. An application dominated by communication or filesystem operations could put substantially more pressure on the exchange design. The paper does not establish that its low overhead transfers to such a workload.
These qualifications do not undermine the purpose of the infrastructure check. They define the scope within which the check successfully rules out a straightforward explanation.
Evidence for mechanisms is stronger than evidence for isolated remedies
The paper inspects actual code and collects relevant counters, but it does not implement every proposed correction. There is no measured allocator replacement that assigns a precise benefit to allocation quality alone.
The causes also interact. Better instruction selection might lower register demand, reduce spills, shorten code, and change caching simultaneously. A clean decomposition would require interventions designed to distinguish those coupled effects.
Counter correlations cannot supply that decomposition on their own. More loads are consistent with spills, but loads have other sources. More cache misses are consistent with expanded code, but layout and execution paths matter too.
The matrix example makes mechanisms inspectable, while SPEC establishes broader relevance. Neither should be asked to do the other’s job completely. The example cannot demonstrate all application behavior, and suite aggregates cannot reveal every instruction-level cause.
The classification of design-related costs also remains qualified. The authors describe obligations associated with the platform and its hosting environment, then discuss possible representations that could move checks earlier. Their argument is not a proof that every future safe implementation must retain exactly the observed cost.
Averages are evidence, not universal multipliers
The application results vary enough that a mean cannot serve as a runtime estimate for arbitrary software. Some programs experience large penalties; others outperform the native reference.
Different summaries also answer different questions. Means, medians, and maxima should retain their names. Selecting the best browser separately for each target answers a different question again.
A large event-count increase should not be read as an equally large slowdown. The instruction-cache examples and the faster 429.mcf case show why that shortcut fails.
The appropriate generalization is methodological: evaluate substantial intended workloads, check correctness, measure support costs, and investigate the observed behavior. The reported factors belong to their benchmark conditions rather than to WebAssembly programs as a universal class.
What came after
No later citing study is identified for discussion, so the evidence does not support a chronological account of subsequent improvements or claims that particular follow-up systems closed the measured gap.
The paper itself leaves a clear engineering agenda. Browser compilers could improve allocation and instruction selection, generate more economical loops, and spend additional optimization effort on code that executes frequently. These are proposed responses to observed weaknesses, not completed results.
It also leaves architectural questions. Stronger information about memory and callable targets might reduce dynamic checking, but changing the representation could complicate the compilers that produce it. Register reservations raise a separate question about cooperation between WebAssembly and its JavaScript host.
The most durable contribution is the relationship between workload choice and explanation. The authors make a broader experiment feasible, verify that its support layer is not the dominant measured cost, and connect application behavior to visible execution mechanisms. Any later claim of native-like performance needs equally explicit boundaries around what runs, what is measured, and why the result occurs.
Fields, topics and concepts
Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksInformation Systems · 1,888 worksHardware and Architecture · 183 works
Cite
Cite as Abhinav Jangda, Bobby Powers, Emery Berger and Arjun Guha. 2019. Not So Fast: Analyzing the Performance of WebAssembly vs. Native Code. arXiv:1901.09056.
@misc{jangda2019not,
title = {{Not So Fast: Analyzing the Performance of WebAssembly vs. Native Code}},
author = {Abhinav Jangda, Bobby Powers, Emery Berger and Arjun Guha},
year = {2019},
doi = {10.5555/3358807.3358817},
eprint = {1901.09056},
archivePrefix = {arXiv},
url = {https://doi.org/10.5555/3358807.3358817}
}References
- Blazor. https://blazor.net/. [Online; accessed 5-January-2019]. OpenAlex ↗ · Scholar ↗
- Compiling from Rust to WebAssembly. https://developer.mozilla.org/en-US/docs/WebAssembly/Rust_to_wasm. [Online; accessed 5-January-2019]. OpenAlex ↗ · Scholar ↗
- LLVM Reference Manual. https://llvm.org/docs/CodeGenerator.html. OpenAlex ↗ · Scholar ↗
- NaCl and PNaCl. https://developer.chrome.com/native-client/nacl-and-pnacl. [Online; accessed 5-January-2019]. OpenAlex ↗ · Scholar ↗
- PolyBenchC: the polyhedral benchmark suite. http://web.cs.ucla.edu/~pouchet/software/polybench/. [Online; accessed 14-March-2017]. OpenAlex ↗ · Scholar ↗
- Raise Chrome JS heap limit? - Stack Overflow. https://stackoverflow.com/questions/43643406/raise-chrome-js-heap-limit. [Online; accessed 5-January-2019]. OpenAlex ↗ · Scholar ↗
- Use cases. https://webassembly.org/docs/use-cases/. OpenAlex ↗ · Scholar ↗
- WebAssembly. https://webassembly.org/. [Online; accessed 5-January-2019]. OpenAlex ↗ · Scholar ↗
- System V Application Binary Interface AMD64 Architecture Processor Supplement. https://software.intel.com/sites/default/files/article/402129/mpx-linux64-abi.pdf, 2013. OpenAlex ↗ · Scholar ↗
- Steve Akinyemi. A curated list of languages that compile directly to or have their VMs in WebAssembly. https://github.com/appcypher/awesome-wasm-langs. [Online; accessed 5-January-2019]. OpenAlex ↗ · Scholar ↗
- Jason Ansel, Petr Marchenko, Úlfar Erlingsson, Elijah Taylor, Brad Chen, Derek L. Schuff, David Sehr, Cliff L. Biffle, and Bennet Yee. Language-independent Sandboxing of Just-in-time Compilation and Self-modifying Code. In Proceedings of the 32nd ACM SIGPLAN Conference on Programming Language Design and Implementation, PLDI '11, pages 355–366. ACM, 2011. OpenAlex ↗ · Scholar ↗
- Michael Bebenita, Florian Brandner, Manuel Fahndrich, Francesco Logozzo, Wolfram Schulte, Nikolai Tillmann, and Herman Venter. SPUR: A Trace-based JIT Compiler for CIL. In Proceedings of the ACM International Conference on Object Oriented Programming Systems Languages and Applications, OOPSLA '10, pages 708–725. ACM, 2010. OpenAlex ↗ · Scholar ↗
- David A Chappell. Understanding ActiveX and OLE. Microsoft Press, 1996. OpenAlex ↗ · Scholar ↗
- Alan Donovan, Robert Muth, Brad Chen, and David Sehr. PNaCl: Portable Native Client Executables. https://css.csail.mit.edu/6.858/2012/readings/pnacl.pdf, 2010. OpenAlex ↗ · Scholar ↗
- Brendan Eich. From ASM.JS to WebAssembly. https://brendaneich.com/2015/06/from-asm-js-to-webassembly/, 2015. [Online; accessed 5-January-2019]. OpenAlex ↗ · Scholar ↗
- Eric Elliott. What is WebAssembly? https://tinyurl.com/o5h6daj, 2015. [Online; accessed 5-January-2019]. OpenAlex ↗ · Scholar ↗
- Andreas Gal, Brendan Eich, Mike Shaver, David Anderson, David Mandelin, Mohammad R. Haghighat, Blake Kaplan, Graydon Hoare, Boris Zbarsky, Jason Orendorff, Jesse Ruderman, Edwin W. Smith, Rick Reitmaier, Michael Bebenita, Mason Chang, and Michael Franz. Trace-based Just-in-time Type Specialization for Dynamic Languages. In Proceedings of the 30th ACM SIGPLAN Conference on Programming Language Design and Implementation, PLDI '09, pages 465–478. ACM, 2009. OpenAlex ↗ · Scholar ↗
- Andreas Haas, Andreas Rossberg, Derek L. Schuff, Ben L. Titzer, Michael Holman, Dan Gohman, Luke Wagner, Alon Zakai, and JF Bastien. Bringing the Web Up to Speed with WebAssembly. In Proceedings of the 38th ACM SIGPLAN Conference on Programming Language Design and Implementation, PLDI 2017, pages 185–200. ACM, 2017. OpenAlex ↗ · Scholar ↗
- Thomas Kotzmann, Christian Wimmer, Hanspeter Mössenböck, Thomas Rodriguez, Kenneth Russell, and David Cox. Design of the Java HotSpot Client Compiler for Java 6. ACM Trans. Archit. Code Optim., 5(1):7:1–7:32, 2008. OpenAlex ↗ · Scholar ↗
- Ankur Limaye and Tosiron Adegbija. A Workload Characterization of the SPEC CPU2017 Benchmark Suite. In 2018 IEEE International Symposium on Performance Analysis of Systems and Software (ISPASS), pages 149–158, 2018. OpenAlex ↗ · Scholar ↗
- Tim Lindholm, Frank Yellin, Gilad Bracha, and Alex Buckley. The Java Virtual Machine Specification, Java SE 8 Edition. Addison-Wesley Professional, 1st edition, 2014. OpenAlex ↗ · Scholar ↗
- Greg Morrisett, Gang Tan, Joseph Tassarotti, Jean-Baptiste Tristan, and Edward Gan. RockSalt: Better, Faster, Stronger SFI for the x86. In Proceedings of the 33rd ACM SIGPLAN Conference on Programming Language Design and Implementation, PLDI '12, pages 395–404. ACM, 2012. OpenAlex ↗ · Scholar ↗
- Greg Morrisett, David Walker, Karl Crary, and Neal Glew. From System F to Typed Assembly Language. ACM Trans. Program. Lang. Syst., 21(3):527–568, 1999. OpenAlex ↗ · Scholar ↗
- Richard Musiol. A compiler from Go to JavaScript for running Go code in a browser. https://github.com/gopherjs/gopherjs, 2016. [Online; accessed 5-January-2019]. OpenAlex ↗ · Scholar ↗
- George C. Necula, Scott McPeak, Shree P. Rahul, and Westley Weimer. CIL: Intermediate Language and Tools for Analysis and Transformation of C Programs. In R. Nigel Horspool, editor, Compiler Construction, pages 213–228. Springer, 2002. OpenAlex ↗ · Scholar ↗
- Reena Panda, Shuang Song, Joseph Dean, and Lizy K. John. Wait of a Decade: Did SPEC CPU 2017 Broaden the Performance Horizon? In 2018 IEEE International Symposium on High Performance Computer Architecture (HPCA), pages 271–282, 2018. OpenAlex ↗ · Scholar ↗
- Aashish Phansalkar, Ajay Joshi, and Lizy K. John. Analysis of Redundancy and Application Balance in the SPEC CPU2006 Benchmark Suite. In Proceedings of the 34th Annual International Symposium on Computer Architecture, ISCA '07, pages 412–423. ACM, 2007. OpenAlex ↗ · Scholar ↗
- Bobby Powers, John Vilk, and Emery D. Berger. Browsix: Unix in your browser tab. https://browsix.org. OpenAlex ↗ · Scholar ↗
- Bobby Powers, John Vilk, and Emery D. Berger. Browsix: Bridging the Gap Between Unix and the Browser. In Proceedings of the Twenty-Second International Conference on Architectural Support for Programming Languages and Operating Systems, ASPLOS '17, pages 253–266. ACM, 2017. OpenAlex ↗ · Scholar ↗
- Gregor Richards, Sylvain Lebresne, Brian Burg, and Jan Vitek. An Analysis of the Dynamic Behavior of JavaScript Programs. In Proceedings of the 31st ACM SIGPLAN Conference on Programming Language Design and Implementation, PLDI '10, pages 1–12. ACM, 2010. OpenAlex ↗ · Scholar ↗
- Marija Selakovic and Michael Pradel. Performance Issues and Optimizations in JavaScript: An Empirical Study. In Proceedings of the 38th International Conference on Software Engineering, ICSE '16, pages 61–72. ACM, 2016. OpenAlex ↗ · Scholar ↗
- Toshio Suganuma, Toshiaki Yasue, Motohiro Kawahito, Hideaki Komatsu, and Toshio Nakatani. A Dynamic Optimization Framework for a Java Just-in-time Compiler. In Proceedings of the 16th ACM SIGPLAN Conference on Object-oriented Programming, Systems, Languages, and Applications, OOPSLA '01, pages 180–195. ACM, 2001. OpenAlex ↗ · Scholar ↗
- Luke Wagner. asm.js in Firefox Nightly | Luke Wagner's Blog. https://blog.mozilla.org/luke/2013/03/21/asm-js-in-firefox-nightly/. [Online; accessed 21-May-2019]. OpenAlex ↗ · Scholar ↗
- Luke Wagner. A WebAssembly Milestone: Experimental Support in Multiple Browsers. https://hacks.mozilla.org/2016/03/a-webassembly-milestone/, 2016. [Online; accessed 5-January-2019]. OpenAlex ↗ · Scholar ↗
- Conrad Watt. Mechanising and Verifying the WebAssembly Specification. In Proceedings of the 7th ACM SIGPLAN International Conference on Certified Programs and Proofs, CPP 2018, pages 53–65. ACM, 2018. our card
- Christian Wimmer and Michael Franz. Linear Scan Register Allocation on SSA Form. In Proceedings of the 8th Annual IEEE/ACM International Symposium on Code Generation and Optimization, CGO '10, pages 170–179. ACM, 2010. OpenAlex ↗ · Scholar ↗
- Bennet Yee, David Sehr, Greg Dardyk, Brad Chen, Robert Muth, Tavis Ormandy, Shiki Okasaka, Neha Narula, and Nicholas Fullagar. Native Client: A Sandbox for Portable, Untrusted x86 Native Code. In IEEE Symposium on Security and Privacy (Oakland'09), IEEE, 2009. our card
- Alon Zakai. asm.js. http://asmjs.org/. [Online; accessed 5-January-2019]. OpenAlex ↗ · Scholar ↗
- Alon Zakai. Emscripten: An LLVM-to-JavaScript Compiler. In Proceedings of the ACM International Conference Companion on Object Oriented Programming Systems Languages and Applications Companion, OOPSLA '11, pages 301–312. ACM, 2011. OpenAlex ↗ · Scholar ↗
This page in Markdown https://md.research.elamur.ai/free/en/papers/jangda-2019-not-so-fast-analyzing-performance/