Closed kateinoigakukun closed 2 years ago
Time Change: -276ms (1%)
Total Time: 19,142ms
Test name | Duration | Change | |
---|---|---|---|
Serialization/Call JavaScript function directly | 3ms | +1ms | 🚨 |
Serialization/Assign JavaScript number directly | 3ms | -1ms | 🎉 |
Serialization/Call with JavaScript number directly | 6ms | +3ms (47%) | 🚨 |
Serialization/Write JavaScript string directly | 2ms | -1ms (52%) | 🏆 |
Serialization/Call with JavaScript string directly | 4ms | +2ms (44%) | 🚨 |
Serialization/JavaScript function call through Wasm import | 19ms | +1ms (6%) | 🔍 |
Serialization/JavaScript function call through Wasm import with int | 17ms | -3ms (19%) | 👏 |
Yes, the variant choice would be made in caller side for now.
BTW, some of the benchmark cases are too fast and cause meaningless reports...
Int64 -> BigInt conversion can be done by passing two i32 without i64-bigint integration feature. This is a slow path, but useful for environments that have BigInt but don't have i64-bigint integration.