Using Wasmtime 44.0.1 we are having very slow benchmark execution.
The benchmark allocates and copies a lot of gc arrays and seems Wasmtime works inefficient with that (other engines, like v8, works much more faster).
To reproduce this one can use .wasm file and benchmark's config attached to this issue.
To run benchmark you need to execute the following cli command:
wasmtime -W gc,exceptions,function-references --dir=/ ./kotlin-wasm-benchmarks-wasmWasiBenchmark.wasm STUB $PWD/config 5 microBenchmarks.ArrayCopyBenchmark.copyInSameArray
To compare this with v8 you can run the following cli command:
node ./kotlin-wasm-benchmarks-wasmWasiBenchmark.mjs $PWD/config 5 microBenchmarks.ArrayCopyBenchmark.copyInSameArray
Here you can find the Kotlin source code for this benchmark.
Using Wasmtime 44.0.1 we are having very slow benchmark execution.
The benchmark allocates and copies a lot of gc arrays and seems Wasmtime works inefficient with that (other engines, like v8, works much more faster).
To reproduce this one can use .wasm file and benchmark's config attached to this issue.
To run benchmark you need to execute the following cli command:
To compare this with v8 you can run the following cli command:
Here you can find the Kotlin source code for this benchmark.