swiftwasm / JavaScriptKit

Swift framework to interact with JavaScript through WebAssembly.
https://swiftpackageindex.com/swiftwasm/JavaScriptKit/main/documentation/javascriptkit
MIT License
664 stars 44 forks source link

Use Swift SDK for development snapshot testing in CI #248

Closed kateinoigakukun closed 3 months ago

kateinoigakukun commented 3 months ago

This is a preparation for https://github.com/swiftwasm/JavaScriptKit/pull/247 to test with thread-enabled SDK

github-actions[bot] commented 3 months ago

Time Change: +308ms (3%)

Total Time: 9,606ms

Test name Duration Change
Serialization/JavaScript function call from Swift 101ms +5ms (5%) 🔍
View Unchanged | Test name | Duration | Change | | :--- | :---: | :---: | | Serialization/JavaScript function call through Wasm import | 20ms | +1ms | | Serialization/JavaScript function call through Wasm import with int | 14ms | +0ms | | Serialization/Swift Int to JavaScript with assignment | 346ms | +11ms (3%) | | Serialization/Swift Int to JavaScript with call | 961ms | +36ms (3%) | | Serialization/JavaScript Number to Swift Int | 314ms | +10ms (3%) | | Serialization/Swift String to JavaScript with assignment | 409ms | +16ms (3%) | | Serialization/Swift String to JavaScript with call | 1,013ms | +29ms (2%) | | Serialization/JavaScript String to Swift String | 3,788ms | +159ms (4%) | | Object heap/Increment and decrement RC | 2,627ms | +41ms (1%) |
View Baselines | Test name | Duration | | :--- | :---: | | Serialization/Call JavaScript function directly | 3ms | | Serialization/Assign JavaScript number directly | 2ms | | Serialization/Call with JavaScript number directly | 3ms | | Serialization/Write JavaScript string directly | 3ms | | Serialization/Call with JavaScript string directly | 3ms |