Comment on Wasm3 compiles itself (using LLVM/Clang compiled to WASM)parentComments−Others5yI worked on one as an undergrad: https://github.com/gwsystems/aWsmFull AoT compilation, C programs run within 10% of native−heavyset_go5y10% difference from native, or 10% of native performance?−Others5y10% worse performance. Not 10x worse :D−moonchild5ySince it compiles using llvm, what's the reason for the discrepancy?Lost information about e.g. aliasing?−Others5yBounds checking, dynamic dispatch is more expensive, wasm semantics have no undefined behavior to exploit for optimizations. And there is bloat in the process. I’m sure losing information effects things as well
Comments
I worked on one as an undergrad: https://github.com/gwsystems/aWsm
Full AoT compilation, C programs run within 10% of native
10% difference from native, or 10% of native performance?
10% worse performance. Not 10x worse :D
Since it compiles using llvm, what's the reason for the discrepancy?
Lost information about e.g. aliasing?
Bounds checking, dynamic dispatch is more expensive, wasm semantics have no undefined behavior to exploit for optimizations. And there is bloat in the process. I’m sure losing information effects things as well