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

Remove baseline tests (e.g. “Call JavaScript function directly”) from comparison #211

Closed j-f1 closed 1 year ago

j-f1 commented 1 year ago

See below comment for an example. Changes to speed in these tests is not at all useful for us to track since they’re directly related to the speed of the JS engine, and are just a target for us to one day match.

github-actions[bot] commented 1 year ago

Time Change: +79ms (0%)

Total Time: 17,900ms

View Unchanged | Test name | Duration | Change | | :--- | :---: | :---: | | Serialization/JavaScript function call through Wasm import | 23ms | -0ms | | Serialization/JavaScript function call through Wasm import with int | 19ms | -1ms | | Serialization/JavaScript function call from Swift | 189ms | -2ms (1%) | | Serialization/Swift Int to JavaScript with assignment | 442ms | +8ms (1%) | | Serialization/Swift Int to JavaScript with call | 1,372ms | +42ms (3%) | | Serialization/JavaScript Number to Swift Int | 461ms | +1ms (0%) | | Serialization/Swift String to JavaScript with assignment | 508ms | +4ms (0%) | | Serialization/Swift String to JavaScript with call | 1,472ms | +43ms (2%) | | Serialization/JavaScript String to Swift String | 5,757ms | +64ms (1%) | | Object heap/Increment and decrement RC | 7,639ms | -79ms (1%) |
View Baselines | Test name | Duration | | :--- | :---: | | Serialization/Call JavaScript function directly | 7ms | | Serialization/Assign JavaScript number directly | 3ms | | Serialization/Call with JavaScript number directly | 3ms | | Serialization/Write JavaScript string directly | 3ms | | Serialization/Call with JavaScript string directly | 3ms |