I was experimenting with executing javascript code from Construct 3 and noticed something rather strange. A simple JS code is executed 100 times slower than the simplest native Construct instruction. But only in Chrome. In Safari it's the same.
Here's the example project: test.c3p
Safari 11.0.2
— 3,000,000 empty loops: 4.5 sec
— 3,000,000 loops with "System: Set VARIABLE to 666": 8.9 sec
— 3,000,000 loops with "Browser: Execute javascript 'var variable=666'": 8.5 sec
Chrome 63.0.3239.132
— 3,000,000 empty loops: 0.88 sec
— 3,000,000 loops with "System: Set VARIABLE to 666": 1.2 sec
— 30,000 loops with "Browser: Execute javascript 'var variable=666'": 1.65 sec
See? I tested javascript execution in Chrome on 30,000 loops instead of 3,000,000 because otherwise it hangs the browser dead and seems to never execute it.
Same thing when I use my own Javascript plugin that simply does "eval" of a string you pass to it. Is it normal or what?