I ran a series of CPU-intensive tests, with code written in JavaScript on my iPad.
I can execute the JavaScript code using either JavaScriptCore, or by using a WkWebView and making it load and execute the JavaScript.
I found that JavaScriptCore is 12 to 15 times slower than WKWebView (18.3 s instead of 1.1 s). That seems huge. Is there any way to speed it up? Is there any reason why it's so slow?
While we're at it, are there differences between the WebAssembly engine in JavaScriptCore and the one in WkWebView?