Closed jwwsjlm closed 2 months ago
In short, yes. The compiler does very few optimisations (for example, it cannot work out that you don't need j
or mm
) and the virtual machine does not compile anything to native code, so it mostly runs at interpreter speeds. Even if you leave the loop body empty it will probably still take around 100 ms.
Also, see https://github.com/dop251/goja?tab=readme-ov-file#why-would-i-want-to-use-it-over-a-v8-wrapper
Goja Implementation
Run on my computer. Single time is about 200 milliseconds? Is it too slow?Or is there something wrong with my wording? I7 8700K