Skip to content

Performance of WASM-based Plugins #7521

Closed Answered by kwonoj
stahlbauer asked this question in Q&A
Discussion options

You must be logged in to vote

No for both. First, if you run swc-coverage-instrument test case itself, wasm plugin vs native transform performs nearly similar. When we measured back in the day we expects wasm plugin performs roughly 70-90% to the native codes at the best perf, depends on what it performs underlying.

There is no such thing like native plugin. There was an experiments around those before introducing wasm plugin, but we dropped those idea due to it makes nearly impossible to plugin author to provide binaries for the each targeting platform. The only way is you build your own custom variant of swc as same as next.js does.

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by stahlbauer
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@kwonoj
Comment options

kwonoj Jun 12, 2023
Collaborator

Comment options

You must be logged in to vote
1 reply
@stahlbauer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants