Skip to content

wasm-opt is 35x slower on windows compared to linux #7705

@jspanchu

Description

@jspanchu

See the output produced by building a ~46MB wasm binary and ~47MB JSPI wasm binary using EMCC_DEBUG=2.

On linux:

profiler:DEBUG: block "wasm_opt" took 46.559 seconds

On windows:

profiler:DEBUG: block "wasm_opt" took 1565.294 seconds

Complete build log:

  1. windows compile_output.log

  2. linux compile_output.log

emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 4.0.10 (b7dc6e5747465580df5984e723b9d1f10d8e804b)
Copyright (C) 2025 the Emscripten authors (see AUTHORS.txt)
This is free and open source software under the MIT license.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

wasm-opt version 123 (version_123-168-g8c82b6884)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions