Stream: wamr

Topic: wamr jit/aot faster than native


view this post on Zulip Mats Brorsson (Dec 12 2023 at 14:54):

Under what circumstances will a WebAssembly program execute faster with iwasm using the llvm jit? I have made a study and there is one program, PolyBench/correleation which can be found in this repo: https://github.com/matsbror/wabench/tree/ace5g, which on x86_64 executes faster with iwasm/llmv-jit than natively.

It seems conter-intuitive. I have tried to isolate the function in question as a WebAssembly module of its own and disassemble it, but, unfortunately, then the performance advantage disappeared.

Any ideas?

Contribute to matsbror/wabench development by creating an account on GitHub.

view this post on Zulip Jämes Ménétrey (Dec 12 2023 at 15:49):

Hello,

Check the following studies for similar observations:

Basically, we concluded that a slightly faster execution using AOT may be due to fewer L1 instructions cache misses.

Cheers


Last updated: Nov 22 2024 at 17:03 UTC