Skip to content

PackageToJS: Add WebAssembly namespace option to instantiate #341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2025

Conversation

kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented Apr 11, 2025

This allows us to insert several hooks like https://github.com/kateinoigakukun/wasm-memprof

Copy link

Time Change: +354ms (3%)

Total Time: 9,921ms

Test name Duration Change
Serialization/JavaScript function call through Wasm import 24ms +3ms (10%) ⚠️
Serialization/JavaScript function call through Wasm import with int 21ms +2ms (10%) ⚠️
Serialization/JavaScript function call from Swift 135ms +10ms (7%) 🔍
Serialization/Swift Int to JavaScript with assignment 360ms +29ms (7%) 🔍
Serialization/Swift Int to JavaScript with call 1,011ms +55ms (5%) 🔍
Serialization/JavaScript Number to Swift Int 280ms +19ms (6%) 🔍
Serialization/Swift String to JavaScript with assignment 441ms +32ms (7%) 🔍
View Unchanged
Test name Duration Change
Serialization/Swift String to JavaScript with call 1,094ms +53ms (4%)
Serialization/JavaScript String to Swift String 3,709ms +139ms (3%)
Object heap/Increment and decrement RC 2,808ms +8ms (0%)
View Baselines
Test name Duration
Serialization/Call JavaScript function directly 10ms
Serialization/Assign JavaScript number directly 6ms
Serialization/Call with JavaScript number directly 7ms
Serialization/Write JavaScript string directly 8ms
Serialization/Call with JavaScript string directly 6ms

@kateinoigakukun kateinoigakukun merged commit 0f1fdd1 into main Apr 11, 2025
7 checks passed
@kateinoigakukun kateinoigakukun deleted the yt/wasm-injection branch April 11, 2025 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant